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

Use requires setuptools (but install doesn't require it) #305

Open
nealian opened this issue Feb 25, 2024 · 0 comments · May be fixed by #306
Open

Use requires setuptools (but install doesn't require it) #305

nealian opened this issue Feb 25, 2024 · 0 comments · May be fixed by #306

Comments

@nealian
Copy link

nealian commented Feb 25, 2024

Describe the bug
Currently, if make a fresh Python 3.12 venv, only pip is included. Then, if you install uplink and intend to use it, you immediately run into an error:

File [...]/.venv/lib/site-packages/uplink/_extras.py:4
[...]
import pkg_resources
[...]
ModuleNotFoundError: No module named 'pkg_resources'

To Reproduce
Steps to reproduce the behavior:

python3.12 -m venv venv
source venv/bin/activate
pip install uplink
python
> import uplink

Expected behavior
The package should be able to be included out of the box, with no additional packages required.

Additional context
This is true on Linux and on Windows (I don't know about any other platforms because I don't have them). Also maybe I don't know if this is true in earlier versions of venv because I only recently found Uplink :)

@nealian nealian linked a pull request Feb 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant