Opened 16 years ago

Closed 10 years ago

#18869 closed defect (fixed)

py25-docutils does not include roman.py

Reported by: jdswinbank (John Swinbank) Owned by: alex@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
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 (10)

comment:1 Changed 16 years ago by blb@…

Owner: changed from macports-tickets@… to alex@…

Hmm, seems to install roman.py and roman.pyc for me (and rst2html.py runs without error):

$ 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

Is your version of py25-docutils 0.5?

comment:2 Changed 16 years ago by jdswinbank (John 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 Changed 16 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 16 years ago by raimue (Rainer Müller)

I have experienced the same thing. Reinstalling py25-docutils fixed it.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 in reply to:  3 Changed 15 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?)

comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jmr@… eridius@… ryandesign@… added

py26-roman is now a separate port. Now we need the same for Python 2.5 and 2.4 -- bearing in mind the issue with the current implementation reported in #23520.

comment:8 Changed 14 years ago by jmroot (Joshua Root)

Cc: jmr@… eridius@… removed

comment:9 Changed 10 years ago by petrrr

Closing this ticket!

The ports py-roman and py-docutils are now separate ports for some time and the ports were updated many times. So any of the described problems should have surfaces.

comment:10 Changed 10 years ago by petrrr

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.