Skip to content
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

No executable found #20

Open
redex589 opened this issue Nov 15, 2024 · 2 comments
Open

No executable found #20

redex589 opened this issue Nov 15, 2024 · 2 comments

Comments

@redex589
Copy link

redex589 commented Nov 15, 2024

i tried to run the script using the command:
'ros2 run sjtu_drone_control drone_position_control.py'
it return a No executable found error
i double check the setup.py and package they all seem find

Repository owner deleted a comment from codeautopilot bot Nov 20, 2024
@NovoG93
Copy link
Owner

NovoG93 commented Nov 20, 2024

The executeable is named drone_position_control not drone_position_control.py.
So the following should work:

ros2 run sjtu_drone_control drone_position_control

@redex589
Copy link
Author

i'm just started learning ROS apology for all the dumb question

it gave me this error:
Traceback (most recent call last):
File "/home/ros2/uav_ws/install/sjtu_drone_control/lib/sjtu_drone_control/drone_position_control", line 33, in
sys.exit(load_entry_point('sjtu-drone-control==0.0.0', 'console_scripts', 'drone_position_control')())
File "/home/ros2/uav_ws/install/sjtu_drone_control/lib/sjtu_drone_control/drone_position_control", 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 "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/ros2/uav_ws/install/sjtu_drone_control/lib/python3.10/site-packages/sjtu_drone_control/drone_position_control.py", line 3, in
from drone_utils.drone_object import DroneObject
ModuleNotFoundError: No module named 'drone_utils'
[ros2run]: Process exited with failure 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants