Bugs item #3596884, was opened at 2012-12-17 04:18
Message generated for change (Comment added) made by neddeily
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3596884&group_id=38414
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: python 2.x import exception
Initial Comment:
Doing: from docutils import io, nodes
Raises a fileload exception with docutils 1.0
Package installed from pip
----------------------------------------------------------------------
Comment By: Ned Deily (neddeily)
Date: 2012-12-23 15:29
Message:
Adding an explicit "import docutils.utils" before importing from
docutils.io works around the bug.
----------------------------------------------------------------------
Comment By: Georges Racinet ()
Date: 2012-12-17 11:27
Message:
Hi,
we've been experiencing that one with docutils 0.10, too.
~ $ /tmp/testdocenv/bin/python
Python 2.7.3rc2 (default, Apr 22 2012, 22:30:17)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from docutils import io
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/testdocenv/local/lib/python2.7/site-packages/docutils/io.py",
line 18, in <module>
from docutils.utils.error_reporting import locale_encoding,
ErrorString, ErrorOutput
File
"/tmp/testdocenv/local/lib/python2.7/site-packages/docutils/utils/__init__.py",
line 20, in <module>
from docutils.io import FileOutput
ImportError: cannot import name FileOutput
This is in a fresh fully insulated virtualenv, docutils installed via pip
from pypi
This really looks like an import loop between the 'io' and 'utils' modules.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3596884&group_id=38414
|