reStructuredText fails to import docutils.parser.rst
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
- reStructuredText imports docutils.parser.rst
- docutils.parser.rst needs roman
- roman is an optional dependency of docutils which is currently not pulled in
I could not make sense from docutils' setup.py - When installing it into a virtualenv with easy_install from distribute, it does not install roman. When using pip there remains a roman.py in site-packages, however, no egg-info and pip does not tell anything about installing roman as a dependecy - it seems like a bug, that roman is put into site-packages by pip.
I think reStructuredText should require roman or require docutils in a way, that roman is pulled in.
ipdb session:
> /home/cfl/
33 # parameter to False.
---> 34 import docutils.
35 for title, options, conf in docutils.
ipdb> l
29 """ % {'version' : docutils.
30
31 # Disable inclusion of files for security reasons. We do this by
32 # changing the default value of the ``file_
33 # parameter to False.
---> 34 import docutils.
35 for title, options, conf in docutils.
36 if options == ['--file-
37 conf['default'] = 0
38 break
39
ipdb> n
> /home/cfl/
75 import ipdb;ipdb.
---> 76 from docutils.
77 from docutils import frontend, nodes
ipdb> n
ImportError: 'No module named roman'
> /home/cfl/
75 import ipdb;ipdb.
---> 76 from docutils.
77 from docutils import frontend, nodes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Friesdorf wrote:
> Public bug reported:
>
> - reStructuredText imports docutils.parser.rst
> - docutils.parser.rst needs roman
> - roman is an optional dependency of docutils which is currently not pulled in
>
> I could not make sense from docutils' setup.py - When installing it into
> a virtualenv with easy_install from distribute, it does not install
> roman. When using pip there remains a roman.py in site-packages,
> however, no egg-info and pip does not tell anything about installing
> roman as a dependecy - it seems like a bug, that roman is put into site-
> packages by pip.
status invalid
The 'roman' module is shipped inside the 'docutils' 0.6 source
distribution in the 'extras' subdirectory. docutils' setup.py carefully
installs it into the docutils egg if it is not already available on the
PYTHONPATH at install time.
Zope2 has tests which verify the importability of docutils. parser. rst.
Tres. ======= ======= ======= ======= ======= ======= ======= ======= ==== palladion. com enigmail. mozdev. org
- --
=======
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAku ekZIACgkQ+ gerLs4ltQ5DcACe Pvfp473jnKro0MH 8lSYJjcV7 A66LeNrP3uYn+ FrMp
fVUAoMs1pJMPOzs
=Smlj
-----END PGP SIGNATURE-----