eclipse-cyclonedds / eclipse-cyclonedds/cyclonedds-python
Failed to load CycloneDDS library from C:\bin\ddsc.dll
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 110
- Forks
- 68
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 1
Description
Hello, I'm getting this error when trying to import cyclonedds-nightly. I have tried different versions of cyclonedds-nightly, but I'm getting the same error message. This here using cyclonedds-nightly 2024.10.12 and python 3.11.9 with Windows 11 appear "Failed to load CycloneDDS library from C:\bin\ddsc.dll" but this lib is there.
Traceback (most recent call last):
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 34, in _load
library = ct.CDLL(path)
^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\ctypes\__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\bin\ddsc.dll' (or one of its dependencies). Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\main.py", line 1, in <module>
from cyclonedds import *
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\__init__.py", line 13, in <module>
from . import internal, util, qos, core, domain, topic, pub, sub, builtin, dynamic, idl
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 233, in <module>
class DDS:
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 237, in DDS
_dll_handle = load_cyclonedds()
^^^^^^^^^^^^^^^^^
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 132, in load_cyclonedds
lib = loader()
^^^^^^^^
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 58, in _loader_cyclonedds_home
return _load(os.path.join(os.environ["CYCLONEDDS_HOME"], name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\avelino.bruno\PycharmProjects\proj-cyclonedds\.venv\Lib\site-packages\cyclonedds\internal.py", line 36, in _load
raise CycloneDDSLoaderException(f"Failed to load CycloneDDS library from {path}")
cyclonedds.internal.CycloneDDSLoaderException: Failed to load CycloneDDS library from C:\bin\ddsc.dll
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cyclonedds/internal.py, especially _load, load_cyclonedds, and _loader_cyclonedds_home, then reproduce the import failure on the reported Python and Windows versions. Trace why C:\bin\ddsc.dll cannot be loaded despite existing, and consider the issue complete when the cause is identified and the import path has a verified fix or a clear diagnostic test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100