Installation fails on OpenSUSE Leap 15.1 when Python3 is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Trying to install Calibre 4.3.0 on Linux, OpenSUSE Leap 15.1.
I'm using the recommended and supported way of installing Calibre as suggested by https:/
> sudo -v && wget -nv -O- https:/
[sudo] password for root:
Using python executable: /usr/bin/python3
2019-11-08 19:02:19 URL:https:/
Installing to /opt/calibre
Downloading tarball signature securely...
Will download and install calibre-
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 800, in script_launch
File "<string>", line 756, in main
File "<string>", line 699, in run_installer
File "<string>", line 670, in download_
File "<string>", line 354, in download_tarball
File "<string>", line 291, in do_download
File "<string>", line 238, in __init__
File "<string>", line 119, in __init__
File "<string>", line 168, in _tigetstr
File "/usr/lib64/
return _compile(pattern, flags).sub(repl, string, count)
TypeError: sequence item 1: expected str instance, bytes found
Exit 1
Using sh -x reveals that the script selects /usr/bin/python3 as its Python binary. Changing linux-installer.sh to select /usr/bin/python2 allows the installation procedure to succeed.
The installer is carefully designed to work with both python2 and
python3, but apparently this particular part of it never got run by
anyone on python3 before, wow!
This should fix it though: https:/ /github. com/kovidgoyal/ calibre/ pull/1068
Direct link to the raw version, which you should be able to download, installer. sh -- does this fix your issue?
compare to the official version, then run with sudo sh
./linux-
https:/ /github. com/eli- schwartz/ calibre/ raw/linux- installer- bug1851873/ setup/linux- installer. sh