Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2011, 12:09 PM   #1
Halo
Connoisseur
Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.
 
Halo's Avatar
 
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
I then ran the Makefile and got the following errors:

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
/tmp/sphinx-err-XYtrkf.log contains the following.

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
Halo is offline   Reply With Quote
Old 07-06-2011, 02:11 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,133
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
importlib exists only in python 2.7 and higher.
kovidgoyal is online now   Reply With Quote
Old 07-06-2011, 02:20 PM   #3
Halo
Connoisseur
Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.Halo did not drink the Kool Aid.
 
Halo's Avatar
 
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.
Halo is offline   Reply With Quote
Old 07-06-2011, 02:30 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,133
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre needs python >= 2.7
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:24 PM.


MobileRead.com is a privately owned, operated and funded community.