carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
532 stars 364 forks source link

Python package version problems #1128

Open ClemensLinnhoff opened 2 days ago

ClemensLinnhoff commented 2 days ago

Describe the bug I am trying to install the scenario runner 0.9.15 (same as the carla version) under Ubuntu 22.04. I cloned the repository, checked out v0.9.15 and wanted to install the requirements in a virtual environment.

However, I get an error from numpy:

ModuleNotFoundError: No module named 'distutils.msvccompiler'

I tried to get around that by using a newer numpy version: 1.20 instead of 1.18. Then, I did not get the error anymore.

But I get the following new errors:

ERROR: Could not find a version that satisfies the requirement opencv-python==4.2.0.32 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72, 4.8.0.74, 4.8.0.76, 4.8.1.78, 4.9.0.80, 4.10.0.82, 4.10.0.84)
ERROR: No matching distribution found for opencv-python==4.2.0.32

So I tried to change the opencv version from 4.2.0.32 to 4.3.0.38, as this was the closest match. But then I get a bunch of other errors.

When I remove the versions from numpy and opencv-python in the requirements, the requirements get installed. But then I get a Segmentation fault when trying to execute python scenario_runner.py --help.

To Reproduce Steps to reproduce the behavior:

  1. Setup venv and source it
  2. Run pip3 install -r requirements.txt

Expected behavior I expected the requirements to be installed without any errors and the scenario_runner to run without a segmentation fault.

starrye commented 1 day ago

https://github.com/carla-simulator/scenario_runner/pull/1121