-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Nodes from pure python packages can't be started via ros2 run on Linux #41
Comments
Just to be sure, those are the packages in staging? |
Yes, after asking to everyone to post the
|
Ok, I think I understood what is going on. I tried to install a simple repo that installs a file in
So probably now the |
Interestingly, that issue only refers to |
However, using pure python apt on a Ubuntu 22.04 with ROS2 Humble results in the scripts being installed in
|
Installing everything via colcon instead works fine:
Given the warning, it seems that
|
Indeed, the code related to building python repos in colcon is https://github.com/colcon/colcon-core/blob/0.11.0/colcon_core/task/python/build.py#L51 , and it is possible to see that |
Thanks for the debugging, @traversaro! The simplest solution seems to mirror https://github.com/RoboStack/vinca/blob/master/vinca/templates/bld_ament_python.bat.in to https://github.com/RoboStack/vinca/blob/master/vinca/templates/build_ament_python.sh.in? |
That could be an idea! For some reason, when testing that command locally I had some problem as the library was installed as an egg archive, but I do not know if there is something at the conda level to deal with it. Anyhow, given that it works for Windows we can try to use it and see if it works (I did not try to modify vinca and re-build the packages at the moment). |
I also had problems in while using that command, as for some reason a |
Ok great. Do you happen to know if we also need to check this logic on Unix? https://github.com/RoboStack/vinca/blob/3b26d3ff52dd2c1108b3bef90e9bb0a08afd4cf4/vinca/templates/bld_ament_python.bat.in#L9-L14 |
Reopening until packages are rebuilt. |
Fixed in the last rebuild :) |
I am still getting this issue. I installed via conda with |
Can you please create a new issue and provide the requested information @TSoli? |
Running the command
ros2 run demo_nodes_py demo_talker
results in an error:While the same command on Windows works fine:
The problem is that the executables/entry points on Linux are installed in
<install_prefix>/bin
, instead of the correct location<install_prefix>/lib/<pkg_name>
.This is kind of a regression of RoboStack/ros-galactic#74, as there the problem affected Windows packages, now Linux (and I guess macOS) packages.
The text was updated successfully, but these errors were encountered: