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

poetry add requests-ip-rotator does not work #9903

Open
kmille opened this issue Dec 15, 2024 · 3 comments
Open

poetry add requests-ip-rotator does not work #9903

kmille opened this issue Dec 15, 2024 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@kmille
Copy link

kmille commented Dec 15, 2024

Description

Hey,
what's wrong with the repository?

kmille@linbox:freetar vim pyproject.toml
kmille@linbox:freetar poetry add requests-ip
Using version ^1.0.14 for requests-ip-rotato

Updating dependencies (0.6s)^C

Seems like the repo is missing something. I can not add it as a dependency. It just says "Updating dpendencies" but nothing works.

Workarounds

?

Poetry Installation Method

pipx

Operating System

Arch

Poetry Version

Poetry (version 1.8.4)

Poetry Configuration

kmille@linbox:freetar poetry config --list
cache-dir = "/home/kmille/.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
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/kmille/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

will check it
@kmille kmille added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 15, 2024
@kmille
Copy link
Author

kmille commented Dec 15, 2024

Using poetry -vvv add requests-ip-rotator shows me the acutal problem. I think I can now solve the issue, but the UI in this case is not great:

Source (PyPI): 0 packages found for botocore >1.35.81,<1.36.0
Falling back to installed packages to discover metadata for botocore
Found 0 compatible packages for botocore
   1: fact: no versions of botocore match >1.35.81,<1.36.0
   1: conflict: no versions of botocore match >1.35.81,<1.36.0                 !!!!!!!!!!!!!!!!!!!!!!!!!!!
   1: ! botocore (>1.35.81,<1.36.0) is partially satisfied by not botocore (==1.35.81)
   1: ! which is caused by "botocore (1.35.81) depends on urllib3 (>=1.25.4,<1.27)"
   1: ! thus: botocore (>=1.35.81,<1.36.0) requires urllib3 (>=1.25.4,<1.27)
   1: fact: botocore (>=1.35.81,<1.36.0) requires urllib3 (>=1.25.4,<1.27)
   1: derived: not botocore (>=1.35.81,<1.36.0)
   1: derived: not boto3 (==1.35.81)
   2: selecting idna (3.10)
   2: selecting charset-normalizer (3.4.0)
   2: selecting attrs (24.2.0)
   2: selecting pyrepl (0.9.0)
   2: selecting ply (3.11)
   2: selecting markupsafe (3.0.2)
   2: fact: boto3 (1.35.80) depends on botocore (>=1.35.80,<1.36.0)
   2: fact: boto3 (1.35.80) depends on jmespath (>=0.7.1,<2.0.0)
   2: fact: boto3 (1.35.80) depends on s3transfer (>=0.10.0,<0.11.0)
   2: selecting boto3 (1.35.80)
   2: derived: s3transfer (>=0.10.0,<0.11.0)
   2: derived: jmespath (>=0.7.1,<2.0.0)
   2: derived: botocore (>=1.35.80,<1.36.0)

It does this in a infinity loop and does not print a warning without -vvv

kmille@linbox:freetar cat pyproject.toml            
[tool.poetry]
name = "freetar"
version = "0.10.0"
description = ""
authors = ["kmille <[email protected]>"]
readme = "README.md"
repository = "https://github.com/kmille/freetar"
homepage = "https://github.com/kmille/freetar"


[tool.poetry.dependencies]
python = "^3.9"
requests = {extras = ["socks"], version = "^2.32.3"}
beautifulsoup4 = "^4.12.0"
flask = "^3.0.3"
waitress = "^2.1.2"
flask-minify = "^0.48"
flask-caching = "^2.3.0"


[tool.poetry.group.dev.dependencies]
pdbpp = "^0.10.3"

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

[tool.poetry.scripts]
freetar = 'freetar.backend:main'

@dimbleby
Copy link
Contributor

Search "botocore" to find duplicates, please close

@kmille
Copy link
Author

kmille commented Dec 15, 2024

Can you please link it? Can't find it.

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

2 participants