Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2009, 06:36 PM   #1
k8oylos
Junior Member
k8oylos began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2009
Device: prs505
Not loading - AttributeError: /usr/bin/python: undefined symbol: FcPatternBuild

Hi,
i tried to install calibre on opensuse11.1 (version found here
http://lizards.opensuse.org/2009/03/...-with-calibre/

When i try to run it, it starts loading (cursor shows some books bumping) and then disappears after 10 seconds.
I run through console and i get

Traceback (most recent call last):
File "/usr/bin/calibre", line 8, in <module>
load_entry_point('calibre==0.5.6', 'gui_scripts', 'calibre')()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 277, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2180, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1913, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.6/site-packages/calibre/gui2/main.py", line 27, in <module>
from calibre.gui2.dialogs.scheduler import Scheduler
File "/usr/lib/python2.6/site-packages/calibre/gui2/dialogs/scheduler.py", line 23, in <module>
from calibre.gui2.dialogs.user_profiles import UserProfiles
File "/usr/lib/python2.6/site-packages/calibre/gui2/dialogs/user_profiles.py", line 10, in <module>
from calibre.gui2.dialogs.user_profiles_ui import Ui_Dialog
File "/usr/lib/python2.6/site-packages/calibre/gui2/dialogs/user_profiles_ui.py", line 279, in <module>
from calibre.gui2.widgets import BasicList
File "/usr/lib/python2.6/site-packages/calibre/gui2/widgets.py", line 19, in <module>
from calibre.utils.fontconfig import find_font_families
File "/usr/lib/python2.6/site-packages/calibre/utils/fontconfig.py", line 125, in <module>
lib.FcPatternBuild.restype = POINTER(FcPattern)
File "/usr/lib/python2.6/ctypes/__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/python: undefined symbol: FcPatternBuild


I arrived here after googling the last line to this thread
https://www.mobileread.com/forums/sho...d.php?p=320849
i realized, as in the last post there, that i had freetype2 and not freetype installed, so i also installed that but i didn't know how to run callibre_postinstall, i just removed and reinstalled calibre, but the situation remains the same.

Also, regarding the other two questions you had in that post (if that helps)
k8oylos@linux-rovh:~> calibre-debug -c "from ctypes import util; print util.find_library('fontconfig')"
None
k8oylos@linux-rovh:~> readelf -a /usr/lib/libfontconfig.so | grep FcPatternBuild
bash: readelf: command not found

Thanks in advance!
k8oylos is offline   Reply With Quote
Old 04-09-2009, 06:50 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: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
readelf is a development tool you'll probably have to install some packages to get, exactly which ones, depends on your distro.

I would suggest trying the binary installer forst as IIRC it includes its own copy of fontconfig and freetype
kovidgoyal is offline   Reply With Quote
Advert
Old 04-09-2009, 07:39 PM   #3
k8oylos
Junior Member
k8oylos began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2009
Device: prs505
hmm, you are talking to a newbie here, sorry half the words you are using make no sense.
binary installer forst as IIRC??o?

PS: i tried doing the installation as you have it in your site and get a similar error, if that's of any significance

Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
Setting up desktop integration...
Installing MAN pages...
Installing MAN page for lrf-meta
Installing MAN page for rtf-meta
Installing MAN page for pdf-meta
Installing MAN page for opf-meta
Installing MAN page for epub-meta
Installing MAN page for mobi-meta
Installing MAN page for txt2lrf
Installing MAN page for html2lrf
Installing MAN page for html2oeb
Installing MAN page for html2epub
Installing MAN page for odt2oeb
Installing MAN page for lit2lrf
Installing MAN page for epub2lrf
Installing MAN page for rtf2lrf
Installing MAN page for web2disk
Installing MAN page for feeds2disk
Installing MAN page for calibre-server
Installing MAN page for feeds2lrf
Installing MAN page for feeds2epub
Installing MAN page for feeds2mobi
Installing MAN page for web2lrf
Installing MAN page for pdf2lrf
Installing MAN page for mobi2lrf
Installing MAN page for fb22lrf
Installing MAN page for any2lrf
Installing MAN page for any2epub
Installing MAN page for any2lit
Installing MAN page for any2mobi
Installing MAN page for lrf2lrs
Installing MAN page for lrs2lrf
Installing MAN page for pdfreflow
Installing MAN page for librarything
Installing MAN page for mobi2oeb
Installing MAN page for oeb2mobi
Installing MAN page for lit2oeb
Installing MAN page for oeb2lit
Installing MAN page for comic2lrf
Installing MAN page for comic2epub
Installing MAN page for comic2mobi
Installing MAN page for comic2pdf
Installing MAN page for calibre-debug
Traceback (most recent call last):
File "/tmp/init.py", line 45, in <module>
File "/home/kovid/work/calibre/src/calibre/linux.py", line 481, in binary_install
File "/home/kovid/work/calibre/src/calibre/linux.py", line 449, in post_install
File "/home/kovid/work/calibre/src/calibre/linux.py", line 428, in install_man_pages
File "/home/kovid/work/calibre/src/calibre/utils/fontconfig.py", line 125, in <module>
File "/usr/lib/python2.6/ctypes/__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /opt/calibre/loader: undefined symbol: FcPatternBuild
k8oylos is offline   Reply With Quote
Old 04-09-2009, 07:46 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: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You basically need the correct freetype library installed. I suggest posting in https://www.mobileread.com/forums/sho...d.php?p=320849 and asking Derry what exactly he did to get it working.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AttributeError: 'NoneType' object has no attribute 'replace' when trying to add books tilleydog Calibre 16 10-04-2010 04:29 AM
AttributeError: 'NoneType' object has no attribute 'lower manada Calibre 2 08-10-2010 10:54 PM
(Development) What are these apparently-undefined python operators? offby1 Calibre 5 06-26-2010 11:57 AM
PRS-600 Sony library - Error undefined omk3 Sony Reader 13 01-22-2010 10:52 AM
iLiad How to replace /usr/lib? ericshliao iRex Developer's Corner 24 04-12-2009 02:19 PM


All times are GMT -4. The time now is 07:50 PM.


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