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-17-2019, 02:31 PM   #1
sgseidel
Junior Member
sgseidel began at the beginning.
 
sgseidel's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Location: Vancouver, BC, Canada
Device: Mac OS X / Windows 10 / Linux
Version 3.40 won't install on Linux Mint

This is my first post on the forum, so apologies beforehand if I'm not doing something correctly:

I've attempted to install calibre 3.40.1 on Linux Mint 19.1 Cinnamon. LM19.1 OS is up to date (as of a few minutes ago). Also note LM 19.1 is running as a virtual machine on a macOS 10.14.4 host under Virtualbox 6.0.6 (latest as of a few minutes ago) with guest additions 6.0.6.

calibre was installed using the command line:

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

The following errors are thrown:

....
Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________


Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 755, in setup_completion
File "site-packages/calibre/linux.py", line 509, in write_completion
File "site-packages/calibre/gui2/__init__.py", line 13, in <module>
ImportError: cannot import name QDesktopServices

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________


Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration
File "site-packages/calibre/linux.py", line 800, in install_icons
File "site-packages/calibre/linux.py", line 790, in install_single_icon
File "site-packages/calibre/linux.py", line 1132, in render_img
ImportError: cannot import name QImage

Creating un-installer: /usr/bin/calibre-uninstall


There were 2 warnings

* Setting up completion failed with error:

* Setting up desktop integration failed with error:

Run "calibre" to start calibre
stewart@stewart-LM191:~/Downloads$ calibre
Traceback (most recent call last):
File "site.py", line 77, in main
File "site-packages/calibre/gui_launch.py", line 73, in calibre
File "site-packages/calibre/gui2/__init__.py", line 13, in <module>
ImportError: cannot import name QDesktopServices
Segmentation fault (core dumped)
stewart@stewart-LM191:~/Downloads$

I'm not sure where to go from here. Can someone advise? Thanks.
sgseidel is offline   Reply With Quote
Old 04-17-2019, 06:40 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,087
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by sgseidel View Post
This is my first post on the forum, so apologies beforehand if I'm not doing something correctly:

I've attempted to install calibre 3.40.1 on Linux Mint 19.1 Cinnamon. LM19.1 OS is up to date (as of a few minutes ago). Also note LM 19.1 is running as a virtual machine on a macOS 10.14.4 host under Virtualbox 6.0.6 (latest as of a few minutes ago) with guest additions 6.0.6.
Spoiler:

calibre was installed using the command line:

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

The following errors are thrown:

....
Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________


Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 755, in setup_completion
File "site-packages/calibre/linux.py", line 509, in write_completion
File "site-packages/calibre/gui2/__init__.py", line 13, in <module>
ImportError: cannot import name QDesktopServices

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________


Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration
File "site-packages/calibre/linux.py", line 800, in install_icons
File "site-packages/calibre/linux.py", line 790, in install_single_icon
File "site-packages/calibre/linux.py", line 1132, in render_img
ImportError: cannot import name QImage

Creating un-installer: /usr/bin/calibre-uninstall


There were 2 warnings

* Setting up completion failed with error:

* Setting up desktop integration failed with error:

Run "calibre" to start calibre
stewart@stewart-LM191:~/Downloads$ calibre
Traceback (most recent call last):
File "site.py", line 77, in main
File "site-packages/calibre/gui_launch.py", line 73, in calibre
File "site-packages/calibre/gui2/__init__.py", line 13, in <module>
ImportError: cannot import name QDesktopServices
Segmentation fault (core dumped)
stewart@stewart-LM191:~/Downloads$


I'm not sure where to go from here. Can someone advise? Thanks.
Try running calibre in debug mode:
open a terminal and enter

Code:
calibre-debug -g
If it works will get some similar to this:
Spoiler:

Code:
xxxxx@xxxxx-SDA ~ $ calibre-debug -g
calibre 3.40.1  embedded-python: True is64bit: True
Linux-4.18.0-16-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '4.18.0-16-generic', '#17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019')
Python 2.7.15
Linux: ('debian', 'buster/sid', '')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 2) && Modify ePub (1, 3, 13) && Hyphenate This! (0, 0, 8) && Goodreads (1, 4, 0) && Diaps Editing Toolbag (0, 3, 5) && KindleUnpack - The Plugin (0, 81, 5) && Reading List (1, 6, 6) && EpubSplit (2, 6, 0) && Quality Check (1, 9, 11) && Barnes & Noble (1, 2, 15) && Baen (0, 0, 3)
Turning on automatic hidpi scaling
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 85.0837438424 x 85.184279476
Using calibre Qt style: True
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
[0.00] Starting up...
[0.00] Showing splash screen...
[0.20] splash screen shown
[0.20] Initializing db...
[0.43] db initialized
[0.43] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[1.77] main UI initialized...
[1.77] Hiding splash screen
DEBUG:    0.0 get_baen_id: match_group= None
[2.15] splash screen hidden
[2.15] Started up in 2.15 seconds with 3270 books

IFit works or not post the results.

Try using the "Manual binary install or reverting to a previous version" from https://calibre-ebook.com/download_linux

My system is running
Linux Mint 19.1 Cinnamon

bernie

Last edited by gbm; 04-17-2019 at 06:43 PM.
gbm is offline   Reply With Quote
Advert
Old 04-17-2019, 10:43 PM   #3
sgseidel
Junior Member
sgseidel began at the beginning.
 
sgseidel's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Location: Vancouver, BC, Canada
Device: Mac OS X / Windows 10 / Linux
Thanks bernie.

To your suggestion to try using the "Manual binary install" from https://calibre-ebook.com/download_linux, I have done that numerous times with LM 19.1 Cinnamon on VB 6.0.4, and on at least two other distributions of Linux Mint 19.1 Mate and Xfce with 6.0.4. I then re-installed LM 19.1 Cinnamon and attempted a fresh installation of calibre with 6.0.6. The errors that I posted earlier are after the fresh installation of LM 19.1 Cinnamon and VB 6.0.6.

(In fact, I spent much of yesterday trying to get calibre to install on LM 19.1).

Here is the result of running calibre in debug mode:

stewart@stewart-LM191:~$ calibre-debug -g
calibre 3.40.1 embedded-python: True is64bit: True
Linux-4.15.0-47-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '4.15.0-47-generic', '#50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019')
Python 2.7.15
Linux: ('debian', 'buster/sid', '')
Interface language: None
Traceback (most recent call last):
File "site.py", line 77, in main
File "site-packages/calibre/debug.py", line 268, in main
File "site-packages/calibre/gui_launch.py", line 73, in calibre
File "site-packages/calibre/gui2/__init__.py", line 13, in <module>
ImportError: cannot import name QDesktopServices
Segmentation fault (core dumped)
stewart@stewart-LM191:~$
sgseidel is offline   Reply With Quote
Old 04-17-2019, 10:57 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,963
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC this is a bug in VirtualBox search this forum for virtualbox and you should find references to it.
kovidgoyal is offline   Reply With Quote
Old 04-17-2019, 11:52 PM   #5
sgseidel
Junior Member
sgseidel began at the beginning.
 
sgseidel's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Location: Vancouver, BC, Canada
Device: Mac OS X / Windows 10 / Linux
Thanks kovidgoyal.

According to Sinac in a previous thread:

Hiya, finally. It's a VirtualBox bug will be solved in the next release, at least
that's what the bug report says: (Vbox guest additions: missing shared library
dependency -> fixed after (not in) 6.0.4 and in test builds)

It was on that understanding that I upgraded Virtualbox 6.0.4 (and the guest extensions) to 6.0.6 yesterday and re-attempted the calibre installation, believing that the bug would be fixed by 6.0.6. I fear the bug has NOT been fixed in 6.0.6.

I'll try again when another version of VB has been released.

Thanks all for your help.
sgseidel is offline   Reply With Quote
Advert
Old 04-18-2019, 10:47 AM   #6
sgseidel
Junior Member
sgseidel began at the beginning.
 
sgseidel's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Location: Vancouver, BC, Canada
Device: Mac OS X / Windows 10 / Linux
Update:
I have another system running macOS 10.14.4 with Virtualbox 6.0.0. I performed a fresh installation of Linux Mint 18.3 Mate, applied all the OS software updates, installed 6.0.0 guest extensions, and then installed calibre 3.40.1 using the command:

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

calibre installed without any apparent issues.

Presumably something happened between VB 6.0.0 and 6.0.4 to break a calibre 3.40.1 installation.
sgseidel is offline   Reply With Quote
Old 04-18-2019, 01:32 PM   #7
sgseidel
Junior Member
sgseidel began at the beginning.
 
sgseidel's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2017
Location: Vancouver, BC, Canada
Device: Mac OS X / Windows 10 / Linux
Further update on my issue:

I did a fresh install of Linux Mint 19.1 Mate as guest with Virtualbox 6.0.0 on the same macOS 10.14.4 host as above, updated the LM 19.1 OS files, and applied the 6.0.0 guest additions. calibre 3.40.1 was installed as above using:

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

calibre launched with a warning about GTK libraries:

stewart@stewart-VB-LM191:~$ calibre
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
stewart@stewart-VB-LM191:~$

I did not notice any further issues with calibre.
sgseidel is offline   Reply With Quote
Old 04-18-2019, 03:31 PM   #8
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
I have just installed calibre-3.40.1-x86_64 on Mint Linux Sonya 18.2 fully updated (except for a handful packages from level 4 updates) running on real iron (not virtual machine).
kacir is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre suddenly won't load, Linux Mint Patchmaster Calibre 4 12-14-2017 09:38 PM
Install/Update fails on Linux Mint 17.1 Zauberlehrling! Devices 2 02-16-2015 12:18 PM
Calibre won't launch in linux mint 15 pimseb Devices 1 07-03-2013 02:20 AM
Trying to install version 0.6.29 in Mint 11 - HELP Mean500 Calibre 5 08-07-2011 03:51 PM
Calibre will build but won't install on bluewhite64 linux distro angevin Calibre 5 10-18-2008 10:20 PM


All times are GMT -4. The time now is 03:19 AM.


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