Skip to content
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

The Command method reports error. #76

Open
PK4teens opened this issue May 23, 2023 · 9 comments
Open

The Command method reports error. #76

PK4teens opened this issue May 23, 2023 · 9 comments

Comments

@PK4teens
Copy link

Hello!
It has been a month since the NetlogoLink was set successfully.But today when I try to use pynetlogo to open the 3D model again. The method command reports error like the following. It seems there is some error in netlogolink.jar. But i never met it before. It's been working pretty well before.
I really need help. Thanks for your assistance.
QQ图片20230523152432

@PK4teens
Copy link
Author

Here is the error reported in Python.
QQ图片20230523152716

@quaquel
Copy link
Owner

quaquel commented May 23, 2023

Has anything been updated on your end? Specifically, which version of pynetlogo are you using?

@PK4teens
Copy link
Author

Actually, my E disk on my laptop was broken the day before yesterday. My pycharm and the virtual environment I used before is lost. Now i download another pycharm and pynetlogo. The pynetlogo version is 0.5.1. And i changed the core.py as your answer in previous issue i asked. My own code which i want to load netlogo model is same as before.
QQ图片20230523154244
QQ图片20230523154324

@quaquel
Copy link
Owner

quaquel commented May 23, 2023

Sorry, exactly what lines did you change and have you tested stuff before making those changes?

The netlogo jar has not been changed in 5.1. So I am at a loss to guess where your current problems are coming from.

@PK4teens
Copy link
Author

Last time i change the core.py and run the code. It didn't report any errors. I promise the core.py doesn't have any change from last time. The netlogo jar didn't report errors either.
Just now I change the core.py to the origin. The error exists too. I am really confused.
QQ图片20230523152432

@quaquel
Copy link
Owner

quaquel commented May 23, 2023

which version of java and netlogo?

@PK4teens
Copy link
Author

Netlogo 6.2.0
QQ图片20230523163751

@quaquel
Copy link
Owner

quaquel commented May 23, 2023

No idea what is going on. Need to think about this a bit more.

@quaquel
Copy link
Owner

quaquel commented May 31, 2023

Issue #77 had the same issue. There it seems related to initializing the NetlogoLink more than once. You might check if this also applies in your case. Given that you have not shared a complete minimum example that creates the error, it remains a guessing game for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants