Binary linux installer fails because of bug in proxy debugging output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I run Calibre on Ubuntu, performing the manual binary upgrades as described on the Calibre homepage: http://
I am currently running 1.25, and when I tried to upgrade to 1.26.0 today I got this error:
XXXXXX@XXXXXX:~$ sudo -v && wget -nv -O- https:/
[sudo] password for XXXXXX:
2014-02-28 19:52:53 URL:https:/
Installing to /opt/calibre
Downloading tarball signature securely...
Using proxies: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 643, in main
File "<string>", line 605, in download_
File "<string>", line 597, in get_tarball_info
File "<string>", line 546, in get_https_
File "<string>", line 352, in get_proxies
File "<string>", line 207, in prints
TypeError: expected a character buffer object
In line 352, a dict is being sent to a printing function which expects strings. I'm attaching a suggested patch. Is there a reason why this debugging output is turned on by default?
If anyone else experiences the same problem before the installer is fixed: you can work around it by downloading the installer file, applying the patch, and executing the local copy of the installer:
$ wget https:/ /github. com/kovidgoyal/ calibre/ raw/master/ setup/linux- installer. py /bugs.launchpad .net/calibre/ +bug/1286274/ +attachment/ 4001048/ +files/ proxy_debug. patch sys.stderr. write(' Download failed\n'); exec(sys. stdin.read( )); main()"
$ wget https:/
$ patch < proxy_debug.patch
$ cat linux-installer.py | | sudo python -c "import sys; main=lambda: