Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2012, 01:57 PM   #1
chovan
Member
chovan began at the beginning.
 
Posts: 11
Karma: 12
Join Date: Oct 2011
Device: Kindle 3
Problems running Calibre on FreeBSD

Sorry for having dug out this 3-year old thread. Just wondering if anybody got Calibre (Calibre-server) running on FreeBSD or FreeNas?

I found a package on FreeBSD port (ftp://ftp1.freebsd.org/pub/FreeBSD/p...bre-0.8.26.tbz) but still got error message:
Quote:
Traceback (most recent call last):
File "/usr/local/bin/calibre-server", line 18, in <module>
from calibre.library.server.main import main
File "/usr/local/lib/calibre/calibre/library/server/main.py", line 12, in <module>
from calibre.library.server.base import LibraryServer
File "/usr/local/lib/calibre/calibre/library/server/base.py", line 21, in <module>
from calibre.library.server.content import ContentServer
File "/usr/local/lib/calibre/calibre/library/server/content.py", line 14, in <module>
from calibre.library.caches import SortKeyGenerator
File "/usr/local/lib/calibre/calibre/library/caches.py", line 20, in <module>
from calibre.ebooks.metadata.opf2 import metadata_to_opf
File "/usr/local/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
from lxml import etree
ImportError: No module named lxml

Last edited by theducks; 01-06-2012 at 02:04 PM. Reason: Add [old thread] title
chovan is offline   Reply With Quote
Old 01-06-2012, 03:51 PM   #2
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by chovan View Post
Sorry for having dug out this 3-year old thread. Just wondering if anybody got Calibre (Calibre-server) running on FreeBSD or FreeNas?
You need to install the python lxml module (devel/py-lxml), I'm not sure how your port install didnt catch that, since it is in the dependency info.

That said, you can also run the latest release without problem, should you not want to deal with any port delays.

(Personally that's what I do)
Serpentine is offline   Reply With Quote
Advert
Old 01-06-2012, 05:13 PM   #3
chovan
Member
chovan began at the beginning.
 
Posts: 11
Karma: 12
Join Date: Oct 2011
Device: Kindle 3
Quote:
Originally Posted by Serpentine View Post
You need to install the python lxml module (devel/py-lxml), I'm not sure how your port install didnt catch that, since it is in the dependency info.

That said, you can also run the latest release without problem, should you not want to deal with any port delays.

(Personally that's what I do)
Thanks Serpentine for replying.

I'm pretty sure I have installed the lxml module, I saw the following in my list of packages:
Quote:
py27-lxml-2.3.2 Pythonic binding for the libxml2 and libxslt libraries
I will try to install the latest version from Calibre website.
chovan is offline   Reply With Quote
Old 01-06-2012, 05:50 PM   #4
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Hmm, that seems a bit strange - I'd try using the port rather than the pre-built package.
Serpentine is offline   Reply With Quote
Old 01-06-2012, 06:40 PM   #5
chovan
Member
chovan began at the beginning.
 
Posts: 11
Karma: 12
Join Date: Oct 2011
Device: Kindle 3
Quote:
Originally Posted by Serpentine View Post
Hmm, that seems a bit strange - I'd try using the port rather than the pre-built package.
So do you have Calibre running on FreeBSD?
Just tried to install the latest version from Calibre site and got this:

Quote:
freenas:/opt/calibre# python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main()"
file: not found
Enter the installation directory for calibre [/opt]:
Will download and install calibre-0.8.34-i686.tar.bz2
Downloading calibre-0.8.34-i686.tar.bz2
100% [================================================== ====================]
Downloaded 49198179 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname string [...]
/opt/calibre/calibre_postinstall: /bin/calibre_postinstall: not found
chovan is offline   Reply With Quote
Advert
Old 01-06-2012, 08:56 PM   #6
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by chovan View Post
So do you have Calibre running on FreeBSD?
Just tried to install the latest version from Calibre site and got this:
Yeah it's running on two boxes here, neither are the latest release however - one is from ports and the other is the calibre a newer calibre release from the release.

You are trying to install the linux binaries there - I doubt the install/config scripts will be very happy, even if you have the linux emulation layer. I would suggest rather using a source install, the freebsd ports tree contains 2 trivial patches which will make it happy (tho they are not really required, since python2 is often aliased to python). You could just use the port, specify the latest source and ignore hashes (the patches should then auto-apply, and the makefile will happily get the rest done).

However at the moment I'm busy rebuilding everything on the latter box, so I'll test the latest version soon as kde finishes off. I have no idea about freenas however, I track freebsd, -current; everything is from source since I enjoy retaining my sanity.
Serpentine is offline   Reply With Quote
Old 01-06-2012, 10:51 PM   #7
chovan
Member
chovan began at the beginning.
 
Posts: 11
Karma: 12
Join Date: Oct 2011
Device: Kindle 3
Quote:
Originally Posted by Serpentine View Post
Yeah it's running on two boxes here, neither are the latest release however - one is from ports and the other is the calibre a newer calibre release from the release.

You are trying to install the linux binaries there - I doubt the install/config scripts will be very happy, even if you have the linux emulation layer. I would suggest rather using a source install, the freebsd ports tree contains 2 trivial patches which will make it happy (tho they are not really required, since python2 is often aliased to python). You could just use the port, specify the latest source and ignore hashes (the patches should then auto-apply, and the makefile will happily get the rest done).

However at the moment I'm busy rebuilding everything on the latter box, so I'll test the latest version soon as kde finishes off. I have no idea about freenas however, I track freebsd, -current; everything is from source since I enjoy retaining my sanity.
Thanks again Serpentine! Freenas is a trimmed FreeBSD system. It even does not have ports built. I think I have to first make the ports tree but don't know how.

I tried to use source install, by using
Quote:
curl http://status.calibre-ebook.com/dist/src | tar xvJ
cd calibre*
sudo python setup.py install
However, it does not like tar xvJ, so I tried tar xv then it says can not find folder /dev/sa0 (or whatever)...
chovan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre and FreeBSD bgalbrecht Calibre 1 01-27-2010 10:12 PM
problems running Calibre on FreeBSD kacir Calibre 5 10-22-2009 02:24 AM
Observations/problems running Calibre under OS X garygibsonsf Calibre 17 07-25-2008 11:03 PM
Problems running calibre on Windows XP maccow Calibre 2 06-05-2008 01:35 PM
Problems running calibre 0.4.56 on Windows astrodad Calibre 17 05-22-2008 10:49 AM


All times are GMT -4. The time now is 10:17 AM.


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