Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2009, 03:50 PM   #1
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
Calibre on Ubuntu 8.04 - installation failed

Hello, everyone!
I just ordered Sony PRS-505, but until I get it in my mailbox I started to play with Calibre since I am a Linux user. Unfortunately I didn't succeed to install it.
I am using Ubuntu 8.04 LTS (Long Time Support).

1. I tried to install Calibre from binaries. The following was happen:kostap@shark:~/work/reader/calibre-0.5.1$ sudo python -c "import urllib2; exec urllib2.urlopen('http://calibre.kovidgoyal.net/download_linux_binary_installer').read(); main()"
Enter the installation directory for calibre (Its contents will be deleted!)[/opt/calibre]:
Downloading calibre...
100% [================================================== ================================================== =====================================]
Extracting files to /opt/calibre ...
Extracting application files...
Illegal instruction

Well, since from the last error message I understand nothing, I tried to compile it from sources.

2. The source build failed as well:
kostap@shark:~/work/reader/calibre-0.5.1$ python setup.py build && sudo python setup.py installSetup calibre version: 0.5.1
running build
running resources
Resources are up to date
running translations
Translations up to date
running gui
Compiling form /home/kostap/work/reader/calibre-0.5.1/src/calibre/gui2/viewer/config.ui
Traceback (most recent call last):
File "setup.py", line 178, in <module>
'publish' : upload,
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/distutils/command/build.py", line 113, in run
self.run_command(cmd_name)
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/home/kostap/work/reader/calibre-0.5.1/upload.py", line 269, in run
self.build_forms()
File "/home/kostap/work/reader/calibre-0.5.1/upload.py", line 309, in build_forms
compileUi(form, buf)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line 56, in compileUi
winfo = compiler.UICompiler().compileUi(uifile, pyfile)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/compiler.py", line 71, in compileUi
w = self.parse(input_stream)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 569, in parse
actor(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 428, in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 301, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 309, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 160, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 301, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 309, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 160, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 301, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 309, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 153, in createWidget
self.stack.push(self.setupObject(widgetClass(elem) , parent, elem))
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 128, in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/objcreator.py", line 62, in createQObject
raise NoSuchWidgetError, classname
PyQt4.uic.exceptions.NoSuchWidgetError: Unknown Qt widget: QPlainTextEdit

Since I am mostly writing embedded SW, the GUI stuff is not so friendly to me (requires too much libraries )). It's hard to find which one is missing now for QPlainTextEdit widget. It may happen that Ubuntu somehow rejected this specific QT lib from its package repository. Or maybe not...
Is there any way to install Calibre on my machine?

The 8.04 LTS distro is pretty popular and used on many PC's around the world. Most developers use it and do not upgrade to the latest "half-year" release due to development tools compatibility. I would be nice if Calibre will be supported on this platform.

Thanks for your help!
kostap is offline   Reply With Quote
Old 03-18-2009, 05:00 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
do you have a 64 bit machine? And your source install is failing because your version of Qt/PyQt is too old.

Last edited by kovidgoyal; 03-18-2009 at 05:03 PM.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-18-2009, 05:03 PM   #3
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
No, it's Athlon Barton:
kostap@shark:~/work/reader/calibre-0.5.1$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 10
model name : AMD Athlon(tm) XP 2500+
stepping : 0
cpu MHz : 1837.483
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up ts
bogomips : 3678.06
clflush size : 32


Means I have to install QT4 from sources?

