You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have created a package with pyproject.toml, i took ur's and changed executable path within the [tool.poetry.scripts] section. I can colcon build this package and colcon_poetry_ros.dependencies.install installs my_package and it's deps within the install/my_package/local/lib/python3.10/dist-packages dir. but when i run executable with ros2 run my_package my_executable i get runtime error ModuleNotFoundError: No module named 'my_package'. it seems the installed dist-packages are not part of the python path. i thought it will be added automatically or did i misunderstand this?
The text was updated successfully, but these errors were encountered:
You understood correctly, but I believe this tool has trouble with newer versions of Pip. It's a bug that I need to look into. Would you mind trying again with this version of Pip and letting me know if the behavior changes?
yes with pip 21.2.4 it indeed works.
and yes this adds the pythonpath.sh to the install/my_package/share/my_package/hook dir.
these files are not created with the newer versions pip versions 22.0.2 and 23.1.2, i initially used.
he guys, thx a lot for this great tool.
i have created a package with
pyproject.toml
, i took ur's and changed executable path within the[tool.poetry.scripts]
section. I cancolcon build
this package andcolcon_poetry_ros.dependencies.install
installsmy_package
and it's deps within theinstall/my_package/local/lib/python3.10/dist-packages
dir. but when i run executable withros2 run my_package my_executable
i get runtime errorModuleNotFoundError: No module named 'my_package'
. it seems the installeddist-packages
are not part of the python path. i thought it will be added automatically or did i misunderstand this?The text was updated successfully, but these errors were encountered: