Dependency resolution failing with pipenv
Opened this issue · 2 comments
reyaboj commented
Hello,
As stated in the title, dependency resolution is failing when I follow the instructions in the repo.
The log is provided below.
(Agglomerator_mmlab-cv)
[admin02@DatascienceSvr01] ~/code/project/Agglomerator_mmlab-cv (main)
❯ python --version ⏎
Python 3.8.13
[admin02@DatascienceSvr01] ~/code/project/Agglomerator_mmlab-cv (main)
❯ pipenv install
Creating a virtualenv for this project...
Pipfile: /home/admin02/code/project/Agglomerator_mmlab-cv/Pipfile
Using /home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/bin/python3.8 (3.8.13) to create virtualenv...
⠧ Creating virtual environment...created virtual environment CPython3.8.13.final.0-64 in 219ms
creator CPython3Posix(dest=/home/admin02/.local/share/virtualenvs/Agglomerator_mmlab-cv-QpvQ5qn7, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/admin02/.local/share/virtualenv)
added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /home/admin02/.local/share/virtualenvs/Agglomerator_mmlab-cv-QpvQ5qn7
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement torchvision==0.11.1+cu111 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0)
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 743, in _main
[ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 704, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 685, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 1377, in resolve_deps
[ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 1106, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 884, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for torchvision==0.11.1+cu111
brainstormyyf commented
I also meet the same question.
scutfrank commented
Hello,
As stated in the title, dependency resolution is failing when I follow the instructions in the repo.
The log is provided below.
(Agglomerator_mmlab-cv) [admin02@DatascienceSvr01] ~/code/project/Agglomerator_mmlab-cv (main) ❯ python --version ⏎ Python 3.8.13 [admin02@DatascienceSvr01] ~/code/project/Agglomerator_mmlab-cv (main) ❯ pipenv install Creating a virtualenv for this project... Pipfile: /home/admin02/code/project/Agglomerator_mmlab-cv/Pipfile Using /home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/bin/python3.8 (3.8.13) to create virtualenv... ⠧ Creating virtual environment...created virtual environment CPython3.8.13.final.0-64 in 219ms creator CPython3Posix(dest=/home/admin02/.local/share/virtualenvs/Agglomerator_mmlab-cv-QpvQ5qn7, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/admin02/.local/share/virtualenv) added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator ✔ Successfully created virtual environment! Virtualenv location: /home/admin02/.local/share/virtualenvs/Agglomerator_mmlab-cv-QpvQ5qn7 Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Building requirements... Resolving dependencies... ✔ Success! Locking [packages] dependencies... Building requirements... Resolving dependencies... ✘ Locking Failed! CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement torchvision==0.11.1+cu111 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0) [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 743, in _main [ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev) [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 704, in resolve_packages [ResolutionFailure]: results, resolver = resolve( [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/resolver.py", line 685, in resolve [ResolutionFailure]: return resolve_deps( [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 1377, in resolve_deps [ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps( [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 1106, in actually_resolve_deps [ResolutionFailure]: resolver.resolve() [ResolutionFailure]: File "/home/admin02/miniconda3/envs/Agglomerator_mmlab-cv/lib/python3.8/site-packages/pipenv/utils.py", line 884, in resolve [ResolutionFailure]: raise ResolutionFailure(message=str(e)) [pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies. You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation. Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: No matching distribution found for torchvision==0.11.1+cu111
I suggest you can just install requests directly using "pip insatll",another tip i you can use "wandb disabled" before run the command main.py