-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pynetlogo calling a model which uses py extension #79
Comments
Hi! I have been trying to fix this problem for weeks too. At first, my environment was like this ...
I have used pynetlogo in 2021 successfully. Thus, I tried downgrading everything to older versions as follows...
Both of my ubuntu 22.04 and windows 10 face this same problem. Please let me know if i had done anything wrong or if there is a solution. Thank you in advance. |
I have tried this too. Running my model gives the same error. I didn't run the simple model though.
And I have been alternating between openjdk 11 and openjdk 8 too. |
There is no immediate recent change in pynetlogo that comes to mind that might explain this problem. Can either of you test a model with some other extension? |
Hello! Thank you for the answer! I have tried opting in one extension at a time and opting out one at a time to this simple model. The model with that exact list of extensions works fine on NetLogo 6.3 standalone, but gives error when loading though pynetlogo. The model
I have ruled out that only the py extension is a part of this problem. The error for my windows 10 looks like this. The error
My environment is like this ...
all of the version combinations yield similar results (the errors when loading the py extension through pynetlogo) What can I do next to help? |
Sorry, but I am not sure I fully understand. To be clear: do all extensions fail, or just the py extension? |
Oh, it is just the py extension that raises the error. |
Thanks for the clarification and the provided simple example. Since all other extensions work, this rules out anything with search paths and the loading of the various jars associated with each extension. Unfortunately, the Java InvocationTargetException is not a really clear exception which makes it harder to figure out what is going on. I presently, unfortunately, don't have the time to dig into this more deeply. I tried to reproduce the error, but I am on an m1 mac and have so far failed to replicate it. I do get a slightly different error ( |
Thanks again for the support :) I am new here and super happy to help. Please take your time. |
Just curious has anyone managed to find work around for this problem or fixed it?
|
To my knowledge, there has been no further work on this issue. I would need a minimum example to start taking a look myself. |
Hi Jan
Sorry for the late response. But here is a minimum example if you wish to have a look.
Thank youKind RegardsImantha
On Monday, August 26, 2024 at 03:11:57 PM GMT+8, Jan Kwakkel ***@***.***> wrote:
To my knowledge, there has been no further work on this issue. I would need a minimum example to start taking a look myself.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi,
I hope to receive any help here.
I'm trying to run an old model that I initialized in Python through pynetlogo and that model has inside as well usage of the py extension. I know it is a strange usage to call a NetLogo model from Python and then use Python from the model but it is something I did some years ago and worked properly.
Nowadays I'm trying to set up again the model (for research purposes) but I'm getting the error shown in the image and the following message:
`java.lang.RuntimeException
at netLogoLink.NetLogoLink.loadModel(NetLogoLink.java:121)
I guess the error raises because I'm also calling Python from the models called by Python. I guess it is because I call other models without the Python extension and it works fine.
Let me know please what the cause could be and if I making any mistake or I'm guessing well. Just trying to find a solution but I'm still not there.
@quaquel
The text was updated successfully, but these errors were encountered: