Open werewolfdev opened 3 years ago
Dear Contributors, I appreciate for your developing such intuitive understandable plugin for CARLA scenario maker.
I also faced same issue. After I configured CARLA environmental setting which describes in your Guide section of repo and tried to connect via CARLA instance botton, returning error; No carla module available.
I hope anyone shares information for dealing with it.
The paths that I configured shows as below:
export CARLA_ROOT=$HOME/ubuntu/git/carla_0.9.11
export SCENARIO_RUNNER_ROOT=${CARLA_ROOT}/PythonAPI/scenario_runner
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.11-py3.7-linux-x86_64.egg
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/agents
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI
Screenshot of the above situation that I face shows as below. My workspace shows as below(almost same as the above):
OS: [Ubuntu 18.04]
CARLA Version [CARLA 0.9.11]
Python version [3.7.3]
QGIS Version [3.16]
best regards.
Hi @fabianoboril any insights on this issue will be really helpful
Well, the error says all. Python cannot access the CARLA egg. Either the file does not exist, the path is wrong, the version is not compatible (Attention this is Python 3!)....
Thanks for your quick reply. Since I checked there's an .egg file in correct path, let me check compatible again.
If @fabianoboril could share some idea for dealing with it, It would be very helpful. I found CARLA built from python3.7.3, but this plugin built from python3.6 via following command:
colcon build --metas colcon_python.meta --cmake-args -DPYTHON_BINDING_VERSION=3.6 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.6 --metas colcon_python.meta
After I try to build plugin via following command (python3.7.3),
colcon build --metas colcon_python.meta --cmake-args -DPYTHON_BINDING_VERSION=3.7 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.7 --metas colcon_python.meta
get error shown as below:
~/ubuntu/setup/qgis_plugin$ colcon build --metas colcon_python.meta --cmake-args -DPYTHON_BINDING_VERSION=3.7 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.7 --metas colcon_python.meta
Starting >>> spdlog
[0.640s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/j0135118/ubuntu/setup/qgis_plugin/install/spdlog' in the environment variable CMAKE_PREFIX_PATH doesn't exist
Starting >>> ad_map_access_qgis
--- stderr: ad_map_access_qgis
CMake Warning:
Manually-specified variables were not used by the project:
PYTHON_BINDING_VERSION
PYTHON_EXECUTABLE
---
Finished <<< ad_map_access_qgis [0.35s]
--- stderr: spdlog
CMake Warning:
Manually-specified variables were not used by the project:
PYTHON_BINDING_VERSION
PYTHON_EXECUTABLE
---
Finished <<< spdlog [7.44s]
Starting >>> ad_map_opendrive_reader
Starting >>> ad_physics
--- stderr: ad_physics
CMake Warning:
Manually-specified variables were not used by the project:
PYTHON_BINDING_VERSION
PYTHON_EXECUTABLE
/usr/bin/ld: /home/j0135118/ubuntu/setup/qgis_plugin/install/spdlog/lib/libspdlog.a(spdlog.cpp.o): relocation R_X86_64_TPOFF32 against `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [libad_physics.so] Error 1
make[1]: *** [CMakeFiles/ad_physics.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< ad_physics [4.02s, exited with code 2]
Aborted <<< ad_map_opendrive_reader [8.75s]
Summary: 2 packages finished [16.5s]
1 package failed: ad_physics
1 package aborted: ad_map_opendrive_reader
4 packages had stderr output: ad_map_access_qgis ad_map_opendrive_reader ad_physics spdlog
3 packages not processed
Warning messages seems like no problem, maybe my redundant option cause it. Especially, I don't understand how to deal with this part of message.
relocation R_X86_64_TPOFF32 against `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
It seems like error arise from ld command.
I also meet this error:
OS: [Ubuntu 18.04]
CARLA Version [CARLA 0.9.12]
Python version [3.6]
QGIS Version [3.16]
export UE4_ROOT=~/Documents/UnrealEngine_4.26
source /opt/ros/melodic/setup.bash
source ~/Workspace/carla/carla-ros-bridge/catkin_ws/devel/setup.bash
export CARLA_ROOT=~/Documents/carla/Dist/CARLA_Shipping_0.9.12-dirty/LinuxNoEditor
export SCENARIO_RUNNER_ROOT=~/Documents/scenario_runner
export SCENARIO_RUNNER_PATH=~/Documents/scenario_runner
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.12-py3.6-linux-x86_64.egg
#export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.12-py2.7-linux-x86_64.egg
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/agents
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI
If you have issues with admap, please raise the issues in the respective repo. We will not address these aspects here.
Sorry will mention this in traffic generation editor repo
@werewolfdev Did you find a solution?
Trying to connect to CARLA from QGIS via Connect to CARLA instance button ,but returning error : No carla module available