Skip to content

Better error message when a package has no setup.py #1228

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

Closed
alex opened this issue Oct 8, 2013 · 5 comments
Closed

Better error message when a package has no setup.py #1228

alex opened this issue Oct 8, 2013 · 5 comments
Labels
C: error messages Improving error messages project: setuptools Related to setuptools type: enhancement Improvements to functionality

Comments

@alex
Copy link
Member

alex commented Oct 8, 2013

Right now you get a message like: IOError: [Errno 2] No such file or directory: '/Users/alex_gaynor/.virtualenvs/821336f702aceb1f/build/wxPython/setup.py'

It'd be nice to not get a traceback and instead get a clear message like "Package wxPtyhon has no setup.py so it cannot be installed"

@jezdez
Copy link
Member

jezdez commented Oct 9, 2013

Agreed.

@untitaker
Copy link

This is already done for the case of installing from local directories with pip install /path/to/whatever, in https://github.com/pypa/pip/blob/develop/pip/req.py#L1574-1576

@pradyunsg pradyunsg added good first issue A good item for first time contributors to work on type: enhancement Improvements to functionality labels Aug 1, 2017
@pradyunsg pradyunsg added this to the Print Better Error Messages milestone Oct 2, 2017
@pradyunsg
Copy link
Member

This will change a bit later -- when PEP 518 and PEP 517 are out in the wild.

Now: pip should print a nicer message for a missing setup.py.
Post PEP 517: setuptools's build backend should be the one printing "missing setup.py" warning. pip might choose to print a message about a missing pyproject.toml though.

@pradyunsg pradyunsg removed the good first issue A good item for first time contributors to work on label Jan 15, 2019
@cjerdonek
Copy link
Member

FYI, I just noticed this and so filed the following issue on setuptools’s tracker in support of this: pypa/setuptools#1710

@cjerdonek cjerdonek added the project: setuptools Related to setuptools label Feb 27, 2019
@nlhkabu nlhkabu added the C: error messages Improving error messages label Jul 28, 2020
@nlhkabu nlhkabu removed this from the Print Better Error Messages milestone Jul 29, 2020
@DiddiLeija
Copy link
Member

As I understand, this issue has been resolved. I will close it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: error messages Improving error messages project: setuptools Related to setuptools type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

7 participants