#220 Circular ImportError on docutils.io

closed-duplicate
nobody
None
5
2013-03-04
2013-02-13
No

Beginning with docutils 0.10, an error occurs when one attempts to import docutils.io before docutils.utils:

PS C:\Users\jaraco> python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import docutils.io
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\python\lib\site-packages\docutils-0.10-py2.7.egg\docutils\io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "c:\python\lib\site-packages\docutils-0.10-py2.7.egg\docutils\utils\__init__.py", line 20, in <module>
from docutils.io import FileOutput
ImportError: cannot import name FileOutput
>>> import docutils.utils
>>> import docutils.io
>>>

Discussion

  • Günter Milde

    Günter Milde - 2013-03-04

    Seems to be a duplicate of [ 3596884 ] "exception importing ``docutils.io``" fixed in the development version.
    Try with a recent daily snapshot.

     
  • Günter Milde

    Günter Milde - 2013-03-04
    • status: open --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks