Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InferenceSystem "Create a virtual environment" instructions don't work #156

Closed
dthaler opened this issue Aug 7, 2024 · 4 comments
Closed

Comments

@dthaler
Copy link
Collaborator

dthaler commented Aug 7, 2024

Tried the instructions on Windows, but all they do is give failures.

> pip install virtualenv && virtualenv inference-venv
Requirement already satisfied: virtualenv in c:\users\dthal\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (20.26.3)
Requirement already satisfied: distlib<1,>=0.3.7 in c:\users\dthal\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from virtualenv) (0.3.8)
Requirement already satisfied: filelock<4,>=3.12.2 in c:\users\dthal\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from virtualenv) (3.15.4)
Requirement already satisfied: platformdirs<5,>=3.9.1 in c:\users\dthal\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from virtualenv) (4.2.2)
'virtualenv' is not recognized as an internal or external command,
operable program or batch file.

And running:

> python -m pip install --upgrade pip && pip install -r requirements.txt
Requirement already satisfied: pip in c:\users\dthal\git\orcasound\aifororcas-livesystem\inferencesystem\lib\site-packages (24.1)
Collecting pip
  Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.1
    Uninstalling pip-24.1:
      Successfully uninstalled pip-24.1
Successfully installed pip-24.2
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting git+https://github.com/fastaudio/fastai_audio@0.1 (from -r requirements.txt (line 8))
  Cloning https://github.com/fastaudio/fastai_audio (to revision 0.1) to c:\users\dthal\appdata\local\temp\pip-req-build-rlalhl8t
  Running command git clone --filter=blob:none --quiet https://github.com/fastaudio/fastai_audio 'C:\Users\dthal\AppData\Local\Temp\pip-req-build-rlalhl8t'
  Running command git checkout -q 3730194a0ed14e142416f60e71effa6e28058b60
  Resolved https://github.com/fastaudio/fastai_audio to commit 3730194a0ed14e142416f60e71effa6e28058b60
  Preparing metadata (setup.py) ... done
Collecting fastai==1.0.61 (from -r requirements.txt (line 2))
  Downloading fastai-1.0.61-py3-none-any.whl.metadata (14 kB)
Collecting librosa==0.8.0 (from -r requirements.txt (line 3))
  Downloading librosa-0.8.0.tar.gz (183 kB)
  Preparing metadata (setup.py) ... done
Collecting pydub==0.24.1 (from -r requirements.txt (line 4))
  Downloading pydub-0.24.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting pandas (from -r requirements.txt (line 5))
  Downloading pandas-2.2.2-cp311-cp311-win_amd64.whl.metadata (19 kB)
Collecting numpy (from -r requirements.txt (line 6))
  Downloading numpy-2.0.1-cp311-cp311-win_amd64.whl.metadata (60 kB)
ERROR: Ignored the following yanked versions: 2.0.0
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torchaudio==0.6.0 (from versions: 2.0.0+cpu, 2.0.0+cu117, 2.0.0+cu118, 2.0.1, 2.0.1+cpu, 2.0.1+cu117, 2.0.1+cu118, 2.0.2, 2.0.2+cpu, 2.0.2+cu117, 2.0.2+cu118, 2.1.0, 2.1.0+cpu, 2.1.0+cu118, 2.1.0+cu121, 2.1.1, 2.1.1+cpu, 2.1.1+cu118, 2.1.1+cu121, 2.1.2, 2.1.2+cpu, 2.1.2+cu118, 2.1.2+cu121, 2.2.0, 2.2.0+cpu, 2.2.0+cu118, 2.2.0+cu121, 2.2.1, 2.2.1+cpu, 2.2.1+cu118, 2.2.1+cu121, 2.2.2, 2.2.2+cpu, 2.2.2+cu118, 2.2.2+cu121, 2.3.0, 2.3.0+cpu, 2.3.0+cu118, 2.3.0+cu121, 2.3.1, 2.3.1+cpu, 2.3.1+cu118, 2.3.1+cu121, 2.4.0)
ERROR: No matching distribution found for torchaudio==0.6.0
@micya
Copy link
Member

micya commented Aug 7, 2024

Do the docker instructions still work? https://github.com/orcasound/aifororcas-livesystem/tree/main/InferenceSystem#running-inference-system-in-a-local-docker-container

The second error is likely related to the first (wrong python version). Looks like installation succeeded but binary wasn't found. Does launching a new terminal and rerunning virtualenv inference-venv work (in case PATH has changed)?

@dthaler
Copy link
Collaborator Author

dthaler commented Aug 7, 2024

Do the docker instructions still work? https://github.com/orcasound/aifororcas-livesystem/tree/main/InferenceSystem#running-inference-system-in-a-local-docker-container

Couldn't get far enough to try, since that's a later step on the page.
Docker installed just fine though.

The second error is likely related to the first (wrong python version). Looks like installation succeeded but binary wasn't found. Does launching a new terminal and rerunning virtualenv inference-venv work (in case PATH has changed)?

No it doesn't work (tried that before filing this issue).

>pip show virtualenv
Name: virtualenv
Version: 20.26.3
Summary: Virtual Python Environment builder
Home-page: https://github.com/pypa/virtualenv
Author:
Author-email:
License:
Location: C:\Users\dthal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages
Requires: distlib, filelock, platformdirs
Required-by:

PATH doesn't include anything like what Location shows above. So there must be steps missing from the instructions.

@micya
Copy link
Member

micya commented Aug 7, 2024

The Docker instructions are separate and do not require the virtualenv setup.

The virtualenv location looks sketchy to me. Please check with @pastorep to see if that is correct and update PATH if so.

@cheveuxdelin
Copy link
Collaborator

These setup was done for me using "python -m venv inference-venv" instead of virtualenv, that might not be needed, but also using the specific python version mentioned: 3.7.4. After that, everything was successfully setup for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants