googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.19k stars 720 forks source link

Google Cola x Python x Pynetlogo #4488

Closed Robhyson closed 6 months ago

Robhyson commented 7 months ago

I use a model in netlogo in version 6.3.0. I use the code below and I have never had an error, but on the Google Colab platform it is giving this error. Could anyone help me resolve this error?

Code:

image

Error:


Exception Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/_jpype.cpython-310-x86_64-linux-gnu.so in netLogoLink.NetLogoLink.loadModel()

Exception: Java Exception

The above exception was the direct cause of the following exception:

java.lang.NoSuchMethodError Traceback (most recent call last) 2 frames java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: 'void org.objectweb.asm.MethodVisitor.visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String, boolean)'

During handling of the above exception, another exception occurred:

NetLogoException Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/pynetlogo/core.py in load_model(self, path) 247 except jpype.JException as ex: 248 print(ex.stacktrace()) --> 249 raise NetLogoException(str(ex)) 250 251 def kill_workspace(self):

NetLogoException: java.lang.NoSuchMethodError: 'void org.objectweb.asm.MethodVisitor.visitMethodInsn(int, java.lang.String, java.lang.String, java.lang.String, boolean)'

EvanWiederspan commented 6 months ago

It's not clear to me that this is a Colab issue specifically, I would reach out to the pynetlogo package maintainers instead