nvidia-riva/riva-asrlib-decoder

Installation error

Opened this issue · 1 comments

I created a docker image of miniconda according to this link to run the pip install -e .[testing] command after that, but I get the following error:

(base) root@<container_id>:/home/riva-asrlib-decoder# pip install -e .[testing]
Obtaining file:///home/riva-asrlib-decoder
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcdd16c5810>, 'Connection timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcdd16c6490>, 'Connection timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcdd16c70d0>, 'Connection timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcdd16c7c90>, 'Connection timed out. (connect timeout=15)')': /simple/setuptools/
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcdd16cc950>, 'Connection timed out. (connect timeout=15)')': /simple/setuptools/
      ERROR: Could not find a version that satisfies the requirement setuptools>=42 (from versions: none)
      ERROR: No matching distribution found for setuptools>=42
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

💡 The Python version and default packages in the mentioned image are provided below:

(base) root@<container_id>:/home/riva-asrlib-decoder# python3 -V
Python 3.11.5
(base) root@<container_id>:/home/riva-asrlib-decoder# pip list
Package                 Version
----------------------- ---------
archspec                0.2.1
boltons                 23.0.0
Brotli                  1.0.9
certifi                 2023.7.22
cffi                    1.15.1
charset-normalizer      2.0.4
conda                   23.10.0
conda-content-trust     0.2.0
conda-libmamba-solver   23.11.1
conda-package-handling  2.2.0
conda_package_streaming 0.9.0
cryptography            41.0.3
idna                    3.4
jsonpatch               1.32
jsonpointer             2.1
libmambapy              1.5.3
packaging               23.1
pip                     23.3
pluggy                  1.0.0
pycosat                 0.6.6
pycparser               2.21
pyOpenSSL               23.2.0
PySocks                 1.7.1
requests                2.31.0
ruamel.yaml             0.17.21
setuptools              68.0.0
tqdm                    4.65.0
truststore              0.8.0
urllib3                 1.26.18
wheel                   0.41.2
zstandard               0.19.0

I would greatly appreciate it if someone could offer me guidance on this matter.


By the way, may I ask what the use of this Dockerfile is in this repository? When we run a container from the image created using this Dockerfile, Python 2 is installed within it and does not recognize the pip command!

[root@<container_id> home]# python3 -V
bash: python3: command not found
[root@<container_id> home]# python -V
Python 2.7.5
[root@<container_id> home]# pip list
bash: pip: command not found
galv commented

Hello @frznkshn That Dockerfile is used for building manylinux wheels to upload to pypi https://pypi.org/project/riva-asrlib-decoder.

Manylinux wheels are designed to run on almost any modern linux distribution. So I recommend you use those unless you want to build from source yourself for whatever reason (e.g., debug symbols). Unfortunately, manylinux is not "cuda-aware", though. Please note the cuda requirements here: https://github.com/nvidia-riva/riva-asrlib-decoder?tab=readme-ov-file#pre-built-wheels

It looks like your docker container cannot connect to the external internet to install the setuptools dependency. It's hard to figure out exactly what's going on, but you could try running docker run with the --network=host flag (I believe).