Python 3 installation from dietpi-software fails Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
LeVraiRoiDHyrule
Posts: 55
Joined: Tue Apr 28, 2020 3:00 pm

Python 3 installation from dietpi-software fails

Post by LeVraiRoiDHyrule »

Hi,

I'm trying to install Bazarr (for Radarr subtitles) and the installation fails when installing Python3, which is required for Bazarr. When I try to install it, I get this error :

Code: Select all

 Checking URL: https://bootstrap.pypa.io/pip/get-pip.py
   │  - Command: curl -ILfvm 10 https://bootstrap.pypa.io/pip/get-pip.py
   │  - Exit code: 22
   │  - DietPi version: v7.2.3 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 | DISTRO: 5
   │  - Image creator: DietPi Core Team
   │  - Pre-image: Raspbian Lite
   │  - Error log:
   │ * Expire in 0 ms for 6 (transfer 0x11eb8b0)
   │ * Expire in 10000 ms for 8 (transfer 0x11eb8b0)
   │ * Expire in 1 ms for 1 (transfer 0x11eb8b0)
   │   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
   │                                  Dload  Upload   Total   Spent    Left  Speed
   │ ^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Expire in 0 ms for 1 (transfer
   │ 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)                                  
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)                                                                                  
   │ * Expire in 0 ms for 1 (transfer 0x11eb8b0)                                                                                  
   │ * Expire in 2 ms for 1 (transfer 0x11eb8b0)                 
   │ * Expire in 10 ms for 1 (transfer 0x11eb8b0)

[I'm not pasting every "expire" here as it's at least twice as long...]

   │ *   Trying 2a04:4e42::175...
   │ * TCP_NODELAY set
   │ * Expire in 4984 ms for 3 (transfer 0x11eb8b0)
   │ * Expire in 200 ms for 4 (transfer 0x11eb8b0)
   │ * Connected to bootstrap.pypa.io (2a04:4e42::175) port 443 (#0)
   │ * ALPN, offering h2
   │ * ALPN, offering http/1.1
   │ * successfully set certificate verify locations:
   │ *   CAfile: none
   │   CApath: /etc/ssl/certs
   │ } [5 bytes data]
   │ * TLSv1.3 (OUT), TLS handshake, Client hello (1):
   │ } [512 bytes data]
   │ * TLSv1.3 (IN), TLS handshake, Server hello (2):
   │ { [112 bytes data]
   │ * TLSv1.2 (IN), TLS handshake, Certificate (11):
   │ { [2829 bytes data]                   
   │ * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
   │ { [300 bytes data]
   │ * TLSv1.2 (IN), TLS handshake, Server finished (14):
   │ { [4 bytes data]
   │ * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
   │ } [37 bytes data]
   │ * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
   │ } [1 bytes data]
   │ * TLSv1.2 (OUT), TLS handshake, Finished (20):
   │ } [16 bytes data]
   │ * TLSv1.2 (IN), TLS handshake, Finished (20):
   │ { [16 bytes data]
   │ * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
   │ * ALPN, server accepted to use http/1.1
   │ * Server certificate:
   │ *  subject: CN=*.pypa.io
   │ } [5 bytes data]
   │ > HEAD /pip/get-pip.py HTTP/1.1^M
   │ > Host: bootstrap.pypa.io^M
   │ > User-Agent: curl/7.64.0^M
   │ > Accept: */*^M
   │ > ^M
   │ { [5 bytes data]
   │ * The requested URL returned error: 503 Service Unavailable
   │ ^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   │ * Closing connection 0
   │ curl: (22) The requested URL returned error: 503 Service Unavailable                                                      
   │ *  start date: Mar 22 20:31:41 2021 GMT
   │ *  expire date: Apr 23 20:31:40 2022 GMT
   │ *  subjectAltName: host "bootstrap.pypa.io" matched cert's "*.pypa.io"
   │ *  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2020
   │ *  SSL certificate verify ok.                                                                                                                                                                                                                                               

The command that appears to fail is the following :

curl -ILfvm 10 https://bootstrap.pypa.io/pip/get-pip.py

I tried to execute it separately in a subshell, I get the same error.
I also tried to install Python 3 separately, from dietpi-software. I get the same error too. But it proves that the error is only with Python 3 and not Bazarr.

Does someone have an idea of what is happening ?
Thanks in advance for any answer, have a great day everyone !
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Python 3 installation from dietpi-software fails

Post by Joulinar »

Hi,

mayby an temp issues with the external server https://bootstrap.pypa.io hosting the python install script

Code: Select all

curl: (22) The requested URL returned error: 503 Service Unavailable
I did a quick test and it was working fine. Maybe you can try again. Not sure if applicable, but probably you can check as well DNS/AdBlocker if installed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LeVraiRoiDHyrule
Posts: 55
Joined: Tue Apr 28, 2020 3:00 pm

Re: Python 3 installation from dietpi-software fails

Post by LeVraiRoiDHyrule »

Joulinar wrote: Tue Jun 08, 2021 12:47 pm Hi,

mayby an temp issues with the external server https://bootstrap.pypa.io hosting the python install script

Code: Select all

curl: (22) The requested URL returned error: 503 Service Unavailable
I did a quick test and it was working fine. Maybe you can try again. Not sure if applicable, but probably you can check as well DNS/AdBlocker if installed.
You were right, it was apparently a temporary issue. I don't think it was on my end as I'm not using any adblocker, I'm using Cloudflare DNS but in normal mode (no safe or family mode) so it should let everything pass. Anyway, it worked now. Thanks for your answer ! Have a good day and thanks for everything you're doing for this community
Post Reply