![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 72130
Join Date: Nov 2008
Location: San Francisco Bay Area, CA, USA
Device: Sony PRS-505, Kindle DX 1st Gen, Kindle Fire 1st Gen
|
Can't find importlib when building documentation
I'm attempting to build HTML from the documentation and cannot get it to work. I don't know enough about Python to understand what is wrong and could use some guidance. Does anyone know how I can resolve this issue?
My bzr checkout is up-to-date. I'm using Cygwin on Win7 64-bit. I have Cygwin's Python 2.6.5 package installed. CALIBRE_DEVELOP_FROM is set to /home/owner/calibre/src in bash. I installed Sphinx with the following commands. Code:
wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py easy_install -U Sphinx Code:
owner@6930-laptop ~/calibre/src/calibre/manual $ make html mkdir -p .build/html .build/doctrees sphinx-build -b html -d .build/doctrees -D latex_paper_size= . .build/html Running Sphinx v1.0.7 Exception occurred: File "/home/owner/calibre/src/calibre/constants.py", line 15, in <module> import sys, locale, codecs, os, importlib, collections ImportError: No module named importlib The full traceback has been saved in /tmp/sphinx-err-XYtrkf.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>, or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks! make: *** [html] Error 1 Code:
# Sphinx version: 1.0.7 # Python version: 2.6.5 # Docutils version: 0.7 release # Jinja2 version: 2.5.5 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/Sphinx-1.0.7-py2.6.egg/sphinx/cmdline.py", line 187, in main warningiserror, tags) File "/usr/lib/python2.6/site-packages/Sphinx-1.0.7-py2.6.egg/sphinx/application.py", line 104, in __init__ confoverrides or {}, self.tags) File "/usr/lib/python2.6/site-packages/Sphinx-1.0.7-py2.6.egg/sphinx/config.py", line 168, in __init__ execfile(config['__file__'], config) File "/home/owner/calibre/src/calibre/manual/conf.py", line 21, in <module> import custom File "/home/owner/calibre/src/calibre/manual/custom.py", line 15, in <module> from calibre.linux import entry_points File "/home/owner/calibre/src/calibre/__init__.py", line 15, in <module> from calibre.constants import (iswindows, isosx, islinux, isfrozen, File "/home/owner/calibre/src/calibre/constants.py", line 15, in <module> import sys, locale, codecs, os, importlib, collections ImportError: No module named importlib |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
importlib exists only in python 2.7 and higher.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 72130
Join Date: Nov 2008
Location: San Francisco Bay Area, CA, USA
Device: Sony PRS-505, Kindle DX 1st Gen, Kindle Fire 1st Gen
|
Is calibre giving the error or Sphinx? The calibre docs say it works with Python 2.6 while the Sphinx docs say it can work with Python 2.4 or higher.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre needs python >= 2.7
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Database Documentation | mfaine | Calibre | 4 | 01-07-2011 02:01 PM |
Server Documentation? | Joe McPlumber | Calibre | 4 | 07-05-2010 11:34 PM |
Technical Documentation | Gremlin | HanLin eBook | 4 | 07-16-2009 02:24 AM |
Documentation for FBReader | MishaS | Reading and Management | 5 | 07-29-2008 01:00 PM |
More Detailed Documentation? | TedPark | Sony Reader Dev Corner | 3 | 06-10-2008 09:06 PM |