@小伊 Traceback (most recent call last):
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1012, in parse
inp = f = open(filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/phx/chapt7/ros2bookcode/chapt6/chapt6_ws/src/fishbot_description/urdf/first_robot.xacro'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1119, in _process
doc = process_file(input_file_name, **opts)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1096, in process_file
doc = parse(None, input_file_name)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1016, in parse
raise XacroException(e.strerror + ": " + e.filename, exc=e)
xacro.XacroException: No such file or directory: /home/phx/chapt7/ros2bookcode/chapt6/chapt6_ws/src/fishbot_description/urdf/first_robot.xacro [Errno 2] No such file or directory: '/home/phx/chapt7/ros2bookcode/chapt6/chapt6_ws/src/fishbot_description/urdf/first_robot.xacro'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/ros/humble/bin/xacro", line 33, in <module>
sys.exit(load_entry_point('xacro==2.0.8', 'console_scripts', 'xacro')())
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1171, in main
_process(input_file_name, vars(opts))
File "/opt/ros/humble/local/lib/python3.10/dist-packages/xacro/init.py", line 1124, in _process
except xml.parsers.expat.ExpatError as e:
AttributeError: module 'xml' has no attribute 'parsers'