Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2015, 03:51 PM   #1
ThSpeck
Member
ThSpeck began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2010
Device: Kindle 2i, Sony PRS-T3s
Problem updateing calibre on linux to 2.46.0

Hi

When tryiung to update my calibre installation (running on centos 7) from 2.45 to 2.46, I get the following error:

[user@system ~]$ sudo -v && wget -nv -O- https://raw.githubusercontent.com/ko...x-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
2015-12-15 21:08:09 URL:https://raw.githubusercontent.com/ko...x-installer.py [25887/25887] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 670, in main
File "<string>", line 655, in run_installer
File "<string>", line 627, in download_and_extract
File "<string>", line 619, in get_tarball_info
File "<string>", line 578, in get_https_resource_securely
File "<string>", line 487, in __init__
File "/usr/lib64/python2.7/httplib.py", line 1182, in __init__
context.load_cert_chain(cert_file, key_file)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2757)

Does anybody have a similar problem and an idea how to solve it. Is this place even the right subforum for questions like this?

Thanks in advance, Thomas
ThSpeck is offline   Reply With Quote
Old 12-15-2015, 04:44 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ThSpeck View Post
Hi

When tryiung to update my calibre installation (running on centos 7) from 2.45 to 2.46, I get the following error:

Spoiler:
[user@system ~]$ sudo -v && wget -nv -O- https://raw.githubusercontent.com/ko...x-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
2015-12-15 21:08:09 URL:https://raw.githubusercontent.com/ko...x-installer.py [25887/25887] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 670, in main
File "<string>", line 655, in run_installer
File "<string>", line 627, in download_and_extract
File "<string>", line 619, in get_tarball_info
File "<string>", line 578, in get_https_resource_securely
File "<string>", line 487, in __init__
File "/usr/lib64/python2.7/httplib.py", line 1182, in __init__
context.load_cert_chain(cert_file, key_file)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2757)


Does anybody have a similar problem and an idea how to solve it. Is this place even the right subforum for questions like this?

Thanks in advance, Thomas
I just tied using:
Code:
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt')"
Works.

Try again, it may just have been an transmission problem.

bernie
gbm is offline   Reply With Quote
Advert
Old 12-15-2015, 05:39 PM   #3
ThSpeck
Member
ThSpeck began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2010
Device: Kindle 2i, Sony PRS-T3s
Quote:
Originally Posted by gbm View Post
I just tied using:
Code:
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt')"
Works.

Try again, it may just have been an transmission problem.

bernie
Tried again, unfortunately still the same error.

I recently aquired a ssl certificate for my machine, and the line mentioned in the error message fits to some ssl-configuration things locally. What I don't get is why something like that impacts downloading a new package or if that even is a local problem.

Nevertheless, thanks for your input.
ThSpeck is offline   Reply With Quote
Old 12-15-2015, 06:54 PM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ThSpeck View Post
Tried again, unfortunately still the same error.

I recently aquired a ssl certificate for my machine, and the line mentioned in the error message fits to some ssl-configuration things locally. What I don't get is why something like that impacts downloading a new package or if that even is a local problem.

Nevertheless, thanks for your input.
Check your ssl certificate path, you have a mismatch somewhere.

I that calibre is downloading and checking for a system ssl cert.

bernie
gbm is offline   Reply With Quote
Old 12-15-2015, 07:02 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
calibre uses an SSL certificate bundled into the update script, and based on the posted error it successfully downloaded the installer script from github but errored in get_https_resource_securely trying to download the signature from calibre's website.


I've seen this problem before I believe sometimes distros do stupid things to their python package.

Try extracting the tarball manually, see the note about manual installs at the bottom of the download page.
eschwartz is offline   Reply With Quote
Advert
Old 12-16-2015, 01:27 PM   #6
ThSpeck
Member
ThSpeck began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2010
Device: Kindle 2i, Sony PRS-T3s
Quote:
Originally Posted by eschwartz View Post
calibre uses an SSL certificate bundled into the update script, and based on the posted error it successfully downloaded the installer script from github but errored in get_https_resource_securely trying to download the signature from calibre's website.


I've seen this problem before I believe sometimes distros do stupid things to their python package.

Try extracting the tarball manually, see the note about manual installs at the bottom of the download page.
Manually installed, everything worked fine. Running 2.46 now.

One other thing which may have caused this is the update from CentOS7 to 7.2 yesterday.

Anyway, I am fine now and know, what to do if something like this happens again. Thanks you all for your help.
ThSpeck is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 2.0 font/text input problem on Linux AbominableDavid Calibre 4 08-25-2014 08:31 PM
PDF problem in Calibre 1.10 on Linux Mint 15 timberbeast Library Management 10 11-15-2013 11:47 AM
Problem install calibre 0.6.33 (linux x64) AprilHare Calibre 11 01-11-2010 03:18 PM
Problem with calibre installation of linux mint ajambi Calibre 2 01-06-2010 12:10 PM
Calibre 0.6.27 starting problem (linux) ferossan Calibre 4 12-11-2009 09:46 PM


All times are GMT -4. The time now is 08:43 PM.


MobileRead.com is a privately owned, operated and funded community.