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

Traceback running setup.py clean: ModuleNotFoundError: No module named 'setuptools' #6642

Closed
cjerdonek opened this issue Jun 24, 2019 · 3 comments · Fixed by #7477
Closed

Traceback running setup.py clean: ModuleNotFoundError: No module named 'setuptools' #6642

cjerdonek opened this issue Jun 24, 2019 · 3 comments · Fixed by #7477

Comments

@cjerdonek
Copy link
Member

@cjerdonek cjerdonek commented Jun 24, 2019

It was reported in issue #6634 that when building a wheel using (PEP 517), a traceback displayed when setup.py clean failed was unneeded.

Excerpt:

  Running `pyo3-pack build -i python --no-sdist --bindings=cffi`
  Error: Command '['pyo3-pack', 'build', '-i', 'python', '--no-sdist', '--bindings=cffi']' returned non-zero exit status 1.
  Building wheel for cffi-pure (PEP 517) ... error
  ERROR: Failed building wheel for cffi-pure
  Running setup.py clean for cffi-pure
  Running command /home/konsti/pyo3-pack/venv/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-sphjswqi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'setuptools'
  ERROR: Failed cleaning build dir for cffi-pure
Failed to build cffi-pure
@triage-new-issues triage-new-issues bot added the triage label Jun 24, 2019
@cjerdonek cjerdonek closed this Jun 24, 2019
@pradyunsg

This comment has been minimized.

Copy link
Member

@pradyunsg pradyunsg commented Jun 24, 2019

👀

You don't have to explain what happened here, but it'd be nice if you do. 😛

@cjerdonek cjerdonek reopened this Jun 24, 2019
@cjerdonek

This comment has been minimized.

Copy link
Member Author

@cjerdonek cjerdonek commented Jun 24, 2019

I closed this after creating it because when I looked at the code, it seemed like the traceback only displays when verbose mode is enabled, in which case it doesn't really seem like an issue (it's verbose mode). But I'm not 100% sure, so I'll leave it open for completeness for now.

@triage-new-issues triage-new-issues bot removed triage labels Dec 8, 2019
sbidoul added a commit to sbidoul/pip that referenced this issue Dec 13, 2019
Fixes pypa#6642
sbidoul added a commit to sbidoul/pip that referenced this issue Jan 1, 2020
Fixes pypa#6642
sbidoul added a commit to sbidoul/pip that referenced this issue Jan 1, 2020
Fixes pypa#6642
sbidoul added a commit to sbidoul/pip that referenced this issue Jan 1, 2020
Fixes pypa#6642
sbidoul added a commit to sbidoul/pip that referenced this issue Jan 2, 2020
Fixes pypa#6642
@lock lock bot added the S: auto-locked label Feb 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.