-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Environment
- OS Version: Win 10
- Source or binary build?
source, gz-transport14
Description
- Expected behavior: Python bindings work
- Actual behavior: Python bindings do not work
Steps to reproduce
- Install gz-transport14 from source using colcon with dependencies from conda.
- Run
python
- Type
from gz.transport14 import Node
Output
Traceback (most recent call last):
File "D:\programming\gz9-ws\gz-ws\src\gz-transport\python\examples\publisher.py", line 19, in <module>
from gz.transport14 import Node
File "D:\programming\gz9-ws\gz-ws\install\lib\python\gz\transport14\__init__.py", line 18, in <module>
from ._transport import Node as _Node
ImportError: DLL load failed while importing _transport: module not found
See gazebosim/gazebo_test_cases#1545 for details.
Proposed solution
Add
import os
os.add_dll_directory("C:\\Path\to\\gz-ws\\install\\bin")
to the start of python/src/init.py .
The path has to point to the directory where gz-transport14.dll is installed.
I don't know if it's better to turn the py file into a py.in and configure it via cmake, or if there is a better way.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Type
Projects
Status
To do