Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2021, 08:46 PM   #1
Dan__
Zealot
Dan__ began at the beginning.
 
Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
Linux install not working

I apologize in advance for lacking sufficient linux experience.
I've been unable to resolve this error:

Python 3.9.6 (default, Aug 4 2021, 16:40:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named '_ssl'

and when I try the install it says:

essin:~/Downloads/Python-3.9.6$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
Using python executable: /usr/local/bin/python3
2021-08-04 17:33:38 URL:https://download.calibre-ebook.com/linux-installer.sh [31922/31922] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
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 669, in download_and_extract
File "<string>", line 657, in get_tarball_info
File "<string>", line 609, in get_https_resource_securely
File "<string>", line 511, in __init__
File "/usr/local/lib/python3.9/ssl.py", line 737, in create_default_context
context = SSLContext(PROTOCOL_TLS)
File "/usr/local/lib/python3.9/ssl.py", line 483, in __new__
self = _SSLContext.__new__(cls, protocol)
ssl.SSLError: ('No cipher can be selected.',)

I have installed openssl and python was built with this option:
--with-ssl-default-suites

I have exhausted the possibilities that I am aware of.

I would appreciate your help.
Thank you,
Dan

Background environment:
essin:~/Downloads/Python-3.9.6$ python -V
Python 3.9.6

essin:~/$ uname -a
Linux 5.4.0-80-generic (xubuntu)

essin:~/Downloads/Python-3.9.6$ openssl ciphers
TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA25 6:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384HE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305HE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256HE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384HE-RSA-AES256-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256HE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHAHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHAHE-RSA-AES128-SHA:RSA-PSK-AES256-GCM-SHA384HE-PSK-AES256-GCM-SHA384:RSA-PSK-CHACHA20-POLY1305HE-PSK-CHACHA20-POLY1305:ECDHE-PSK-CHACHA20-POLY1305:AES256-GCM-SHA384:PSK-AES256-GCM-SHA384:PSK-CHACHA20-POLY1305:RSA-PSK-AES128-GCM-SHA256HE-PSK-AES128-GCM-SHA256:AES128-GCM-SHA256:PSK-AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:ECDHE-PSK-AES256-CBC-SHA384:ECDHE-PSK-AES256-CBC-SHA:SRP-RSA-AES-256-CBC-SHA:SRP-AES-256-CBC-SHA:RSA-PSK-AES256-CBC-SHA384HE-PSK-AES256-CBC-SHA384:RSA-PSK-AES256-CBC-SHAHE-PSK-AES256-CBC-SHA:AES256-SHA:PSK-AES256-CBC-SHA384:PSK-AES256-CBC-SHA:ECDHE-PSK-AES128-CBC-SHA256:ECDHE-PSK-AES128-CBC-SHA:SRP-RSA-AES-128-CBC-SHA:SRP-AES-128-CBC-SHA:RSA-PSK-AES128-CBC-SHA256HE-PSK-AES128-CBC-SHA256:RSA-PSK-AES128-CBC-SHAHE-PSK-AES128-CBC-SHA:AES128-SHA:PSK-AES128-CBC-SHA256:PSK-AES128-CBC-SHA
Dan__ is offline   Reply With Quote
Old 08-04-2021, 09:04 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I suggest you remove the special python you have built and just use the system python.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-04-2021, 09:04 PM   #3
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,179
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Dan__ View Post
I apologize in advance for lacking sufficient linux experience.
I've been unable to resolve this error:

Python 3.9.6 (default, Aug 4 2021, 16:40:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named '_ssl'

and when I try the install it says:
Spoiler:

essin:~/Downloads/Python-3.9.6$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
Using python executable: /usr/local/bin/python3
2021-08-04 17:33:38 URL:https://download.calibre-ebook.com/linux-installer.sh [31922/31922] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
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 669, in download_and_extract
File "<string>", line 657, in get_tarball_info
File "<string>", line 609, in get_https_resource_securely
File "<string>", line 511, in __init__
File "/usr/local/lib/python3.9/ssl.py", line 737, in create_default_context
context = SSLContext(PROTOCOL_TLS)
File "/usr/local/lib/python3.9/ssl.py", line 483, in __new__
self = _SSLContext.__new__(cls, protocol)
ssl.SSLError: ('No cipher can be selected.',)

I have installed openssl and python was built with this option:
--with-ssl-default-suites

I have exhausted the possibilities that I am aware of.

I would appreciate your help.
Thank you,
Dan

Background environment:
essin:~/Downloads/Python-3.9.6$ python -V
Python 3.9.6

essin:~/$ uname -a
Linux 5.4.0-80-generic (xubuntu)

essin:~/Downloads/Python-3.9.6$ openssl ciphers
TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA25 6:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384HE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305HE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256HE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384HE-RSA-AES256-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256HE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHAHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHAHE-RSA-AES128-SHA:RSA-PSK-AES256-GCM-SHA384HE-PSK-AES256-GCM-SHA384:RSA-PSK-CHACHA20-POLY1305HE-PSK-CHACHA20-POLY1305:ECDHE-PSK-CHACHA20-POLY1305:AES256-GCM-SHA384:PSK-AES256-GCM-SHA384:PSK-CHACHA20-POLY1305:RSA-PSK-AES128-GCM-SHA256HE-PSK-AES128-GCM-SHA256:AES128-GCM-SHA256:PSK-AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:ECDHE-PSK-AES256-CBC-SHA384:ECDHE-PSK-AES256-CBC-SHA:SRP-RSA-AES-256-CBC-SHA:SRP-AES-256-CBC-SHA:RSA-PSK-AES256-CBC-SHA384HE-PSK-AES256-CBC-SHA384:RSA-PSK-AES256-CBC-SHAHE-PSK-AES256-CBC-SHA:AES256-SHA:PSK-AES256-CBC-SHA384:PSK-AES256-CBC-SHA:ECDHE-PSK-AES128-CBC-SHA256:ECDHE-PSK-AES128-CBC-SHA:SRP-RSA-AES-128-CBC-SHA:SRP-AES-128-CBC-SHA:RSA-PSK-AES128-CBC-SHA256HE-PSK-AES128-CBC-SHA256:RSA-PSK-AES128-CBC-SHAHE-PSK-AES128-CBC-SHA:AES128-SHA:PSK-AES128-CBC-SHA256:PSK-AES128-CBC-SHA
Open a treminal and make sure you are in your home folder:

Code:
essin:~$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
not
Code:
essin:~/Downloads/Python-3.9.6$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
bernie
gbm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Install Help rmatakajr Calibre 3 08-25-2010 06:22 PM
cannot install in on Linux ichthyosaur Calibre 1 12-31-2009 05:20 PM
0.6.31 Linux install fails reread Calibre 3 12-28-2009 03:00 PM
0.6.10 Linux install issue jquest Calibre 5 08-28-2009 10:58 AM
Linux install roger64 Calibre 2 04-23-2009 03:30 AM


All times are GMT -4. The time now is 07:15 AM.


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