NL4Py
NL4Py copied to clipboard
Do I have to use an older version of NetLogo?
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
@bryanpiguave NL4Py
should work with Python 3.7
. Is your PATH
variable set to point to your java
installation?