Last edited by kostap; 03-18-2009 at 05:04 PM. Reason: Addition
kostap is offline   Reply With Quote
Old 03-18-2009, 05:22 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm well some library conflict on your system is causing the problem with the binary installer, an strace would help.
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 05:52 PM   #5
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
The strace log is bit long, but anyway is attached. Hope it will help to understand the problem.
Thanks for your support!
Attached Files
File Type: bz2 calibre_strace.log.bz2 (828.9 KB, 233 views)
kostap is offline   Reply With Quote
Advert
Old 03-18-2009, 06:34 PM   #6
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
looks like a bug in the version of tarfile.py on your system. I've changed the installer to use the tar command instead. Try it again.
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 07:05 PM   #7
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
I got the same result. The strace log looks very similar:
...
...
_llseek(4, 0, [0], SEEK_SET) = 0
close(3) = 0
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d3e6f8) = 32723
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7853000
read(3, "", 1048576) = 0
mremap(0xb7853000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb7853000
close(3) = 0
munmap(0xb7853000, 4096) = 0
waitpid(32723, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 32723
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d3e6f8) = 995
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7853000
read(3, "", 1048576) = 0
mremap(0xb7853000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb7853000
close(3) = 0
munmap(0xb7853000, 4096) = 0
waitpid(995, Illegal instruction
[{WIFEXITED(s) && WEXITSTATUS(s) == 132}], 0) = 995
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
munmap(0xb7a2d000, 4096) = 0
unlink("/tmp/tmpcS7btS") = 0
...
...
Looking into installer code I found that the extraction method depends on attribute, but since I am not familiar with Python, I do not know how to assign such attribute...

def extract_tarball(tar, destdir):
print 'Extracting application files...'
if hasattr(tar, 'read'):
subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir])
else:
tarfile.open(tar, 'r').extractall(destdir)
kostap is offline   Reply With Quote
Old 03-18-2009, 07:15 PM   #8
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oops, my bad, fixed. Try it again.
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 07:48 PM   #9
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
Looks like the packages were extracted, but I got the same error message "Illegal instruction" during the installation. Here are the files in /opt/calibre directory:

