ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org

Problem with RVIZ and ROS fom source


#1

I have successfully compiled ROS lunar in archlinux, already have done some PR in github to update the packages to python3.

Now I have a big problem with xacro and I don’t know why…

... logging to /home/patrick/.ros/log/74169546-c973-11e7-82e7-f8da0c93ee61/roslaunch-dell-26975.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/mnt/hd/ros_ws/lunar/install_isolated/share/xacro/xacro.py", line 55, in <module>
    import xacro
  File "/mnt/hd/ros_ws/lunar/install_isolated/lib/python3.6/site-packages/xacro/__init__.py", line 35, in <module>
    import glob
  File "/usr/lib/python3.6/glob.py", line 5, in <module>
    import fnmatch
ModuleNotFoundError: No module named 'fnmatch'
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/mnt/hd/ros_ws/lunar/install_isolated/share/xacro/xacro.py /mnt/hd/ros_ws/lunar/install_isolated/share/bluerov_ros_playground/model/BlueRov2.urdf.xacro] returned with code [1]. 

Param xml is <param command="$(find xacro)/xacro.py $(arg model)" name="robot_description"/>
The traceback for the exception was written to the log file

I can import xacro, fnmatch and glob in python2 and python3 after sourcing setup.zsh.
PYTHONPATH = /mnt/hd/ros_ws/lunar/install_isolated/lib/python3.6/site-packages
log: http://ix.io/Cgq


#2

Thanks @patrickelectric for the report. However we ask that you please ask questions on http://answers.ros.org following our support guidelines: http://wiki.ros.org/Support

ROS Discourse is for news and general interest discussions. ROS Answers provides a forum which can be filtered by tags to make sure the relevant people can find and/or answer the question, and not overload everyone with hundreds of posts.

(To reproduce manually with a minimal example you can try to source your workspace and run rospack find xacro and if it fails look at if you can import it with the resulting PYTHONPATH)


#3

Sorry for that, thanks @marguedas, I’ll ask there.