Burp Suite User Forum

Login to post

Failed to import .py extension: OSError: [Errno 0] chdir not supported in Java

Alex | Last updated: Sep 04, 2018 03:38PM UTC

As the title says, I am facing this when trying to install Python extensions in Burp. Is it something related to jython environment variables? Thanks This is the complete traceback: Traceback (innermost last): File "<string>", line 1, in ? File "/Users/alex/jython2.2.1/jython.jar/Lib/javaos.py", line 121, in chdir OSError: [Errno 0] chdir not supported in Java: /Users/alex/Downloads/BurpExtension-WhatsApp-Decryption-CheckPoint-master at org.python.core.Py.makeException(Unknown Source) at javaos$py.chdir$10(/Users/alex/jython2.2.1/jython.jar/Lib/javaos.py:121) at javaos$py.call_function(/Users/alex/jython2.2.1/jython.jar/Lib/javaos.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject.invoke(Unknown Source) at org.python.pycode._pyx2.f$0(<string>:1) at org.python.pycode._pyx2.call_function(<string>) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyCode.call(Unknown Source) at org.python.core.Py.runCode(Unknown Source) at org.python.core.Py.exec(Unknown Source) at org.python.util.PythonInterpreter.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at burp.ohg.<init>(Unknown Source) at burp.spf.a(Unknown Source) at burp.gih.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)

PortSwigger Agent | Last updated: Sep 04, 2018 03:39PM UTC

Hi Alex, Thanks for your message. We haven't observed this issue before. However, we noticed that your version of Jython is version old - 2.2.1. Most people are using 2.7.0 so I suggest you try upgrading Jython first. Please let us know if you need any further assistance.

You need to Log in to post a reply. Or register here, for free.