-
Notifications
You must be signed in to change notification settings - Fork 194
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
Python Bindings: failing to load DLL #2710
Comments
Hi @andrearosasco, At a first glance, it seems that you are trying to use the Debug version of the Python bindings. As in MSVC (differently from the default toolchain used in Linux/macOS) in general Release and Debug builds are not ABI compatible, I think that if you want to use the Debug bindings you may need to use them with a Python interpreter compiled in Debug mode as well, but I do not even know if you have that installed. Another alternative could be to try to compile the Release version of the bindings, and try to use those one. In general, I would also suggest to install the Python bindings, instead of trying to use them from the build directory, as I don't know how much that workflow has been tested. |
Sligtly OT: there is any reason you want to use the vcpkg-based installer of the robotology-superbuild, instead of using the If you already have a conda distribution installed (we recommend mambaforge, see https://github.com/conda-forge/miniforge#mambaforge), to create and activate a new environment called
|
Hi @traversaro, |
Ack! Indeed we started documenting them in the main readme only recently, so I guess this is kind of expected. To avoid problems, if you do not use it remember to uninstall the vcpkg-based installer from "Add or remove programs", as instead the global user environment could create problems in the future. |
OT but related, the python bindings seems to have issues under windows, see #2640 |
Another warning is that for now we only have YARP 3.4.6 in the robotology channel, so if you need YARP 3.5 we need to wait for the next generation of conda binaries, that happens weekly on Monday night (see https://github.com/robotology/robotology-superbuild/blob/v2021.08/doc/developers-faqs.md#how-often-are-conda-binary-packages-generated). However, if you need them I can manually trigger a rebuild so that yarp 3.5.0 binaries are available. |
It`s ok, I'm fine with yarp 3.4.6 for now. Thanks anyway! |
Describe the bug
When I try to import yarp from a python script I get the error
To Reproduce
On Windows 10 with Python 3.8 as the system interpreter :
Result:
Expected behaviour
Yarp is imported correctly
Configuration (please complete the following information):
Additional context
I had already successfully built the bindings for python3.9 but then, due to compatibility issues with other packages I had to switch to python3.8. I set python3.8 as the system environment, cleared the build directory and followed the steps I described above.
The text was updated successfully, but these errors were encountered: