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

Do I have to use an older version of NetLogo? #11

Open
bryanpiguave opened this issue Apr 5, 2020 · 1 comment
Open

Do I have to use an older version of NetLogo? #11

bryanpiguave opened this issue Apr 5, 2020 · 1 comment
Assignees

Comments

@bryanpiguave
Copy link

I just want to run this script, but this comes out
import nl4py
import os
file_to_open = os.path.join(".","spatialCOVID19-master","epiDEM COV_v13.nlogo")
path_to_netlogo = 'C:/Program Files/NetLogo 6.1.1/'
nl4py.startServer(path_to_netlogo)
ws=nl4py.newNetLogoHeadlessWorkspace()
ws.openModel(file_to_open)
ws.closeModel()
nl4py.deleteAllHeadlessWorkspaces()
nl4py.stopServer()

IndexError: pop from an empty deque
ConnectionRefusedError: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión
Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1:25333)

Spyder 4.0.1
Python 3.7.4
nl4py -> last version
Java 8 -> 181

@chathika
Copy link
Owner

@bryanpiguave NL4Py should work with Python 3.7 . Is your PATH variable set to point to your java installation?

@chathika chathika self-assigned this Apr 22, 2020
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