chathika / NL4Py

Bringing Your Turtles From NetLogo to Python 馃悕馃悽
GNU General Public License v3.0
51 stars 10 forks source link

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

Open bryanpiguave opened 4 years ago

bryanpiguave commented 4 years ago

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 commented 4 years ago

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