View Full Version : calibre 0.4.136 not compiling on linux


thebadtouch
02-10-2009, 06:59 PM
Hi,
I got the latest version of calibre (0.4.136), and got the following message when running "python setup.py install" as root:

Installing calibre script to /usr/local/bin

Installed /usr/local/lib/python2.5/site-packages/calibre-0.4.136-py2.5-linux-i686.egg
Processing dependencies for calibre==0.4.136
Finished processing dependencies for calibre==0.4.136
Traceback (most recent call last):
File "/usr/local/bin/calibre_postinstall", line 8, in <module>
load_entry_point('calibre==0.4.136', 'console_scripts', 'calibre_postinstall')()
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 277, in load_entry_point
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 2180, in load_entry_point
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 1913, in load
File "build/bdist.linux-i686/egg/calibre/linux.py", line 11, in <module>
File "/usr/local/lib/python2.5/site-packages/PIL/__init__.py", line 12, in devices
# ;-)
File "build/bdist.linux-i686/egg/calibre/devices/cybookg3/driver.py", line 11, in <module>
File "build/bdist.linux-i686/egg/calibre/devices/usbms/driver.py", line 12, in <module>
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 9, in <module>
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/opf2.py", line 15, in <module>
ImportError: No module named dateutil
Traceback (most recent call last):
File "setup.py", line 499, in <module>
subprocess.check_call('calibre_postinstall', shell=True)
File "/usr/local/lib/python2.5/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'calibre_postinstall' returned non-zero exit status 1


I checked all dependencies, and everything seems ok. Am I missing a piece somewhere?

Thanks very much for your program and for your help.

VERY SORRY -- just saw the post from Talung posted a few minutes before mine. Was able to get the python-dateutil package installed, and everyting compiles fine for calibre now.

Thanks again!

Talung
02-10-2009, 07:06 PM
Hi There,

It looks like it is missing the the dateutil python module.

If you are on a debian based system try:

sudo apt-get install python-dateutil

then try compile again. Worked for me.

thebadtouch
02-10-2009, 07:08 PM
Hi Talung,
Yes, I was able to get it.. I'm on slackware, though :) don't seem to be many of us around anymore.

Thanks for your assistance.