You are not logged in.
Hi,
I've installed Calibre 2.31.0-1 using pacman, but on starting it up I receive the error:
Traceback (most recent call last):
File "/usr/bin/calibre", line 20, in <module>
sys.exit(calibre())
File "/usr/lib/calibre/calibre/gui_launch.py", line 63, in calibre
main(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 481, in main
app, opts, args = init_qt(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 101, in init_qt
app = Application(args, override_program_name=override)
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 911, in __init__
self.load_calibre_style()
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 1022, in load_calibre_style
self.pi.load_style(icon_map)
AttributeError: 'NoneType' object has no attribute 'load_style'
After some googling I'm not sure what is causing this, so any help would be appreciated. Thanks!
Offline
Install the current version 2.32.1-1 and try again.
Works for me on my 32-bit Arch with [testing] repos enabled.
Edit: Update your whole system, not just this one package.
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like this
It makes the code more readable and - in case of longer listings - more convenient to scroll through.
Last edited by karol (2015-07-19 20:24:50)
Offline
Hi,
I have the same problem...
Offline
I didn't have this problem until today with calibre version 2.32.1-1.
I'm getting a similar error:
Traceback (most recent call last):
File "/usr/bin/calibre", line 20, in <module>
sys.exit(calibre())
File "/usr/lib/calibre/calibre/gui_launch.py", line 63, in calibre
main(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 492, in main
app, opts, args = init_qt(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 101, in init_qt
app = Application(args, override_program_name=override)
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 902, in __init__
self.setup_styles(force_calibre_style)
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 992, in setup_styles
self.load_calibre_style()
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 1022, in load_calibre_style
self.pi.load_style(icon_map)
TypeError: a value has type 'unicode' but 'QString' is expected
I updated my system even with
pacman -Syyu
, tried reinstalling the package, but the problem persists.
Offline
There is an open bug for this error now. Calibre needs to be rebuilt against PyQT 5.5.
Last edited by lifeafter2am (2015-07-23 13:19:09)
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline
I installed calibre version 2.32.1-2 manually from testing and it works fine.
Offline
lifeafter2am is correct
My temporary solution was to downgrade pyqt5-common and python2-pyqt5 packages to 5.4.2-1 (from Arch Rollback Machine) and 'blacklist' them in /etc/pacman.conf (IgnorePkg).
Offline
FYI, new Calibre just hit the community repo. Calibre-2.32.1-2 works again.
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline