DriveML Huawei Autonomous Vehicles Challenge Forum

Go back to competition Back to thread list Post in this thread

> OSError: could not find or load spatialindex_c.dll

Hi,
I got the error stated in the title. I am on windows 10 and using python version 3.6.8 (though I encountered the same error with version 3.7.3)
the last calls have been as follows:

File "C:\Users\user\Desktop\project\project_venv\src\starter_kit\gym_hiway\env\competition_env.py", line 7, in <module>
from hiway.bullet_simulation import BulletSimulation
File "C:\Users\user\Desktop\project\project_venv\src\starter_kit\hiway\bullet_simulation.py", line 26, in <module>
from .social_vehicle import SocialVehicle
File "C:\Users\user\Desktop\project\project_venv\src\starter_kit\hiway\social_vehicle.py", line 19, in <module>
from .sumo_traffic_simulation import TrafficSimVehicle
File "C:\Users\user\Desktop\project\project_venv\src\starter_kit\hiway\sumo_traffic_simulation.py", line 24, in <module>
from .waypoints import Waypoints
File "C:\Users\user\Desktop\project\project_venv\src\starter_kit\hiway\waypoints.py", line 5, in <module>
from rtree import index
File "C:\Users\user\Desktop\project\project_venv\lib\site-packages\rtree\__init__.py", line 1, in <module>
from .index import Rtree
File "C:\Users\user\Desktop\project\project_venv\lib\site-packages\rtree\index.py", line 5, in <module>
from . import core
File "C:\Users\user\Desktop\project\project_venv\lib\site-packages\rtree\core.py", line 116, in <module>
raise OSError("could not find or load spatialindex_c.dll")
OSError: could not find or load spatialindex_c.dll

I tried reinstalling rtree but that didnt work.
Thanks

Posted by: Team50 @ Nov. 7, 2019, 1:57 p.m.

Please see our official statement on Windows support: https://competitions.codalab.org/forums/18353/3088/. Getting around this specific one can be done with,

```
# we need to install an Rtree build that comes packaged w/ libspatialindex Windows DLLs, the official does not
pip uninstall rtree
# download rtree for your platform from https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree
pip install <unofficial_rtree_build>
```

But you will deal with other blocking issues related to `os.ssid` and Panda3D paths.

Posted by: HuaweiUK @ Nov. 7, 2019, 5:47 p.m.
Post in this thread