Не удалось импортировать Jython, расширитель отрыжки - PullRequest
0 голосов
/ 19 декабря 2018

Я использую Ubuntu.Я установил jython usign apt-get установил jython.Jython.jar файл /usr/share/java.Я пытаюсь импортировать его с помощью расширителя Burp, но у меня появляется эта ошибка:

ImportError: Cannot import site module and its dependencies: No module named site
Determine if the following attributes are correct:
  * sys.path: [/usr/share/java/Lib, __classpath__, __pyclasspath__/]
    This attribute might be including the wrong directories, such as from CPython
  * sys.prefix: /usr/share/java
    This attribute is set by the system property python.home, although it can
    be often automatically determined by the location of the Jython jar file

You can use the -S option or python.import.site=false to not import the site module

    at org.python.core.Py.ImportError(Py.java:334)
    at org.python.core.Py.importSiteIfSelected(Py.java:1803)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:71)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at burp.uue.<init>(Unknown Source)
    at burp.mn.a(Unknown Source)
    at burp.ooh.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:748)

Должен ли я использовать автономную версию Jython?Должен ли я поместить файл Jython.jar в другое место?

...