Import Errors and Undefined Symbols #4346
Unanswered
benjamin-havens
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a C++ class called MotorInterface stored in MotorInterface.h and MotorInterface.cpp. It is intended to control a group of Maxon EPOS4 motors, which I want to do in some Python code running in ROS. I wrote some binding code and compile it using CMake, and it compiles fine. This is the relevant bits of the CMakeLists.txt:
where
createPybindings.cpp
has the relevant pybind11 code. As I said, this compiles fine and makes amotor_interface.so
file.The problem is, when I try to import, I get several different errors. Using python3 (3.6.9), I get
I tried in IPython (version 7.16.3 with python 3.6.9) and I get:
For the heck of it I tried in Python 2 (2.7.17) and got
These errors, based on my search for a fix, sound like a problem with mismatched python versions; however, since I set
PYBIND11_PYTHON_VERSION
to 3.6.9 and then use 3.6.9, I don't think that should be the problem.It sounds like it could be a missing library? I link against the only ones I know I use, though. What do you all think?
Beta Was this translation helpful? Give feedback.
All reactions