Ticket #18869 (new defect)
py25-docutils does not include roman.py
| Reported by: | swinbank@… | Owned by: | alex@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | Cc: | ryandesign@… | |
| Port: | py25-docutils |
Description
Hence:
$ rst2html.py
Traceback (most recent call last):
File "/opt/local/bin/rst2html.py", line 23, in <module>
publish_cmdline(writer_name='html', description=description)
File "/opt/local/lib/python2.5/site-packages/docutils/core.py", line 334, in publish_cmdline
pub.set_components(reader_name, parser_name, writer_name)
File "/opt/local/lib/python2.5/site-packages/docutils/core.py", line 92, in set_components
self.set_reader(reader_name, self.parser, parser_name)
File "/opt/local/lib/python2.5/site-packages/docutils/core.py", line 82, in set_reader
self.reader = reader_class(parser, parser_name)
File "/opt/local/lib/python2.5/site-packages/docutils/readers/__init__.py", line 49, in __init__
self.set_parser(parser_name)
File "/opt/local/lib/python2.5/site-packages/docutils/readers/__init__.py", line 60, in set_parser
parser_class = parsers.get_parser_class(parser_name)
File "/opt/local/lib/python2.5/site-packages/docutils/parsers/__init__.py", line 46, in get_parser_class
module = __import__(parser_name, globals(), locals())
File "/opt/local/lib/python2.5/site-packages/docutils/parsers/rst/__init__.py", line 75, in <module>
from docutils.parsers.rst import states
File "/opt/local/lib/python2.5/site-packages/docutils/parsers/rst/states.py", line 108, in <module>
import roman
ImportError: No module named roman
I note that it is included with py26-docutils.
Change History
comment:2 Changed 4 years ago by swinbank@…
Weird:
$ port contents py25-docutils | grep roman.py $ sudo port uninstall py25-docutils ---> Deactivating py25-docutils @0.5_0 $ sudo port install py25-docutils ---> Fetching py25-docutils ---> Verifying checksum(s) for py25-docutils ---> Extracting py25-docutils ---> Configuring py25-docutils ---> Building py25-docutils ---> Staging py25-docutils into destroot ---> Installing py25-docutils @0.5_0 ---> Activating py25-docutils @0.5_0 ---> Cleaning py25-docutils $ port contents py25-docutils | grep roman.py /opt/local/lib/python2.5/site-packages/roman.py /opt/local/lib/python2.5/site-packages/roman.pyc $ python -c'import roman' $
No good reason that I can see, but it seems to be happy now. Thanks!
comment:3 follow-up: ↓ 6 Changed 4 years ago by blb@…
Looking at docutils' setup.py script for installation, it appears that it won't install roman.py if it already sees that it is available. Maybe you upgraded py25-docutils from an older version, and seeing roman.py from that, the new version elected to not install it?
comment:4 Changed 4 years ago by raimue@…
I have experienced the same thing. Reinstalling py25-docutils fixed it.
comment:6 in reply to: ↑ 3 Changed 4 years ago by weakish@…
Replying to blb@…:
Looking at docutils' setup.py script for installation, it appears that it won't install roman.py if it already sees that it is available. Maybe you upgraded py25-docutils from an older version, and seeing roman.py from that, the new version elected to not install it?
Exactly.
Maybe the roman.py can be a separate port? (Just like what Debian did?)


Hmm, seems to install roman.py and roman.pyc for me (and rst2html.py runs without error):
Is your version of py25-docutils 0.5?