Burp Suite User Forum

Create new post

Jython ImportError: cannot import name LineBorder

Christian | Last updated: Dec 27, 2022 10:36PM UTC

Hello, I'm working on a burp extension. I have this error when I try Burp Extension with LineBorder class. I'm using Jython 2.7.3 this is the error message. from java.awt import BorderLayout, Color, LineBorder ImportError: cannot import name LineBorder at org.python.core.Py.ImportError(Py.java:329) at org.python.core.imp.importFromAs(imp.java:1632) at org.python.core.imp.importFrom(imp.java:1595) at org.python.pycode._pyx4.f$0(/Users/chris/Desktop/burp_extension01/test01.py:6) at org.python.pycode._pyx4.call_function(/Users/chris/Desktop/burp_extension01/test01.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1687) at org.python.core.__builtin__.execfile_flags(__builtin__.java:535) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:287) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at burp.od8.r(Unknown Source) at burp.ne1.a(Unknown Source) at burp.q0n.v(Unknown Source) at burp.qqv.lambda$panelLoaded$0(Unknown Source) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) I hope you can help me to figure out a solution. Thank you.

Liam, PortSwigger Agent | Last updated: Dec 28, 2022 02:43PM UTC

Thanks for your message, Christian. Which version of Burp are you using? Could you provide some further detail on the purpose of the extension?

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.