encode / httpx

A next generation HTTP client for Python. 🦋
https://www.python-httpx.org/
BSD 3-Clause "New" or "Revised" License
13.28k stars 844 forks source link

ERROR: No matching distribution found for hstspreload #856

Closed irishgordo closed 4 years ago

irishgordo commented 4 years ago

Hey there!

I really dig this library it's super awesome!

I have been running into an issue performing an install with an internal dependency within httpx:

ERROR: No matching distribution found for hstspreload

While running this:

pip3 download \
--implementation cp \
--only-binary=:all: \
--no-cache-dir \
-r src/requirements.txt -d deps

And another variation that's been leveraged is:

pip3 download \
--only-binary :all: \
--platform manylinux2010_x86_64 \
--use-pep517 \
--python-version 37 \
--implementation cp \
--abi cp37m \
--no-cache-dir \
-r src/requirements.txt -d deps

Y'all are stellar! Thanks for any input / feedback!

florimondmanca commented 4 years ago

Hi!

The stripped down reproduction case for this seems to be:

$ pip download --only-binary=:all: hstspreload
ERROR: Could not find a version that satisfies the requirement hstspreload (from versions: none)
ERROR: No matching distribution found for hstspreload

At this point I'm assuming hstspreload doesn't ship binary wheels, which might be something to figure out on that project's side…

florimondmanca commented 4 years ago

I'm assuming hstspreload doesn't ship binary wheels

Yup, there's no wheel on PyPI: https://pypi.org/project/hstspreload/2020.3.4/#files

florimondmanca commented 4 years ago

You can use the --no-binary to exclude hstspreload from deps that shouldn't be downloaded as binaries:

$ pip download --only-binary=:all: --no-binary=hstspreload httpx -d deps

I'm able to run this without issues. :-)

Going to close this off for now, feel free to follow up on the hstspreload repo if you'd like to bring wheels there.

Thanks!

irishgordo commented 4 years ago

@florimondmanca - rad! thank ya for such a super quick response! I'll dig into it and may reach out to the maintainers of hstspreload!

tomchristie commented 4 years ago

Thanks for such a comprehensive but concise report, and for the good vibes! 👍😃