Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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

Alex 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?


This is the complete traceback:
Traceback (innermost last):
File "<string>", line 1, in ?
File "/Users/alex/jython2.2.1/jython.jar/Lib/", 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/
at javaos$py.call_function(/Users/alex/jython2.2.1/jython.jar/Lib/
at Source)
at 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 Source)
at 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(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at burp.ohg.<init>(Unknown Source)
at burp.spf.a(Unknown Source)
at Source)

Paul Johnston Sep 05, 2018 09:24AM UTC Support Center agent

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.

Post Your public answer

Your name
Your email address