Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No CARLA module found #17

Open
werewolfdev opened this issue Sep 22, 2021 · 9 comments
Open

No CARLA module found #17

werewolfdev opened this issue Sep 22, 2021 · 9 comments

Comments

@werewolfdev
Copy link

werewolfdev commented Sep 22, 2021

Trying to connect to CARLA from QGIS via Connect to CARLA instance button ,but returning error : No carla module available

OS: [e.g. Ubuntu 18.04]
CARLA Version [e.g. CARLA 0.9.11]
Python version [e.g. 3.]
QGIS Version [e.g. 3.16]
@ohashi3399
Copy link

ohashi3399 commented Sep 24, 2021

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.
Screenshot from 2021-09-24 17-33-24
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.

@werewolfdev
Copy link
Author

Hi @fabianoboril any insights on this issue will be really helpful

@fabianoboril
Copy link
Collaborator

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!)....

@ohashi3399
Copy link

Thanks for your quick reply.
Since I checked there's an .egg file in correct path, let me check compatible again.

@ohashi3399
Copy link

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.

@FENGShuanglang
Copy link

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

@fabianoboril
Copy link
Collaborator

If you have issues with admap, please raise the issues in the respective repo. We will not address these aspects here.

@werewolfdev
Copy link
Author

Sorry will mention this in traffic generation editor repo

@ronyshaji
Copy link

@werewolfdev Did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants