Closed geoeo closed 5 months ago
This can be fixed by https://stackoverflow.com/questions/77642155/attributeerror-module-object-has-no-attribute-raw-opt/77656642#77656642
Now I have the error
--- stderr: flir_camera_msgs
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_sre.o): warning: relocation against `PyExc_RecursionError' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytearrayobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/flir_camera_msgs__rosidl_generator_py.dir/build.make:125: rosidl_generator_py/flir_camera_msgs/libflir_camera_msgs__rosidl_generator_py.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:475: CMakeFiles/flir_camera_msgs__rosidl_generator_py.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< flir_camera_msgs [2.38s, exited with code 2]
Maybe its related to multiple python versions being installed? python3
and python
select 3.10 but it seems this is defaulting to 3.6
Building the vanilla ros2 humble examples works fine.
Is there a reason you are not installing the package via apt from the rosdistro? This repo built fine about 3 weeks ago, and there have been no commits since. So something has changed about the environment. Also, I see /usr/local/lib in your logs which indicates you have installed some custom python versions under /usr/local/ that could cause the problem. Can you eliminate that as a source of error?
I just noticed my pip version defaults to 3.6
Ill change this to 3.10 and see if this fixes it
@berndpfrommer Both my python and pip now default to 3.10. And its still selecting 3.6. I really dont want to install from apt because I dont want to reinstall spinnaker binaries. Im not sure, but it seems your build chain assumes only 1 python version on the system?
I cant remove python versions from system since I need them
The build environment assumed is the one that the Ros build farm provides which is a fresh install of Ubuntu 22.04. It looks like the build problems already occur with the msgs package, which is about as boiler plate as it gets.
You should be able to use the apt package alongside the Spinnaker install. The driver should use its own Spinnaker library, installed under /opt/ros, and not interfere with spinview. It's easy to try out.
On Tue, Feb 6, 2024, 2:46 AM Marc Haubenstock @.***> wrote:
@berndpfrommer https://github.com/berndpfrommer Both my python and pip default to 3.10. And its still selecting 3.6. I really dont want to install from apt because I dont want to reinstall spinnaker binaries. Im not sure, but it seems your build chain assumes only 1 python version on the system?
— Reply to this email directly, view it on GitHub https://github.com/ros-drivers/flir_camera_driver/issues/151#issuecomment-1928947635, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPLK2QZMKPO3T54ISEVZBTYSHNUHAVCNFSM6AAAAABC2IGM26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYHE2DONRTGU . You are receiving this because you were mentioned.Message ID: @.***>
Interesting. Ill try the apt then. Thanks! @berndpfrommer any idea to whom I can escalate this issue?
As far as the spinnaker_camera_driver goes I'm probably the most knowledgeable. This honestly doesn't seem to be a driver-specific issue. You can try posting on the robotics stack exchange but complex environment issues like this often get little attention.
There was definitely some issue with the "em" module, somewhere between colcon and Ubuntu, see here. If you can find some simple messages package that builds correctly you can try peeling away from flir_camera_msgs until it also builds.
Another option: install flir_camera_msgs from the apt repo, delete the source directory containing flir_camera_msgs from your workspace, and try just building the driver, if you really want to build from source.
Thanks. I also get this issue with other packages. It seems to be ros2. I will close this. Thanks for your help
When I try
colcon build
I get