You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue to help me start tracking this bug as I haven't been able to fully identify when it happens.
To Reproduce
Have a version of dqrobotics Python3 installed, let's call it XXX.
Try to make that work with another pybind11 compiled with a (slightly different) version of dqrobotics CPP (or environment), let's call it YYY.
Problem
All sorts of bugs involving Unknown type and the DQ_robotics namespace, when XXX is different from YYY.
Solution
The Python3 version of dqrobotics can be fixed by being compiled locally. This mismatch might be due to the environment used to compile with GitHub actions, that might need adjustments (I'm looking at you, GCC version).
>>> from adaptive_control_example import *Traceback (most recent call last):[...] from ._core import *ImportError: generic_type: type "Example_SerialManipulatorEDH" referenced unknown base type "DQ_robotics::DQ_SerialManipulator"
The text was updated successfully, but these errors were encountered:
The major cause for this was originally addressed in #44. That fix should solve most occurrences caused by our choices and I also mention how to maintain it for future versions.
However, there are near infinite situations in which this import error can happen and most of them related to complex interactions with the user environment and advanced use of the library with custom Python bindings and custom C++ code. At this stage, I don't have enough information to propose a universal fix (beyond compiling locally as described above), but I'm sure this issue will resurface for advanced users.
When it does resurface, I'd prefer to center all the related discussion in this issue instead of having it spread between smaller, seemingly disjoint issues, when in fact they have the same underlying cause.
Bug description
This is an issue to help me start tracking this bug as I haven't been able to fully identify when it happens.
To Reproduce
dqrobotics
Python3 installed, let's call it XXX.dqrobotics
CPP (or environment), let's call it YYY.Problem
All sorts of bugs involving
Unknown type
and theDQ_robotics
namespace, when XXX is different from YYY.Solution
The Python3 version of
dqrobotics
can be fixed by being compiled locally. This mismatch might be due to the environment used to compile with GitHub actions, that might need adjustments (I'm looking at you, GCC version).Remember to source your
venv
if you're using oneConcrete error examples
@qlin960618
The text was updated successfully, but these errors were encountered: