ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosdoc fuerte python ValueError

asked 2012-05-14 22:05:05 -0600

Tinne De Laet gravatar image

Hey all,

after upgrading to ubuntu precise and ros fuerte I have problems when running rosdoc. I always get the error paste below.

Any idea what to do?

Tinne

fiep@Fiep /opt/ros/fuerte/stacks/documentation/rosdoc $ ./rosdoc geometric_semantics /opt/ros/fuerte/stacks/documentation/rosdoc/src/rosdoc/rdcore.py:43: UserWarning: roslib.rospack is deprecated, please use rospkg import roslib.rospack initializing rosdoc context: package filters: ['geometric_semantics'] path filters: [] +package[geometric_semantics] +stack[geometric_relations_semantics] Traceback (most recent call last): File "/opt/ros/fuerte/stacks/documentation/rosdoc/src/rosdoc/__init__.py", line 134, in main artifacts = generate_docs(ctx) File "/opt/ros/fuerte/stacks/documentation/rosdoc/src/rosdoc/__init__.py", line 83, in generate_docs import doxygenator File "/opt/ros/fuerte/stacks/documentation/rosdoc/src/rosdoc/doxygenator.py", line 334, in <module> header_template = load_tmpl(header_template_name()) File "/opt/ros/fuerte/stacks/documentation/rosdoc/src/rosdoc/doxygenator.py", line 199, in header_template_name major, minor, patch = doxygen_version.split('.') ValueError: too many values to unpack

edit retag flag offensive close merge delete

Comments

2

Given the error message, can you post your Doxygen version number by running the command-line option?

kwc gravatar image kwc  ( 2012-05-15 06:32:43 -0600 )edit

doxygen --version: 1.7.6.1

Tinne De Laet gravatar image Tinne De Laet  ( 2012-05-16 01:39:56 -0600 )edit

python -- version: Python 2.7.3

Tinne De Laet gravatar image Tinne De Laet  ( 2012-05-22 22:24:48 -0600 )edit

Just to inform you that one of my colleagues, Steven, is able to run rosdoc for the same package on his computer. He also has ros fuerte and python 2.7.3. He however has doxygen 1.7.5 and compiled ros-fuerte-documentation from source.

Tinne De Laet gravatar image Tinne De Laet  ( 2012-05-22 22:25:36 -0600 )edit

Just to inform you that one of my colleagues, Steven, is able to run the documentation.

Tinne De Laet gravatar image Tinne De Laet  ( 2012-05-22 22:25:42 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-05-22 23:42:06 -0600

Tinne De Laet gravatar image

I found out what is causing the problems. Apparently rosdoc was never used before with a doxygen version containing a build number (i.e. major.minor.patch.build). I adapted the source of rosdoc to cover the extra build number in the doxygen version.

I filed a bug in trac and also submitted the patch there (https://code.ros.org/trac/ros-pkg/ticket/5451).

Patch:

Index: doxygenator.py

--- doxygenator.py (revision 16732) +++ doxygenator.py (working copy) @@ -196,7 +196,7 @@ # doxygen not available if doxygen_version is None: return None - major, minor, patch = doxygen_version.split('.') + major, minor, patch, build = doxygen_version.split('.') # > 1.7.3 doxygen changed the template syntax if int(major) > 1 or int(minor) > 7 or int(patch) > 3: return 'header-1.7.4.html'

Tinne

edit flag offensive delete link more

Comments

This patch does not work if you have a doxygen version not containing the build number. Improved patch available here: https://code.ros.org/trac/ros/ticket/3969.

Tinne De Laet gravatar image Tinne De Laet  ( 2012-05-23 22:34:47 -0600 )edit

Patch applied to source, thanks

kwc gravatar image kwc  ( 2012-05-29 07:20:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2012-05-14 22:05:05 -0600

Seen: 417 times

Last updated: May 22 '12