kostap@shark:~/work/reader$ ll /opt/calibre/
total 77940
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 any2epub
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 any2lit
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 any2lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 any2mobi
-rw-r--r-- 1 kostap users 32168 2009-03-14 05:04 array.so
-rw-r--r-- 1 kostap users 19308 2009-03-14 05:04 binascii.so
-rw-r--r-- 1 kostap users 11356 2009-03-14 05:04 _bisect.so
-rw-r--r-- 1 kostap users 32288 2009-03-14 05:04 bz2.so
-rw-r--r-- 1 kostap users 27592 2009-03-14 05:04 bzrlib._btree_serializer_c.so
-rw-r--r-- 1 kostap users 10200 2009-03-14 05:04 bzrlib._chunks_to_lines_pyx.so
-rw-r--r-- 1 kostap users 16312 2009-03-14 05:04 bzrlib._patiencediff_c.so
-rw-r--r-- 1 kostap users 31816 2009-03-14 05:04 bzrlib._readdir_pyx.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 calibre
-rwxr-xr-x 1 kostap users 172 2009-03-14 05:04 calibre-customize
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 calibredb
-rwxr-xr-x 1 kostap users 168 2009-03-14 05:04 calibre-debug
-rwxr-xr-x 1 kostap users 173 2009-03-14 05:04 calibre-fontconfig
-rwxr-xr-x 1 kostap users 171 2009-03-14 05:04 calibre-parallel
-rwxr-xr-x 1 kostap users 174 2009-03-14 05:04 calibre_postinstall
-rwxr-xr-x 1 kostap users 169 2009-03-14 05:04 calibre-server
-rw-r--r-- 1 kostap users 128368 2009-03-14 05:04 _codecs_cn.so
-rw-r--r-- 1 kostap users 140656 2009-03-14 05:04 _codecs_hk.so
-rw-r--r-- 1 kostap users 17784 2009-03-14 05:04 _codecs_iso2022.so
-rw-r--r-- 1 kostap users 222576 2009-03-14 05:04 _codecs_jp.so
-rw-r--r-- 1 kostap users 120176 2009-03-14 05:04 _codecs_kr.so
-rw-r--r-- 1 kostap users 95600 2009-03-14 05:04 _codecs_tw.so
-rw-r--r-- 1 kostap users 20928 2009-03-14 05:04 _collections.so
-rwxr-xr-x 1 kostap users 165 2009-03-14 05:04 comic2epub
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 comic2lrf
-rwxr-xr-x 1 kostap users 165 2009-03-14 05:04 comic2mobi
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 comic2pdf
-rw-r--r-- 1 kostap users 64564 2009-03-14 05:04 cPickle.so
-rw-r--r-- 1 kostap users 30712 2009-03-14 05:04 Crypto.Cipher.AES.so
-rw-r--r-- 1 kostap users 14296 2009-03-14 05:04 Crypto.Cipher.ARC2.so
-rw-r--r-- 1 kostap users 22524 2009-03-14 05:04 Crypto.Cipher.Blowfish.so
-rw-r--r-- 1 kostap users 26584 2009-03-14 05:04 Crypto.Cipher.CAST.so
-rw-r--r-- 1 kostap users 22488 2009-03-14 05:04 Crypto.Cipher.DES3.so
-rw-r--r-- 1 kostap users 14296 2009-03-14 05:04 Crypto.Cipher.IDEA.so
-rw-r--r-- 1 kostap users 18424 2009-03-14 05:04 Crypto.Cipher.RC5.so
-rw-r--r-- 1 kostap users 16768 2009-03-14 05:04 cStringIO.so
-rw-r--r-- 1 kostap users 24028 2009-03-14 05:04 _csv.so
-rw-r--r-- 1 kostap users 100080 2009-03-14 05:04 _ctypes.so
-rw-r--r-- 1 kostap users 61964 2009-03-14 05:04 _curses.so
-rw-r--r-- 1 kostap users 63744 2009-03-14 05:04 datetime.so
-rw-r--r-- 1 kostap users 127000 2009-03-14 05:04 _dbus_bindings.so
-rwxr-xr-x 1 kostap users 167 2009-03-14 05:04 ebook-viewer
-rw-r--r-- 1 kostap users 31464 2009-03-14 05:04 _elementtree.so
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 epub2lrf
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 epub-meta
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 fb22lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 fb2-meta
-rw-r--r-- 1 kostap users 17288 2009-03-14 05:04 fcntl.so
-rwxr-xr-x 1 kostap users 165 2009-03-14 05:04 feeds2disk
-rwxr-xr-x 1 kostap users 165 2009-03-14 05:04 feeds2epub
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 feeds2lrf
-rwxr-xr-x 1 kostap users 165 2009-03-14 05:04 feeds2mobi
-rw-r--r-- 1 kostap users 10564 2009-03-14 05:04 _functools.so
-rw-r--r-- 1 kostap users 10432 2009-03-14 05:04 grp.so
-rw-r--r-- 1 kostap users 1944852 2009-03-14 05:04 gtk._gtk.so
-rw-r--r-- 1 kostap users 11116 2009-03-14 05:04 _hashlib.so
-rw-r--r-- 1 kostap users 16696 2009-03-14 05:04 _heapq.so
-rw-r--r-- 1 kostap users 20984 2009-03-14 05:04 _hotshot.so
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 html2epub
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 html2lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 html2oeb
-rw-r--r-- 1 kostap users 14684 2009-03-14 05:04 _imagingft.so
-rw-r--r-- 1 kostap users 215592 2009-03-14 05:04 _imaging.so
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 imp-meta
-rwxr-xr-x 1 kostap users 161 2009-03-14 05:04 isbndb
-rw-r--r-- 1 kostap users 36720 2009-03-14 05:04 itertools.so
-rwxr-xr-x 1 kostap users 66472 2009-03-14 05:04 libbz2.so.1
-rwxr-xr-x 1 kostap users 212448 2009-03-14 05:04 libdbus-1.so.3
-rwxr-xr-x 1 kostap users 67872 2009-03-14 05:04 libexslt.so.0
-rwxr-xr-x 1 kostap users 846228 2009-03-14 05:04 libglib-2.0.so.0
-rwxr-xr-x 1 kostap users 17888 2009-03-14 05:04 libgthread-2.0.so.0
-rwxr-xr-x 1 kostap users 2099096 2009-03-14 05:04 libMagickCore.so
-rwxr-xr-x 1 kostap users 1093708 2009-03-14 05:04 libMagickWand.so
-rwxr-xr-x 1 kostap users 387100 2009-03-14 05:04 libmng.so.1
-rwxr-xr-x 1 kostap users 114248 2009-03-14 05:04 libopenjpeg.so.2
-rwxr-xr-x 1 kostap users 141092 2009-03-14 05:04 libpng12.so.0
-rwxr-xr-x 1 kostap users 1728768 2009-03-14 05:04 libpoppler.so.4
-rw-r--r-- 1 kostap users 1315360 2009-03-14 05:04 libpython2.6.so.1.0
-rwxr-xr-x 1 kostap users 1763996 2009-03-14 05:04 libQtCore.so.4
-rwxr-xr-x 1 kostap users 7261988 2009-03-14 05:04 libQtGui.so.4
-rwxr-xr-x 1 kostap users 781344 2009-03-14 05:04 libQtNetwork.so.4
-rwxr-xr-x 1 kostap users 306564 2009-03-14 05:04 libQtSvg.so.4
-rwxr-xr-x 1 kostap users 7254404 2009-03-14 05:04 libQtWebKit.so.4
-rwxr-xr-x 1 kostap users 202404 2009-03-14 05:04 libQtXml.so.4
-rwxr-xr-x 1 kostap users 167 2009-03-14 05:04 librarything
-rwxr-xr-x 1 kostap users 422112 2009-03-14 05:04 libsqlite3.so.0
-rwxr-xr-x 1 kostap users 909440 2009-03-14 05:04 libstdc++.so.6
-rwxr-xr-x 1 kostap users 241586 2009-03-14 05:04 libunrar.so
-rwxr-xr-x 1 kostap users 1229420 2009-03-14 05:04 libxml2.so.2
-rwxr-xr-x 1 kostap users 200192 2009-03-14 05:04 libxslt.so.1
-rwxr-xr-x 1 kostap users 69252 2009-03-14 05:04 libz.so.1
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 lit2lrf
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 lit2oeb
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 lit-meta
-rwxr-xr-x 1 kostap users 1232288 2009-03-14 05:04 loader
-rw-r--r-- 1 kostap users 28322441 2009-03-14 05:04 loader.zip
-rw-r--r-- 1 kostap users 14992 2009-03-14 05:04 _locale.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 lrf2lrs
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 lrf-meta
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 lrfviewer
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 lrs2lrf
-rw-r--r-- 1 kostap users 15792 2009-03-14 05:04 _lsprof.so
-rw-r--r-- 1 kostap users 1136556 2009-03-14 05:04 lxml.etree.so
-rw-r--r-- 1 kostap users 548 2009-03-14 05:04 manifest
-rwxr-xr-x 1 kostap users 171 2009-03-14 05:04 markdown-calibre
-rw-r--r-- 1 kostap users 21464 2009-03-14 05:04 math.so
-rw-r--r-- 1 kostap users 11644 2009-03-14 05:04 _md5.so
-rw-r--r-- 1 kostap users 19496 2009-03-14 05:04 mmap.so
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 mobi2lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 mobi2oeb
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 mobi-meta
-rw-r--r-- 1 kostap users 24500 2009-03-14 05:04 _multibytecodec.so
-rw-r--r-- 1 kostap users 22812 2009-03-14 05:04 numpy.core._dotblas.so
-rw-r--r-- 1 kostap users 399848 2009-03-14 05:04 numpy.core.multiarray.so
-rw-r--r-- 1 kostap users 114640 2009-03-14 05:04 numpy.core.scalarmath.so
-rw-r--r-- 1 kostap users 75000 2009-03-14 05:04 numpy.core._sort.so
-rw-r--r-- 1 kostap users 210360 2009-03-14 05:04 numpy.core.umath.so
-rw-r--r-- 1 kostap users 42416 2009-03-14 05:04 numpy.fft.fftpack_lite.so
-rw-r--r-- 1 kostap users 19276 2009-03-14 05:04 numpy.lib._compiled_base.so
-rw-r--r-- 1 kostap users 22192 2009-03-14 05:04 numpy.linalg.lapack_lite.so
-rw-r--r-- 1 kostap users 265072 2009-03-14 05:04 numpy.random.mtrand.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 odt2oeb
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 odt-meta
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 oeb2lit
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 oeb2mobi
-rw-r--r-- 1 kostap users 61720 2009-03-14 05:04 OpenSSL.crypto.so
-rw-r--r-- 1 kostap users 11736 2009-03-14 05:04 OpenSSL.rand.so
-rw-r--r-- 1 kostap users 45128 2009-03-14 05:04 OpenSSL.SSL.so
-rw-r--r-- 1 kostap users 29856 2009-03-14 05:04 operator.so
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 opf-meta
-rw-r--r-- 1 kostap users 39288 2009-03-14 05:04 parser.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 pdf2lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 pdf-meta
-rwxr-xr-x 1 kostap users 164 2009-03-14 05:04 pdfreflow
-rwxr-xr-x 1 kostap users 63612 2009-03-14 05:04 pdftohtml
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 pdftrim
-rw-r--r-- 1 kostap users 14684 2009-03-14 05:04 PIL._imagingft.so
-rw-r--r-- 1 kostap users 215592 2009-03-14 05:04 PIL._imaging.so
drwxr-xr-x 2 root root 4096 2009-03-19 01:33 plugins
-rwxr-xr-x 1 kostap users 161 2009-03-14 05:04 prs500
-rw-r--r-- 1 kostap users 41936 2009-03-14 05:04 pyexpat.so
-rw-r--r-- 1 kostap users 2152032 2009-03-14 05:04 PyQt4.Qsci.so
-rw-r--r-- 1 kostap users 1689240 2009-03-14 05:04 PyQt4.QtCore.so
-rw-r--r-- 1 kostap users 7291060 2009-03-14 05:04 PyQt4.QtGui.so
-rw-r--r-- 1 kostap users 463832 2009-03-14 05:04 PyQt4.QtNetwork.so
-rw-r--r-- 1 kostap users 151488 2009-03-14 05:04 PyQt4.QtOpenGL.so
-rw-r--r-- 1 kostap users 155696 2009-03-14 05:04 PyQt4.QtScript.so
-rw-r--r-- 1 kostap users 5536 2009-03-14 05:04 PyQt4.Qt.so
-rw-r--r-- 1 kostap users 300920 2009-03-14 05:04 PyQt4.QtSql.so
-rw-r--r-- 1 kostap users 109348 2009-03-14 05:04 PyQt4.QtSvg.so
-rw-r--r-- 1 kostap users 23164 2009-03-14 05:04 PyQt4.QtTest.so
-rw-r--r-- 1 kostap users 192928 2009-03-14 05:04 PyQt4.QtWebKit.so
-rw-r--r-- 1 kostap users 264572 2009-03-14 05:04 PyQt4.QtXml.so
drwxr-xr-x 5 root root 4096 2009-03-19 01:33 qtplugins
-rw-r--r-- 1 kostap users 10060 2009-03-14 05:04 _random.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 rb-meta
-rw-r--r-- 1 kostap users 21532 2009-03-14 05:04 readline.so
-rw-r--r-- 1 kostap users 10052 2009-03-14 05:04 resource.so
-rw-r--r-- 1 kostap users 39672 2009-03-14 05:04 _rl_accel.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 rtf2lrf
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 rtf-meta
-rw-r--r-- 1 kostap users 22300 2009-03-14 05:04 select.so
-rw-r--r-- 1 kostap users 18784 2009-03-14 05:04 sgmlop.so
-rw-r--r-- 1 kostap users 18872 2009-03-14 05:04 _sha256.so
-rw-r--r-- 1 kostap users 55736 2009-03-14 05:04 _sha512.so
-rw-r--r-- 1 kostap users 10396 2009-03-14 05:04 _sha.so
-rw-r--r-- 1 kostap users 64632 2009-03-14 05:04 sip.so
-rw-r--r-- 1 kostap users 53920 2009-03-14 05:04 _socket.so
-rw-r--r-- 1 kostap users 63316 2009-03-14 05:04 _sqlite3.so
-rw-r--r-- 1 kostap users 28536 2009-03-14 05:04 _ssl.so
-rw-r--r-- 1 kostap users 22200 2009-03-14 05:04 strop.so
-rw-r--r-- 1 kostap users 26548 2009-03-14 05:04 _struct.so
-rw-r--r-- 1 kostap users 17804 2009-03-14 05:04 termios.so
-rw-r--r-- 1 kostap users 18536 2009-03-14 05:04 time.so
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 txt2lrf
-rw-r--r-- 1 kostap users 585976 2009-03-14 05:04 unicodedata.so
-rw-r--r-- 1 kostap users 5852 2009-03-14 05:04 _weakref.so
-rwxr-xr-x 1 kostap users 163 2009-03-14 05:04 web2disk
-rwxr-xr-x 1 kostap users 162 2009-03-14 05:04 web2lrf
-rw-r--r-- 1 kostap users 21464 2009-03-14 05:04 zlib.so

