is jq compatible with jython? - jq

We currently imported a new class we developed that uses jq to manipulate JSON into our burp's extension code. Upon loading it burp outputs an error of 'no module jq found'.
So after reinstalling everything a few times the possibility of jq not being compatible with jython arose.
Does anybody know about if this is true?

Related

Docfx failing on init command

I am trying to get docfx to generate a doc website based off of a C# library and I can't seem to get any of the commands covered in the documentation to work.
On the quickstart page it states to use the following command to initialize a template docfx init -q however when I run this command I get the following error message:
'init' was not matched. Did you mean 'new'?
'-q' was not matched. Did you mean '-h'?
Required command was not provided.
Unrecognized command or argument 'init'
Unrecognized command or argument '-q'
Usage:
docfx [options] [command]
Options:
--version Show version information
-?, -h, --help Show help and usage information
Commands:
new <templateName> Creates a new docset.
restore <directory> Restores dependencies before build.
build <directory> Builds a docset.
serve <directory> Serves content in a docset.
The documentation (as far as I can tell) doesn't cover the options displayed by the tools output. I have checked a number of times now to make sure I am not going insane but I definitely downloaded the package from the page listed on the quickstart page.
Does anyone regularly use Docfx and can tell me how to go about generating the html for my library?
Looks like you're using 3.x, which is undocumented.
You can download 2.59.2 here

RobotFramework RIDE cannot import library

I have a file right here: Library ../../MyLib/My_Lib.py, and I try to import the python file in RIDE, but RIDE still report "FAIL : No keyword with name '****' found", and this keyword is defined in the My_Lib.py, seems RIDE cannot find the python file.
I using python 2.7.8+Robot Framework 3.1.2+windows server 2012r2. I even selected Library -> Name -> Browse in RIDE, but the error still there and this whole robot test case folder is copied from another server which is working fine
Can anyone suggest what have I missed?
Ah! I have worked this out, if anyone else meets the same issue, you can click Tools->view RIDE Log, to see what's happening there. For my case, it's because I didn't install thrift but the My_Lib.py obviously used thrift module, so the My_Lib.py compile failed with "No module named thrift.Thrift".
Is it possible the Python library was created to work with Python 3.x.x leading it to not work on your Python 2.7.8? See https://wiki.python.org/moin/Python2orPython3
Check what python version is being run on the other server where the test is running fine. You might need to update your local Python version.
Also, you could try running the Robot test outside of RIDE just in case. You may do so by navigating to the test folder where the .robot file resides and running the following command:
robot test_file_name.robot
See if you get the same error that way. Please report back after doing the mentioned checks and we can continue debugging, my reputation doesn't let me comment on your question so I will just update the answer as we go along.

google closure compiler - not inlining goog lib function calls?

I wrote a JavaScrip application a few years back using the closure framework and compiler. It uses goog.require, goog.provides and goog.inherits a lot, and was working fine using the old python script to build it.
I wanted it working again so I updated the library and compiler and used my old make script. But get this.
Closure Compiler now natively understands and orders Closure
dependencies and is prefererred over using this script for performing
JavaScript compilation. Please migrate your codebase. See:
https://github.com/google/closure-compiler/wiki/Managing-Dependencies
I read the link provided and did not see anything wrong. So I replaced the script with this.
java -jar C:/closure/closure-compiler-v20160713.jar --output_manifest _manifest.txt
--compilation_level ADVANCED_OPTIMIZATIONS --js M*.js
--js_output_file _M_min.js
It compiles fine, however when running I get errors such as...
_M_min.js?v=4:23 Uncaught ReferenceError: goog is not defined
_M_min.js?v=4:54 Uncaught TypeError: Cannot read property 'extend' of undefined
I thought the compiler unrolled all of this and did not require including the goog library at run time?
If I do include the library with "js/goog/base.js" I get goog.yb is not a function and so on. But I really did not think I needed to do this.
What am I doing wrong.
I think there are multiple problems:
You have to include closure library in your compilation as source. Adding --js path/to/closure/**.js will do it.
You need to use the dependency management flags. If you use goog.require and goog.provide in ALL of your files, you'll want strict mode.

"Error while finding spec for 'robot.run' (<class 'ImportError'>: No module named 'UserDict')"

How to solve error "Error while finding spec for 'robot.run' (: No module named 'UserDict')". I get this error when running command pybot from command prompt in Python 3.5
Robot framework doesn't yet support python 3.
You might want to try an unofficial fork/port of robot framework. The project is here: https://github.com/userzimmermann/robotframework/tree/python3
According to the documentation at the time I write this, you can install it with pip like this:
pip install robotframework-python3

pyuic error when converting .py from .ui

i'm fairly new to PyQt but not totally new to Python.
I'm trying to develop a GUI using PyQt5 and Python 3.4. I was creating the interface with Qt and wanted to have an early draft of the Python script.
To do that i used this command :
pyuic5 -x filename.ui -o filename.py
and it worked just fine.
But, after adding more objects in my GUI, it was not possible to create the .py file. An error occurs in the cmd and the .py created lacks the def retranslateUi and the __name__ == "__main__" parts.
I would have put a printscreen of the error message but i'm not allowed yet.
The message says :
An unexpected error occured.
Check that you are using the latest version of PyQt5 and send an error
report including the following information:
your version of PyQt (5.4.1)
the UI file that caused the error
the debug output of pyuic5 (use the -d flag when calling pyuic5)
If anyone can enligthen me, that would be great!!

Resources