Hi there,
I'm using Python 2.7 on OSX 10.6. Just upgraded to Sphinx 1.0.7. I'm
getting an error when theming.py imports zipfile. The logfile created
by Sphinx is as follows:
# Sphinx version: 1.0.7
# Python version: 2.7.0
# Docutils version: 0.7 release
# Jinja2 version: 2.5.5
Traceback (most recent call last):
File "/Users/dpo/.virtualenvs/nlpy/lib/python2.7/site-packages/
sphinx/cmdline.py", line 187, in main
warningiserror, tags)
File "/Users/dpo/.virtualenvs/nlpy/lib/python2.7/site-packages/
sphinx/application.py", line 136, in __init__
self._init_builder(buildername)
File "/Users/dpo/.virtualenvs/nlpy/lib/python2.7/site-packages/
sphinx/application.py", line 196, in _init_builder
__import__('sphinx.builders.' + mod, None, None, [cls]), cls)
File "/Users/dpo/.virtualenvs/nlpy/lib/python2.7/site-packages/
sphinx/builders/html.py", line 42, in <module>
from sphinx.theming import Theme
File "/Users/dpo/.virtualenvs/nlpy/lib/python2.7/site-packages/
sphinx/theming.py", line 14, in <module>
import zipfile
File "/Users/dpo/local/python27/lib/python2.7/zipfile.py", line 456,
in <module>
class ZipExtFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'
Strangely, importing zipfile from the Python prompt works fine and
zipfile.__file__ points to the correct file.
Importing io directly from the Python prompt also works well,
io.__file__ points to the correct file and the io module DOES have a
BufferedIOBase attribute.
Any ideas? Python bug?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.