lgsvl / PythonAPI

Python API for Simulator
Other
58 stars 73 forks source link

add_agent NPC error #65

Open xiejingjacob opened 2 years ago

xiejingjacob commented 2 years ago

When I run the quickstart/08-create-npc.py

I got errors

Python API Quickstart #8: Creating various NPCs

Traceback (most recent call last):

File "./quickstart/08-create-npc.py", line 40, in

npc = sim.add_agent("Sedan", lgsvl.AgentType.NPC)

File "/home/xj/PythonAPI/lgsvl/utils.py", line 23, in new_f

return f(*args, **kwargs)

File "/home/xj/PythonAPI/lgsvl/simulator.py", line 164, in add_agent

uid = self.remote.command("simulator/add_agent", args)

File "/home/xj/PythonAPI/lgsvl/remote.py", line 69, in command

raise Exception(data["error"])

Exception: Object reference not set to an instance of an object

running in ubuntu20.04

tjx1233 commented 2 years ago

I have same problem here, when using simulator.exe built from source code(2021.3). The release version is fine.

Daparrag commented 8 months ago

any update regarding this issue?