iotaledger/iota.rs

iota-client cannot be installed from PyPI in Python docker container

antonionardella opened this issue · 0 comments

Issue description

iota-client==1.0.0rc2 added to the requirements file
Use official Python docker container https://hub.docker.com/_/python/tags?page=1&name=3.11
Version 3.10 or 3.11 does not matter

Dockerfile

FROM python:3.10

RUN pip install --upgrade pip
RUN pip install iota-client==1.0.0rc2

Error is shown

Step 3/3 : RUN pip install iota-client==1.0.0rc2
 ---> Running in cefebf515e7c
ERROR: Could not find a version that satisfies the requirement iota-client==1.0.0rc2 (from versions: 0.2.0a6, 0.2.0a7, 0.2.0a8)
ERROR: No matching distribution found for iota-client==1.0.0rc2

According to StackExchange

The end issue is that pip cannot find the iota_client version 1.0.0rc2, which is probably because of a non-supported OS as stated here:

The container giving issues is the official python-3.10 (or 3.11) container built on debian:11 with linux/amd64 arch architecture
image
image

Version

1.0.0rc2

Expected behaviour

pip to be able to install version 1.0.0rc2 and beyond

Actual behaviour

Step 3/3 : RUN pip install iota-client==1.0.0rc2
 ---> Running in cefebf515e7c
ERROR: Could not find a version that satisfies the requirement iota-client==1.0.0rc2 (from versions: 0.2.0a6, 0.2.0a7, 0.2.0a8)
ERROR: No matching distribution found for iota-client==1.0.0rc2
The command '/bin/sh -c pip install iota-client==1.0.0rc2' returned a non-zero code: 1

Can the issue reliably be reproduced?

Yes

Steps to reproduce the issue

  1. Use this Dockerfile
FROM python:3.10

RUN pip install --upgrade pip
RUN pip install iota-client==1.0.0rc2
  1. Build it docker build -t pythontest:latest .
  2. Get error ERROR: Could not find a version that satisfies the requirement iota-client==1.0.0rc2 (from versions: 0.2.0a6, 0.2.0a7, 0.2.0a8)

Errors

ERROR: Could not find a version that satisfies the requirement iota-client==1.0.0rc2 (from versions: 0.2.0a6, 0.2.0a7, 0.2.0a8)

Duplicate declaration

  • I have searched the issues tracker this issue and there is none

Code of Conduct

  • I agree to follow this project's Code of Conduct