-
Notifications
You must be signed in to change notification settings - Fork 98
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
Rename python bindings import library for Windows #1165
Conversation
The naming collision is caused by the both the import library of sdformat library and the import library of the pybind11 bindings library are called sdformat13.lib #1150 Thanks to Martin Pecka and Silvio Traversaro. Signed-off-by: Jose Luis Rivero <[email protected]>
Thanks, I'll give it a try later today! |
I'm just curious why the buildfarm did not reveal this earlier... |
The Windows jobs do not build Python bindings at the moment:
|
Codecov Report
@@ Coverage Diff @@
## sdf13 #1165 +/- ##
=======================================
Coverage 87.26% 87.26%
=======================================
Files 125 125
Lines 16111 16111
=======================================
Hits 14059 14059
Misses 2052 2052 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Build succeeds with this fix, and the result is dynamic file named I still can't find a way to actually load the python module (some DLL missing), but at least build is okay now. |
What is the exact error? Otherwise you can also use https://lucasg.github.io/Dependencies/ to debug the missing dependencies (just remembre to launch it from inside the conda environment). |
Okay, after manually copying Now the question is how to convince Python to look in the right directory. Since Python 3.8, there is a change in behavior such that loading pyd modules does not look into PATH. All directories to be searched have to be manually added by calling A temporary workaround is setting env var |
Good point! I never realized this as I tipically installed in the prefix of the conda environment whenever I develop on Windows, but this is indeed a tricky issue. |
I guess this issue affects all gz libraries with python bindings. Is there a better place to discuss it than this PR? |
https://github.com/gazebosim/gz-math is the library lowest in the stack with python bindings, perhaps it could make sense to discuss it there? |
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.
Okay, I've created gazebosim/gz-math#507. Apart from that issue, I approve this PR.
Thanks Martin and Silvio for the efforts to resolve the issue and the information about this. It was totally new to me. |
🦟 Bug fix
Fixes #1150
Summary
There is a naming collision is caused by the both the import library of sdformat library and the import library of the pybind11 bindings library are called sdformat13.lib.
Thanks to @peci1 and @traversaro.
Checklist
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.