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 04-17-2013, 08:41 PM   #1
Satas
Member
Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.
 
Posts: 14
Karma: 3088
Join Date: Apr 2013
Device: none
Can not start recoll from calibre /opt/calibre/lib/libz.so.1: no version information

Hello, I have a problem to start recoll from a plugin for calibre.

(See this thread for more information http://www.mobileread.com/forums/sho...84#post2485684)

I have following errors:
Code:
/usr/bin/recoll: /opt/calibre/lib/libz.so.1: no version information available (required by /usr/bin/recoll)
/usr/bin/recoll: /opt/calibre/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/bin/recoll)
/usr/bin/recoll: /opt/calibre/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/libxapian.so.22)
This is the part of the relevant code:

Code:
from subprocess import Popen, PIPE, STDOUT
...
cmd = "/usr/bin/recoll -c /home/stanislav/recollplugin -b -t 'test' AND 'hallo'"
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
Can someone help me, its one of the last tasks to end my plugin. Nearly everything else works quite well now.

Thanks
Satas is offline   Reply With Quote
Old 04-18-2013, 11:48 AM   #2
medoc
Junior Member
medoc began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: none
Hello,

It looks like Calibre installs its own version of the libraries, which is not the same as the system's and is not compatible with recoll. The common way to use a separate version of the libraries is to set the LD_LIBRARY_PATH variable before executing the app, so that's probably what the Calibre package does. I would try to reset this as part of the Popen call (there is an 'env' named variable defined in there to do just this). See http://docs.python.org/2/library/sub...bprocess.Popen

By setting LD_LIBRARY_PATH to an empty value, recoll should access the standard system libs.

Without trying, I can't be 100% sure that's this is going to work, but it's probably in the right direction.

Cheers,

jf
medoc is offline   Reply With Quote
Old 04-18-2013, 04:05 PM   #3
Satas
Member
Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.
 
Posts: 14
Karma: 3088
Join Date: Apr 2013
Device: none
Jeah, thanks, it was this variable I had to change to make it work. Now the plugin works and I only just have to do some cosmetics on it.
Satas is offline   Reply With Quote
Old 04-19-2013, 01:57 AM   #4
medoc
Junior Member
medoc began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: none
Glad it worked.

If you want to do anything a bit fancier than retrieving the URLs in the future (snippets?), and as you are already using Python, you'd probably be better off using the recoll Python module, it will be much easier than parsing command line output.
medoc is offline   Reply With Quote
Old 04-19-2013, 09:38 PM   #5
Satas
Member
Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.Satas could sell banana peel slippers to a Deveel.
 
Posts: 14
Karma: 3088
Join Date: Apr 2013
Device: none
The plugin is ready to use: http://www.mobileread.com/forums/sho...d.php?t=211137
Satas is offline   Reply With Quote
Old 04-19-2013, 11:22 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: 26,106
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the SanitizeLibraryPath class from calibre.gui2.__init__
kovidgoyal is offline   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
Script: store calibre ebooks as symlinks to existing lib; advanced CLI import dancal Calibre 0 12-10-2012 07:09 PM
Calibre wont start (first time start up) Mike Railton Devices 15 05-25-2012 02:14 AM
How to install prior version of Calibre when newer version installed? SilentSeven Calibre 3 04-13-2011 12:46 PM
Please help with Calibre Series Information coaver Calibre 4 01-14-2011 02:01 PM
Ubuntu Jaunty: New version of calibre won't start adouma Calibre 4 10-01-2009 10:35 PM


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


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