-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fix Python linking on OSX #806
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Tobias Fischer <[email protected]>
a081c48
to
ab157fe
Compare
I added the missing flags, but didn't know about removing the python linking. Nice! |
Signed-off-by: Tobias Fischer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with green CI
Note that we still face issues in |
|
@Tobias-Fischer Any idea why OSX CI for this PR had a segfault in one of the rclpy tests? I don't see the same issue on the nightly OSX job.
|
Unfortunately I have no idea re this exception. Any clues @traversaro @wolfv? |
It may be worth to check if the Python executable used for the tests is the same Python whose libraries (and headers) have been used to compile the extension. |
The headers are particularly tricky, as even if CMake appears to have found the correct Python, the incorrect Python headers could be accidentally be used by compilation unit if the directory of the wrong Python is in the include path as it is installed in the prefix of some other dependency. This is however is just an hypothesis. By inspecting the CI log, it seems that both Python 3.8 (the one that is then used to pip install dependencies and to create a venv) and Python 3.7 (that instead should be never used) are installed:
I am not sure if this is playing a role, perhaps it could make sense to try to uninstall the Python 3.7 if possible? |
However, I quickly checked and |
Maybe the difference is that we remove the "DYLD_LIBRARY_PATH" and in "vanilla ROS" it's set to some value? Just guessing |
See e.g. ros-perception/vision_opencv#331 for reasoning
Fixes #805