-
Notifications
You must be signed in to change notification settings - Fork 15
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
ModuleNotFoundError No module named 'urdf_tutorial.state_publisher' #6
Comments
Hi, I'm not actively working on this project nowadays and so can't test it out. But from the error, the urdf_tutorial module was not found. Were you able to run these 2 commands succesfully before calling "ros2 launch"? $ colcon build --symlink-install --packages-select urdf_tutorial |
Hi Carlos,
What OS version and ROS version are you using?
…On Fri, Oct 29, 2021 at 4:51 PM carlosfloar ***@***.***> wrote:
hello, I have the same problem, I download the repository, I follow the
instructions in the tutorial and the error is the same, can someone help us?
$ colcon build --symlink-install --packages-select urdf_tutorial
Starting >>> urdf_tutorial
Finished <<< urdf_tutorial [0.85s]
Summary: 1 package finished [0.98s]
$ source install/setup.bash
$ ros2 launch urdf_tutorial demo.launch.py
[INFO] [launch]: All log files can be found below
/home/carlos/.ros/log/2021-10-29-18-40-13-483647-inspiron-14-3467-13129
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [13131]
[INFO] [state_publisher-2]: process started with pid [13133]
[robot_state_publisher-1] Parsing robot urdf xml string.
[robot_state_publisher-1] Link leg1 had 0 children
[robot_state_publisher-1] Link leg2 had 0 children
[robot_state_publisher-1] Link body had 1 children
[robot_state_publisher-1] Link head had 1 children
[robot_state_publisher-1] Link rod had 1 children
[robot_state_publisher-1] Link box had 0 children
[robot_state_publisher-1] [INFO] [1635550813.612084368]
[robot_state_publisher]: got segment axis
[robot_state_publisher-1] [INFO] [1635550813.612185727]
[robot_state_publisher]: got segment body
[robot_state_publisher-1] [INFO] [1635550813.612197492]
[robot_state_publisher]: got segment box
[robot_state_publisher-1] [INFO] [1635550813.612203625]
[robot_state_publisher]: got segment head
[robot_state_publisher-1] [INFO] [1635550813.612209184]
[robot_state_publisher]: got segment leg1
[robot_state_publisher-1] [INFO] [1635550813.612215047]
[robot_state_publisher]: got segment leg2
[robot_state_publisher-1] [INFO] [1635550813.612220414]
[robot_state_publisher]: got segment rod
[state_publisher-2] Traceback (most recent call last):
[state_publisher-2] File
"/home/carlos/dev_ws/install/urdf_tutorial/lib/urdf_tutorial/state_publisher",
line 11, in
[state_publisher-2] load_entry_point('urdf-tutorial', 'console_scripts',
'state_publisher')()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/
*init*.py", line 490, in load_entry_point
[state_publisher-2] return get_distribution(dist).load_entry_point(group,
name)
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/
*init*.py", line 2854, in load_entry_point
[state_publisher-2] return ep.load()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/
*init*.py", line 2445, in load
[state_publisher-2] return self.resolve()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/
*init*.py", line 2451, in resolve
[state_publisher-2] module = *import*(self.module_name, fromlist=['*name*'],
level=0)
[state_publisher-2] ModuleNotFoundError: No module named
'urdf_tutorial.state_publisher'
[ERROR] [state_publisher-2]: process has died [pid 13133, exit code 1, cmd
'/home/carlos/dev_ws/install/urdf_tutorial/lib/urdf_tutorial/state_publisher
--ros-args -r __node:=state_publisher'].
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJSPP4SDV6FOBTAYDOXQJTUJMXPRANCNFSM5GTSZ7RQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi im facing the same issue environment: In my colcon build i got this warning error /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. in another issue they say to run this pip cmd
But i still got that error And when I run it i got this eror [state_publisher-2] Traceback (most recent call last):
[state_publisher-2] File "/home/clevero/second_ros2_ws/install/urdf_tutorial_r2d2/lib/urdf_tutorial_r2d2/state_publisher", line 33, in <module>
[state_publisher-2] sys.exit(load_entry_point('urdf-tutorial-r2d2', 'console_scripts', 'state_publisher')())
[state_publisher-2] File "/home/clevero/second_ros2_ws/install/urdf_tutorial_r2d2/lib/urdf_tutorial_r2d2/state_publisher", line 25, in importlib_load_entry_point
[state_publisher-2] return next(matches).load()
[state_publisher-2] File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
[state_publisher-2] module = import_module(match.group('module'))
[state_publisher-2] File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
[state_publisher-2] return _bootstrap._gcd_import(name[level:], package, level)
[state_publisher-2] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
[state_publisher-2] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
[state_publisher-2] File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
[state_publisher-2] File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[state_publisher-2] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
[state_publisher-2] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
[state_publisher-2] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
[state_publisher-2] ModuleNotFoundError: No module named 'urdf_tutorial_r2d2'
[ERROR] [state_publisher-2]: process has died [pid 32542, exit code 1, cmd '/home/clevero/second_ros2_ws/install/urdf_tutorial_r2d2/lib/urdf_tutorial_r2d2/state_publisher --ros-args -r __node:=state_publisher']. |
Hi,
thanks for this tutorial.
I downloaded the package from repository, without changing nothing. But I get an error on "ros2 launch urdf_tutorial demo.launch.py"
if you have an idea.
[robot_state_publisher-1] [INFO] [1635090350.373655489] [robot_state_publisher]: got segment rod
[state_publisher-2] Traceback (most recent call last):
[state_publisher-2] File "/home/tim/ros2_foxy/install/urdf_tutorial/lib/urdf_tutorial/state_publisher", line 11, in
[state_publisher-2] load_entry_point('urdf-tutorial', 'console_scripts', 'state_publisher')()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
[state_publisher-2] return get_distribution(dist).load_entry_point(group, name)
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2793, in load_entry_point
[state_publisher-2] return ep.load()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2411, in load
[state_publisher-2] return self.resolve()
[state_publisher-2] File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2417, in resolve
[state_publisher-2] module = import(self.module_name, fromlist=['name'], level=0)
[state_publisher-2] ModuleNotFoundError: No module named 'urdf_tutorial.state_publisher'
[ERROR] [state_publisher-2]: process has died [pid 25782, exit code 1, cmd '/home/tim/ros2_foxy/install/urdf_tutorial/lib/urdf_tutorial/state_publisher --ros-args -r __node:=state_publisher'].
Thanks
The text was updated successfully, but these errors were encountered: