Fails to run: "QGtkStyle could not resolve GTK."

Bug #1740020 reported by Paul Huygen
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

I installed Calibre 3.14.0 as described in https://calibre-ebook.com/download_linux on an XUbuntu 17.10 Desktop. When I try to run it, Calibre aborts with the message "QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries."

Please can you help to sove this problem?
Cheers,

Paul Huygen

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1740020

That error looks like it is coming from Qt trying to load the system
theme, which will only happen if you have set the environment variable
for it. Unset it and you will be fine. See
https://manual.calibre-ebook.com/customize.html#environment-variables

 status invalid

Changed in calibre:
status: New → Invalid
Revision history for this message
Paul Huygen (paul-huygen) wrote : Re: [Bug 1740020] Re: calibre bug 1740020

Dear Kovid.

On 12/27/2017 03:35 AM, Kovid Goyal wrote:
> That error looks like it is coming from Qt trying to load the system
> theme, which will only happen if you have set the environment variable
> for it. Unset it and you will be fine. See
> https://manual.calibre-ebook.com/customize.html#environment-variables
>
> status invalid
>
> ** Changed in: calibre
> Status: New => Invalid
>

Great, it works. I am very glad.

Cheers,

Paul

Revision history for this message
Peter Kelly (waylanderpk) wrote :

I'm using Ubutun 17.10 mate, I have the same issue. Changing the environment variable did not work.

peter@Talesian:/opt/calibre/bin$ CALIBRE_USE_SYSTEM_THEME=1 calibre
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.

peter@Talesian:/opt/calibre/bin$ CALIBRE_USE_SYSTEM_THEME=0 calibre
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.

Revision history for this message
Kovid Goyal (kovid) wrote :

That value of the environment variable is irrelevant, calibre checks for its existence.

Revision history for this message
Mark Oliver (flvegat) wrote :

CALIBRE_USE_SYSTEM_THEME=1 fixed the problem on my Ubuntu 18.04 LTS

Revision history for this message
Paul Huygen (paul-huygen) wrote : Re: [Bug 1740020] Re: Fails to run: "QGtkStyle could not resolve GTK."

On 08/10/2018 07:22 PM, Mark Oliver wrote:
> CALIBRE_USE_SYSTEM_THEME=1 fixed the problem on my Ubuntu 18.04 LTS
>
Thanks,

Paul Huygen

Revision history for this message
Sean Lawrence (sklawren) wrote :

It doesn't work for me, either. Same experience as Peter.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.