The close-to-end part of strace log says:

_llseek(4, 0, [0], SEEK_SET) = 0
close(3) = 0
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d9c6f8) = 8810
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78f2000
read(3, "", 1048576) = 0
mremap(0xb78f2000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb78f2000
close(3) = 0
munmap(0xb78f2000, 4096) = 0
waitpid(8810, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 8810
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe([3, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7d9c6f8) = 8812
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78f2000
read(3, "", 1048576) = 0
mremap(0xb78f2000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb78f2000
close(3) = 0
munmap(0xb78f2000, 4096) = 0
waitpid(8812, Illegal instruction
[{WIFEXITED(s) && WEXITSTATUS(s) == 132}], 0) = 8812
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
munmap(0xb7a8b000, 4096) = 0
unlink("/tmp/tmp4-LhJd") = 0
kostap is offline   Reply With Quote
Old 03-18-2009, 07:52 PM   #10
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run

sudo calibre_postinstall
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 08:29 PM   #11
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
Yes, that's it. The post install script produces the error.
I found that /bin/sh is used in the script header. The Ubuntu has "dash" shell pointed by /bin/sh, not bash as it can be expected. I usually use another header for ensuring that script will run on bash:
!#/usr/bin/env bash
However just /bin/bash should work as well.
Anyway, I started post-install script with debug switch and got the following output:
kostap@shark:/opt/calibre$ sudo ./calibre_postinstall
+ export CALIBRE_CX_EXE=calibre_postinstall
+ CALIBRE_CX_EXE=calibre_postinstall
++ readlink -e ./calibre_postinstall
+ path=/home/sata0/opt/calibre/calibre_postinstall
++ dirname /home/sata0/opt/calibre/calibre_postinstall
+ base=/home/sata0/opt/calibre
+ loader=/home/sata0/opt/calibre/loader
+ export LD_LIBRARY_PATH=/home/sata0/opt/calibre:
+ LD_LIBRARY_PATH=/home/sata0/opt/calibre:
+ /home/sata0/opt/calibre/loader
./calibre_postinstall: line 7: 8979 Illegal instruction $loader "$@"

It works that way:
#!/bin/bash -x
export CALIBRE_CX_EXE=calibre_postinstall
path=`readlink -e $0`
base=`dirname $path`
loader=$base/loader
export LD_LIBRARY_PATH=$base:$LD_LIBRARY_PATH
exec $loader "$@"

But still "Illegal instruction" when loader is started.
So I tried to export all variables manually and start the loader using sudo:
kostap@shark:/opt/calibre$ sudo ./loader
Traceback (most recent call last):
File "/tmp/init.py", line 10, in <module>
File "/usr/lib/python2.6/locale.py", line 15, in <module>
File "/usr/lib/python2.6/functools.py", line 10, in <module>
ImportError: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

That's right, I do not have Python 2.6 installation. My system is based on 2.5.
Is it really needed? I mean is it possible to re-build Calibre using pyton 2.5 and PyQt 4.3.3 instead of python 2.6 and PyQt 4.4.2 ?
I think then it will work on older systems too...
Unfortunately I cannot run the system upgrade - it will ruine all my cross-build toolchains...
Anyway, if it's impossible to adopt Calibre to older Ubuntu's, I will have to work with windows books management SW running on virtual machine (I hate this mode of operation, but sometimes there is no other choice)
kostap is offline   Reply With Quote
Old 03-18-2009, 11:17 PM   #12
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
libpython2.6.so is distributed in the calibre bundle, it will be in your /opt/calibre directory. The question is why is it not being picked up? Run loader with LD_DEBUG
kovidgoyal is offline   Reply With Quote
Old 03-19-2009, 07:03 AM   #13
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
Looks the same:

kostap@shark:/opt/calibre$ echo $LD_DEBUG
all
kostap@shark:/opt/calibre$ echo $LD_LIBRARY_PATH
/home/sata0/opt/calibre
kostap@shark:/opt/calibre$ sudo ./loader
Traceback (most recent call last):
File "/tmp/init.py", line 10, in <module>
File "/usr/lib/python2.6/locale.py", line 15, in <module>
File "/usr/lib/python2.6/functools.py", line 10, in <module>
ImportError: libpython2.6.so.1.0: cannot open shared object file: No such file or directory
kostap@shark:/opt/calibre$
Attached Files
File Type: bz2 strace_loader.log.bz2 (6.7 KB, 231 views)
kostap is offline   Reply With Quote
Old 03-19-2009, 09:05 AM   #14
smurphy
Connoisseur
smurphy has a complete set of Star Wars action figures.smurphy has a complete set of Star Wars action figures.smurphy has a complete set of Star Wars action figures.
 
smurphy's Avatar
 
Posts: 92
Karma: 272
Join Date: Feb 2009
Device: PRS-505
having calibre here running on KUbuntu 8.10 - no issues.
The Segmentation fault is however showing up everywhere (I usually tend to start the viewer etc. from command-line.
Code:
$ lrfviewer Sunborn.lrf 
/usr/bin/lrfviewer: line 7: 22483 Segmentation fault      $loader "$@"
However everything works as expected.
smurphy is offline   Reply With Quote
Old 03-19-2009, 10:35 AM   #15
kostap
Member
kostap began at the beginning.
 
kostap's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2009
Location: Israel
Device: PRS-505
Hi, smurphy,
I had enough troubles moving and/or re-installing my development environment when followed regular Ubuntu releases. After a while I decided to stay with LTS. My next upgrade will be in spring 2010 then...
kostap is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Calibre 0.7.4 Installation Midas Calibre 2 06-22-2010 02:03 PM
Calibre 0.6.48 on Ubuntu 9.10 -- installation failed lenik Calibre 8 04-28-2010 09:26 PM
Calibre Installation on opensuse 11.1 michaelbn Calibre 11 02-17-2010 03:01 PM
installation of calibre tblackt Calibre 2 11-01-2009 07:25 PM
libprs500 installation on Ubuntu 7.10 bralec Calibre 1 03-27-2008 09:50 AM


All times are GMT -4. The time now is 06:49 AM.


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