tasmota / docker-tasmota

Docker container with a complete build environment for Tasmota using PlatformIO
77 stars 49 forks source link

ERROR: Could not find a version that satisfies the requirement platformio (from versions: none) #19

Closed lboue closed 1 year ago

lboue commented 1 year ago

Could not find a version that satisfies the requirement platformio while compiling with Docker

Hello,

I am facing an Python PIP issue while compiling Tasmota with Docker:

ERROR: Could not find a version that satisfies the requirement platformio (from versions: none)
ERROR: No matching distribution found for platformio
WARNING: There was an error checking the latest version of pip.
The command '/bin/sh -c pip install --upgrade pip &&    pip install --upgrade platformio' returned a non-zero code: 1

Building

My env

Type Value
CPU 12th Gen Intel(R) Core(TM) i5-12400
OS Ubuntu 22.04.1 LTS
Kernel 5.19.0-38-generic
Python 3.10.6
$ cat /proc/cpuinfo | grep "model name"
model name      : 12th Gen Intel(R) Core(TM) i5-12400
model name      : 12th Gen Intel(R) Core(TM) i5-12400
$ cat /etc/issue
Ubuntu 22.04.1 LTS \n \l
$ uname -a
Linux chip-vm 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ python3 -V
Python 3.10.6

How to reproduce

git clone https://github.com/tasmota/docker-tasmota
Cloning into 'docker-tasmota'...
remote: Enumerating objects: 192, done.
remote: Counting objects: 100% (192/192), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 192 (delta 109), reused 146 (delta 76), pack-reused 0
Receiving objects: 100% (192/192), 50.79 KiB | 2.12 MiB/s, done.
Resolving deltas: 100% (109/109), done.
user@host:~$ cd docker-tasmota/
user@host:~/docker-tasmota$ sudo docker build -t docker-tasmota .
[sudo] password for user:
Sending build context to Docker daemon  144.9kB
Step 1/10 : FROM python:latest
latest: Pulling from library/python
3e440a704568: Pull complete
68a71c865a2c: Pull complete
670730c27c2e: Pull complete
5a7a2c95f0f8: Pull complete
6d627e120214: Pull complete
f8c6dc678081: Pull complete
48bd2de548fc: Pull complete
e69bcee2d314: Pull complete
284a2f237609: Pull complete
Digest: sha256:5329e75033c4446dc92d702cf8ebbeb63e549d9b83076a776f6753e10817fc3c
Status: Downloaded newer image for python:latest
 ---> df3e9d105d6c
Step 2/10 : LABEL description="Docker Container with a complete build environment for Tasmota using PlatformIO"       version="12.3"                                 maintainer="blakadder_"       organization="https://github.com/tasmota"
 ---> Running in bc6a7cd097e6
Removing intermediate container bc6a7cd097e6
 ---> 2530b3252f6c
Step 3/10 : RUN pip install --upgrade pip &&    pip install --upgrade platformio
 ---> Running in 47fe14907c9b
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (22.3.1)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff58fd04ad0>: Failed to establish a new connection: [Errno -3] Temporary fail                          ure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff58f9b3050>: Failed to establish a new connection: [Errno -3] Temporary fail                          ure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff58f9b38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff58f9d8210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff58f9d8b90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: There was an error checking the latest version of pip.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1ba36370d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/platformio/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1ba3637bd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/platformio/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1ba363c510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/platformio/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1ba363cd90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/platformio/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1ba363d710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/platformio/
ERROR: Could not find a version that satisfies the requirement platformio (from versions: none)
ERROR: No matching distribution found for platformio
WARNING: There was an error checking the latest version of pip.
The command '/bin/sh -c pip install --upgrade pip &&    pip install --upgrade platformio' returned a non-zero code: 1

Could you tell me how to fix this problem and compile?

Regards