Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377919 - dev-python/docutils-0.8_pre7038: broken command line handling with Python 3
Summary: dev-python/docutils-0.8_pre7038: broken command line handling with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 21:08 UTC by Martin von Gagern
Modified: 2011-10-07 11:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-08-05 21:08:08 UTC
$ rst2html.py-3.2 --help
Traceback (most recent call last):
  File "/usr/bin/rst2html.py-3.2", line 23, in <module>
    publish_cmdline(writer_name='html', description=description)
  File "/usr/lib64/python3.2/site-packages/docutils/core.py", line 337, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/usr/lib64/python3.2/site-packages/docutils/core.py", line 206, in publish
    **(settings_overrides or {}))
  File "/usr/lib64/python3.2/site-packages/docutils/core.py", line 159, in process_command_line
    argv = [a.decode(argv_encoding) for a in sys.argv[1:]]
  File "/usr/lib64/python3.2/site-packages/docutils/core.py", line 159, in <listcomp>
    argv = [a.decode(argv_encoding) for a in sys.argv[1:]]
AttributeError: 'str' object has no attribute 'decode'

It appears that upstream has a fix already:
http://svn.berlios.de/viewvc/docutils/trunk/docutils/docutils/core.py?r1=7070&r2=7069&pathrev=7070
That fix is also included in the docutils-0.8 tag, so I suggest simply bumping the package to its 0.8 final release.
Comment 1 Wormo (RETIRED) gentoo-dev 2011-08-07 06:13:53 UTC
Thanks for pointing out this python 3 compatibility issue (and the fixed version). Assigning to python team.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-10-07 11:34:20 UTC
This should be fixed in the 0.8 and later releases, now available from the tree.