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

Cannot install <random lib> #9778

Open
JohnConnor123 opened this issue Oct 17, 2024 · 8 comments
Open

Cannot install <random lib> #9778

JohnConnor123 opened this issue Oct 17, 2024 · 8 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@JohnConnor123
Copy link

JohnConnor123 commented Oct 17, 2024

Description

I've been trying to install cuml for about 2 days, but with poetry it's not possible :(

Poetry Runtime Logs.txt

Poetry Installation Method

pipx

Operating System

WSL Ubuntu 20.04

Poetry Version

Poetry (version 1.8.4)

Poetry Configuration

cache-dir = "/home/john/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
repositories.rapids.url = "https://pypi.nvidia.com"
repositories.torch-repo.url = "https://download.pytorch.org/whl/cu121"
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /home/john/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

python-sysconf.txt

Example pyproject.toml

[tool.poetry]
name = "skoltech"
version = "0.1.0"
description = ""
authors = ["JohnConnor123 <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11.10"
torch = {version = "^2.4.1+cu121", source = "torch-repo"}
torchaudio = {version = "^2.4.1+cu121", source = "torch-repo"}
torchvision = {version = "^0.19.1+cu121", source = "torch-repo"}
pandas = "^2.2"
matplotlib = "^3.9.2"
seaborn = "^0.13.2"
openpyxl = "^3.1.5"
transformers = "^4.45.1"
tqdm = "^4.66.5"
ipywidgets = "^8.1.5"
datasets = "^3.0.1"
plotly = "^5.24.1"
nbformat = "^5.10.4"
llvmlite = "^0.43.0"
umap-learn = "^0.5.6"
scikit-learn = "^1.5.2"
cuml-cu12 = { version="^24", source="rapids" }
cudf-cu12 = { version="^24" , source="rapids" }
dask-cudf-cu12 = { version="^24", source="rapids" }


[tool.poetry.group.dev.dependencies]
ipykernel = "^6.29.5"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[[tool.poetry.source]]
name = "torch-repo"
url = "https://download.pytorch.org/whl/cu121"
priority = "explicit"

[[tool.poetry.source]]
name="rapids"
url="https://pypi.nvidia.com"
priority = "explicit"
@JohnConnor123 JohnConnor123 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 17, 2024
@dimbleby
Copy link
Contributor

You forgot to provide any logs.

I'll take a guess that the logs say that this is a problem with cuml, not poetry, and so you should report this to that project - not here.

@JohnConnor123
Copy link
Author

JohnConnor123 commented Oct 17, 2024

@dimbleby Sorry. I think I loaded it. Here are the logs in the file:
Poetry Runtime Logs.txt

P.s. Also I updated original post

@Secrus
Copy link
Member

Secrus commented Oct 17, 2024

your cache seems corrupted. try running poetry cache clear --all PyPI and the try installing again

@JohnConnor123
Copy link
Author

your cache seems corrupted. try running poetry cache clear --all PyPI and the try installing again

This doesn't help :(

@dimbleby
Copy link
Contributor

I don't think that command touches the archive cache, you'll want to delete the whole cache directory

@JohnConnor123
Copy link
Author

I don't think that command touches the archive cache, you'll want to delete the whole cache directory

I already tried this before posting the issue and it doesn't help.

@dimbleby
Copy link
Contributor

Clearly poetry is detecting that the archives you are downloading do not have hashes that match the value provided by pypi.

You will need to figure out where that download is going wrong. Perhaps you are out of disk space, perhaps you have a proxy doing something unhelpful. Good luck!

@JohnConnor123
Copy link
Author

JohnConnor123 commented Oct 17, 2024

Clearly poetry is detecting that the archives you are downloading do not have hashes that match the value provided by pypi
You will need to figure out where that download is going wrong. Perhaps you are out of disk space, perhaps you have a proxy doing something unhelpful. Good luck!

I did exactly as you said. Disabled VPN and deleted all cache. Then I wrote poetry env use python3.11 and poetry install. A strange error occurred
runlogs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants