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
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 539181] [NEW] reStructuredText fails to import docutils.parser.rst | #1 |
Changed in zope2: | |
status: | New → Invalid |
Florian Friesdorf (flo-chaoflow) wrote : | #2 |
It is not inside the egg, in case of:
- being pulled in by buildout as dependency of Zope2
- being installed by easy_install
- being installed by pip (in this case it is installed directly into site-packages as roman.py)
What do you suggest needs to be fixed?
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 539181] Re: reStructuredText fails to import docutils.parser.rst | #3 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Friesdorf wrote:
> It is not inside the egg, in case of:
> - being pulled in by buildout as dependency of Zope2
> - being installed by easy_install
> - being installed by pip (in this case it is installed directly into site-packages as roman.py)
>
> What do you suggest needs to be fixed?
I can't reproduce your problem:
$ /path/to/
$ /tmp/foo/
$ /tmp/foo/bin/python
...
>>> import roman
>>> roman.__file__
'/tmp/
Tres.
- --
=======
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
oqcAn3Cu0bV+
=Q6Gs
-----END PGP SIGNATURE-----
Florian Friesdorf (flo-chaoflow) wrote : | #4 |
Thank you very much and sorry for bothering, an egg without roman made it into my egg cache. I consider an egg that is different depending on its install-time environment a bug - but certainly not a bug of Zope2.
Florian Friesdorf (flo-chaoflow) wrote : | #5 |
for completeness' sake, now tracked in: https:/
Florian Friesdorf (flo-chaoflow) wrote : | #6 |
Zope2 should require roman as long as docutils is broken, otherwise there is the possibility that an egg without roman enters the egg cache.
David Glick (davisagli) wrote : | #7 |
This may be fixed in docutils 0.9: http://
-----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-----