Closed
Description
When building the example_python
package inside my workspace, I get the ModuleNotFoundError
. This happens everytime I try to build with --symlink-install
. I first encountered this bug with my package and I decided to try the example directly to see if it happened with it too and it does. here is the traceback:
Traceback (most recent call last):
File "/home/user/colcon_ws/install/generate_parameter_module_example/lib/generate_parameter_module_example/test_node", line 33, in <module>
sys.exit(load_entry_point('generate-parameter-module-example', 'console_scripts', 'test_node')())
File "/home/user/colcon_ws/install/generate_parameter_module_example/lib/generate_parameter_module_example/test_node", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/user/colcon_ws/build/generate_parameter_module_example/generate_parameter_module_example/minimal_publisher.py", line 33, in <module>
from generate_parameter_module_example.admittance_parameters import (
ModuleNotFoundError: No module named 'generate_parameter_module_example.admittance_parameters'
I also checked my PYTHONPATH
and I think that it may be related to name collisions.
I saw that @pac48 was referencing to some side-effects when using --symlink-install
in #122, is this related?
Metadata
Metadata
Assignees
Labels
No labels