I installed the Drivability Checker the way it was supposed in the git repo on my VMware-based Ubuntu 18.04. It seems that everything was set up correctly, but the commonroad_dc.pycrcc-module was not found. Then, I tried to install it the manual way, I got the following error:
β Configuring incomplete, errors occurred!
See also β/home/bernie/commonroad-drivability-checker/build/CMakeFiles/CMakeOutput.logβ.
Are you able to suggest anything where there problem lies? Do I have to delete the whole commonroad-drivability-checker-repo, before I want to install it manually, after I did it the automated way?
Thank you in advance!
Best regards,
Bernhard
P.S.: Althought I ran git submodule init and $ git submodule update before, I typed the following to be sure:
(commonroad-py37) bernie@vm-ubun:~/commonroad-drivability-checker/build$ pip install pybind11
Collecting pybind11
Using cached pybind11-2.6.1-py2.py3-none-any.whl (188 kB)
Installing collected packages: pybind11
Successfully installed pybind11-2.6.1
Additionally, this syntax errors occuring, when I enter (commonroad-py37) bernie@vm-ubun:~/commonroad-drivability-checker$ sudo python setup.py install
the syntax error seems to be related to type hints in python. as it was introduced in python3.5, i suspect you had a version below that while installing.
In addition, there is no need to pip install pybind11.
There is also no need in sudo python setup.py install, python setup.py install should work just fine.
You must have had a low python version. We support python 3.6 or higher.
unfortunately i am facing the same problem. BUT the Python-version doesnt seem to be the answer because it is 3.8.8 in the running env. I already tried to go back to version 3.6 but that did not work either.
Do you guys have a different idea or could provide a different approach?
Regards
(mod_planning) felix@felix-MacBookAir:~/commonroad-drivability-checker/build$ cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT=βhome/felix/anaconda3/envs/mod_planningβ -DPYTHON_VERSION=β3.8β -DCMAKE_BUILD_TYPE=Release β¦
β Found PythonInterp: home/felix/anaconda3/envs/mod_planning/bin/python3.8m
CMake Error at third_party/pybind11/tools/FindPythonLibsNew.cmake:96 (message):
Python config failure:
/path/to/your/anaconda3/envs/commonroad-py36 with the path to your Anaconda environment (or virtualenv);
3.6 with the Python version of your Anaconda environment.
JOB_COUNT with the number of jobs you are willing to allocate to cmake, for example -j 2 . Each job (possibly) will use a core, so specify this number according to your system and free cores.
For additional options, please run bash build.sh -h command to view them.
Hi Edmond,
thanks for your quick response. I tried that, but after building the s11n the bash fails as well when building the drivability-checker.
Building drivability checkerβ¦
β The C compiler identification is GNU 9.3.0
β The CXX compiler identification is GNU 9.3.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Found PythonInterp: /home/felix/anaconda3/envs/mod_planning/bin/python3.8m
CMake Error at third_party/pybind11/tools/FindPythonLibsNew.cmake:96 (message):
Python config failure:
β Configuring incomplete, errors occurred!
See also β/home/felix/commonroad-drivability-checker/build/CMakeFiles/CMakeOutput.logβ.
Installing as python packageβ¦
so it ends up being pretty much the same. Do you have any other ideas?
Regards
Felix
okay to keep you updated: i found solution that is pretty easy to deal with.
When compiling it manually simply replace the cmake command with:
cmake -DADD_PYTHON_BINDINGS=TRUE -DPYTHON_EXECUTABLE=$(which python) -DCMAKE_BUILD_TYPE=Release β¦