Hi all,
I am facing several problem in installing Scenario Designer on Ubuntu 20.04:
Cartopy installtion has a problem:
Collecting cartopy>=0.17.0
Using cached Cartopy-0.20.2.tar.gz (10.8 MB)
Installing build dependencies … done
Getting requirements to build wheel … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmp774f11r_ get_requires_for_build_wheel /tmp/tmpmz736352
cwd: /tmp/pip-install-zv2zhdhp/cartopy
Complete output (1 lines):
Proj version 6.3.1 is installed, but cartopy requires at least version 8.0.0.
But this could be resolved with install version cartopy==0.19.0.post1
- After this:
python3 setup.py install
running install
error: can’t create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/test-easy-install-2703.write-test'
- So I try this command: pip install -e .
And problem is :ERROR: sumocr 2021.5 has requirement matplotlib>=3.3.3, but you’ll have matplotlib 3.1.2 which is incompatible.
Would like to know if there is anything wrong or am I missing something here ?
Thanks
Can you try to install it again in a new Python environment?
Now I am trying to install it on Windows Anaconda Python since the docs says Anaconda is recommended.
Upto the point of conda install line in CommonRoad Scenario Designer — CommonRoad Scenario Designer 0.5 documentation (commonroad-scenario-designer.readthedocs.io)
Its fine. If I try to do the next line (pip install -r requirements.txt
) within the conda I get a lot of errors.
Now going ahead I get this error finally:
(base) C:\Users\ravis\Downloads\commonroad-scenario-designer>python setup.py install
Traceback (most recent call last):
File “C:\Users\ravis\Downloads\commonroad-scenario-designer\setup.py”, line 6, in
long_description = fh.read()
File “C:\Users\ravis\anaconda3\lib\encodings\cp1252.py”, line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x9d in position 3347: character maps to
Also I am not sure if I need to install the python-is-python3 package before starting the whole process.
It should work under Ubuntu 20.04.
You can use/install Anaconda also on Ubuntu.
The installation itself should also work on Windows, but there could be some restrictions in the functionality.
The problem on Windows when I run pip install -r requirements.txt is as follows:
Building wheels for collected packages: grpcio
Building wheel for grpcio (setup.py) … error
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\ravis\anaconda3\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\ravis\AppData\Local\Temp\pip-install-orhvcnyd\grpcio_d04622a46d5c4adcb0865859d0f58690\setup.py’"’"’; file=’"’"‘C:\Users\ravis\AppData\Local\Temp\pip-install-orhvcnyd\grpcio_d04622a46d5c4adcb0865859d0f58690\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d ‘C:\Users\ravis\AppData\Local\Temp\pip-wheel-yivgrt3y’
Does it make a difference that I have ROS noetic installed on Ubuntu 20.04 and .bashrc contains the ROS Init script ? I think it might be making some difference to the Python environment…
The problem on Windows looks like a problem with a required third-party tool. It is similar to this post. However, the installation should work on Windows, only the usage is influenced (I checked it this week).
The installation of ROS shouldn’t influence this.
As mentioned in a previous comment, I recommend to create a new Anaconda environment and check whether the installation of the Scenario Designer works there.
So using Anaconda on Linux I am able to get it to work. To be on safe side I used Conda to get packages where I can going by Anaconda docs recommendation.
numpy>=1.16.4: Conda
lxml>=4.3.4: Conda
commonroad-io>=2021.4 : NotFound by conda
pyproj>=2.2.0: Conda
scipy>=1.3.0: Conda
mercantile>=1.1.3 : NotFound by conda
utm>=0.5.0: NotFound by conda
PyQt5>=5.12.2: NoFound by conda. Install exactly 5.12.2 with pip
matplotlib>=3.1.0: Conda
shapely>=1.7.0: Conda
sumocr>=2021.5: NotFound by conda
ordered-set>=4.0.2: NotFound by conda
enum34>=1.1.10: Conda
iso3166>=1.0.1 : NotFound by conda
networkx>=2.5: Conda
cartopy>=0.17.0: Conda as given in docs
On Windows too I tried the same thing but with no success. The package grpcio (used by sumocr) has a a build problem.
I had the same problem on Linux and Anaconda with Python 3.10. So I changed the Python version of my conda environment to 3.7 and it installed successfully.