![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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' Thanks Norbert |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
|
Ok, thanks!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |