Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-11-2017, 09:34 AM   #1
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Calibre compile error on linux

Hi all,

I am trying to compile a pristine calibre source, and get the following error:
Code:
...
Installing resources to /home/norbert/Development/calibre/calibre-3.3.0/staging-root/share/calibre
Traceback (most recent call last):
  File "setup.py", line 119, in <module>
    sys.exit(main())
  File "setup.py", line 104, in main
    command.run_all(opts)
  File "/home/norbert/Development/calibre/calibre-3.3.0/setup/__init__.py", line 236, in run_all
    self.run_cmd(self, opts)
  File "/home/norbert/Development/calibre/calibre-3.3.0/setup/__init__.py", line 232, in run_cmd
    cmd.run(opts)
  File "/home/norbert/Development/calibre/calibre-3.3.0/setup/install.py", line 142, in run
    self.run_postinstall()
  File "/home/norbert/Development/calibre/calibre-3.3.0/setup/install.py", line 167, in run_postinstall
    manifest=self.manifest)
  File "/home/norbert/Development/calibre/calibre-3.3.0/src/calibre/linux.py", line 674, in __init__
    scripts = cPickle.loads(P('scripts.pickle', data=True))
  File "/home/norbert/Development/calibre/calibre-3.3.0/src/calibre/utils/resources.py", line 73, in get_path
    with open(fpath, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/home/norbert/Development/calibre/calibre-3.3.0/resources/scripts.pickle'
Any idea how to fix that?

Thanks

Norbert
norbusan is offline   Reply With Quote
Old 07-11-2017, 09:40 AM   #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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You appear to be missing scripts.pickle, which is present in the source tarball

Code:
tar tvf /mnt/external/calibre/3.3.0/calibre-3.3.0.tar.xz| grep scripts.pickle
-rw-r--r-- kovid/kovid     360 2017-06-23 09:34 calibre-3.3.0/resources/scripts.pickle
kovidgoyal is offline   Reply With Quote
Advert
Old 07-11-2017, 09:49 AM   #3
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Interesting, I have a calibre-3.3.0.tar.gz from github form this link https://github.com/kovidgoyal/calibr.../v3.3.0.tar.gz and it doesn't contain the .pickle file.

I am now downloading the calibre-3.3.0.tar.xz from this link https://github.com/kovidgoyal/calibr...e-3.3.0.tar.xz and will retry.

Thanks for the quick answer

Norbert
norbusan is offline   Reply With Quote
Old 07-11-2017, 09:50 AM   #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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
github's auto-generated source tarballs are not appropriate. Always use the source tarball URL given on the linux download page.
kovidgoyal is offline   Reply With Quote
Old 07-11-2017, 09:51 AM   #5
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Ok, thanks!
norbusan is offline   Reply With Quote
Advert
Old 07-11-2017, 10:09 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
More specifically, the tarballs that Kovid distributes from the download page are more than just the source code from version control (which is what Github's autogenerated archives will get you).

The tarballs on the calibre download page (and also mirrored on Fosshub and, for the latest release only, on Github), contain a number of build artifacts, for example, the compiled localizations, the transpiled rapydscript-to-js code for the server, etc.

You can create all this yourself, by using:
Code:
python2 setup.py bootstrap
This is what I do in my Arch Linux build recipe for the calibre-git package, which, since it builds from a git checkout and always uses the latest git master, cannot rely on the pregenerated release artifacts in a release tarball.
eschwartz is offline   Reply With Quote
Old 07-13-2017, 12:26 AM   #7
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Thanks, that is useful, but I will not build from git for now.

I have adjusted the calibre Debian package to ship all the man pages as produced during build, as well as the .desktop files and icons. The patch is sent already to the maintainer and I hope he includes it soon.

Thanks

Norbert
norbusan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre content server on linux error vil_coyotte Calibre 2 11-02-2012 08:56 AM
Calibre 0.8.36 - Linux Compile Error - No module named dateutil.parser jasn Calibre 2 01-21-2012 11:36 PM
PBSDK-linux-libwine compile -lpthread error read365 PocketBook Developer's Corner 1 10-05-2011 08:27 AM
Calibre 0.7.43/44 - Linux Compile Segmentation Fault jasn Calibre 2 02-08-2011 11:52 AM
Calibre compile error JeffElkins Calibre 6 10-24-2008 06:59 PM


All times are GMT -4. The time now is 12:22 PM.


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