Closed yurirocha15 closed 7 months ago
When running rosdoc_lit using a tag file containing URLs, the following error happens:
Traceback (most recent call last): File "/opt/ros/noetic/lib/python3/dist-packages/rosdoc_lite/__init__.py", line 194, in generate_docs plugin(path, package, manifest, build_params[plugin_name], html_dir, quiet) File "/opt/ros/noetic/lib/python3/dist-packages/rosdoc_lite/doxygenator.py", line 251, in generate_doxygen doxy = package_doxygen_template(doxy_template, rd_config, path, package, html_dir, header_file.name, footer_file.name, manifest_dir, tagfile_dir, output_subfolder) File "/opt/ros/noetic/lib/python3/dist-packages/rosdoc_lite/doxygenator.py", line 174, in package_doxygen_template tagfiles = prepare_tagfiles(rd_config['tagfile_spec'], tagfile_dir, output_subfolder) File "/opt/ros/noetic/lib/python3/dist-packages/rosdoc_lite/doxygenator.py", line 119, in prepare_tagfiles import urllib2 ModuleNotFoundError: No module named 'urllib2'
The culprit is this line. As stated in the urllib2 documentation, urllib2 does not exist on python3 (it was renamed to urllib).
urllib2
urllib
Create a tags.yaml file with urls, for example:
tags.yaml
- docs_url: http://docs.ros.org/en/noetic/api/moveit_ros/html location: http://docs.ros.org/en/noetic/symbols/moveit_ros.tag package: moveit_ros
Run:
$ rosdoc_lite -o ./doc/my_package -t ./tags.yaml my_package
@tfoote could you take a look at this issue? Thanks.
Issue
When running rosdoc_lit using a tag file containing URLs, the following error happens:
The culprit is this line. As stated in the urllib2 documentation,
urllib2
does not exist on python3 (it was renamed tourllib
).How to Reproduce
Create a
tags.yaml
file with urls, for example:Run: