qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
54 stars 24 forks source link

pip install bug: No matching distribution found for pyqir==0.10.0 #267

Closed ryanhill1 closed 3 months ago

ryanhill1 commented 5 months ago

I'm trying to install pyqir into the qbraid-qir test container, however, I'm getting a no matching distribution error when I try to install the latest version. Here is a minimal example Dockerfile that re-creates the error:

FROM jupyter/minimal-notebook:latest

USER $NB_UID

RUN pip install 'pyqir==0.10.0'
$ docker build .
[+] Building 1.2s (6/6) FINISHED                                                                                                 docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                             0.0s
 => => transferring dockerfile: 120B                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                  0.0s
 => [internal] load metadata for docker.io/jupyter/minimal-notebook:latest                                                                       0.6s
 => [auth] jupyter/minimal-notebook:pull token for registry-1.docker.io                                                                          0.0s
 => CACHED [1/2] FROM docker.io/jupyter/minimal-notebook:latest@sha256:1c4c8b6c7c27059c353d4e80523c2696e34723fde67d27418873ebeb42032551          0.0s
 => ERROR [2/2] RUN pip install 'pyqir==0.10.0'                                                                                                  0.6s
------
 > [2/2] RUN pip install 'pyqir==0.10.0':
0.452 ERROR: Could not find a version that satisfies the requirement pyqir==0.10.0 (from versions: 0.3.2a1, 0.4.0a1, 0.4.1a1, 0.4.2a1, 0.5.0a1, 0.6.0, 0.6.1, 0.6.2)
0.452 ERROR: No matching distribution found for pyqir==0.10.0
------
Dockerfile:5
--------------------
   3 |     USER $NB_UID
   4 |     
   5 | >>> RUN pip install 'pyqir==0.10.0'
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c pip install 'pyqir==0.10.0'" did not complete successfully: exit code: 1

The OS info for the jupyter/minimal-notebook image I used is as follows:

$ python --version
Python 3.11.6
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

I'm really not sure what's causing this behavior, so any insights or guidance would be super helpful. Thanks!

idavis commented 4 months ago

Hi @ryanhill1 , sorry I missed the notification on this. Can you please check which version of Python is being used? Given that you are seeing the older versions, those supported 3.6, but newer versions do not. Can you also run uname -a? Just want to make sure you aren't on aarch64 Linux as we don't publish for that platform at the moment.

ryanhill1 commented 4 months ago

@idavis Ok, yep, that's what it was. It's an aarch64 Linux image.

$ uname -a
Linux 2057d7244512 6.4.16-linuxkit #1 SMP PREEMPT Tue Oct 10 20:38:06 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux