You are not logged in.

#1 2020-11-30 08:04:23

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

[SOLVED] calibre: bad magic number in 'calibre.ebooks.chardet'

Hi,
since 5.5.0 and now with calibre 5.6.0, when attempting to start it, i face the following:

koko@slimer# calibre
Traceback (most recent call last):
  File "/bin/calibre", line 20, in <module>
    sys.exit(calibre())
  File "/usr/lib/calibre/calibre/gui_launch.py", line 72, in calibre
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 31, in <module>
    from calibre.ebooks.metadata import MetaInformation
  File "/usr/lib/calibre/calibre/ebooks/__init__.py", line 13, in <module>
    from calibre.ebooks.chardet import xml_to_unicode
ImportError: bad magic number in 'calibre.ebooks.chardet': b'\x03\xf3\r\n'

I tried to start with another user and to upgrade the system (went from calibre 5.5.0 to calibre 5.6.0)

Installed packages: pacman -Q: http://sprunge.us/DeEx8x
Out of official repos packages: pacman -Qm: http://sprunge.us/DsTsMB

Any hint?

...aaand solved.
Removed calibre with pacman -Rs, but noticed that some files were still present in /usr/lib/calibre, so after ensuring they did not belong to any installed package, i removed the whole dir and reinstalled calibre, now it starts.
Go figure out what weird things i did in the past, who knows.

Last edited by kokoko3k (2020-11-30 08:10:16)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2020-11-30 08:12:02

positronik
Member
Registered: 2016-02-08
Posts: 94

Re: [SOLVED] calibre: bad magic number in 'calibre.ebooks.chardet'

Are you running programs as root??

Offline

#3 2020-11-30 08:21:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [SOLVED] calibre: bad magic number in 'calibre.ebooks.chardet'

kokoko3k wrote:

Go figure out what weird things i did in the past, who knows.

positronik wrote:

Are you running programs as root??

tongue

Offline

#4 2020-11-30 12:27:15

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] calibre: bad magic number in 'calibre.ebooks.chardet'

Yes, but loooooooooooooong time ago, ages!
I'm still paying for that, wth!


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB