ModuleNotFoundError installing package with setuptools_scm
See original GitHub issueDescribe the bug
When I try to install cutlet I get this error:
ERROR: Command errored out with exit status 1:
command: /tmp/tmpw195j32y/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-db8tw4n5/cutlet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-db8tw4n5/cutlet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rwdkx6tl
cwd: /tmp/pip-install-db8tw4n5/cutlet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-db8tw4n5/cutlet/setup.py", line 7, in <module>
import setuptools_scm
ModuleNotFoundError: No module named 'setuptools_scm'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to reproduce
This should reproduce the error:
pipx install cutlet
I’m on Linux but I don’t think platform is relevant so I’ll omit verbose output, let me know if it would actually help.
Expected behavior
cutlet should have installed without issue.
I maintain this package, so I’d like to make sure it works. I’m not sure if I’m doing something wrong and should change it or if this is an issue with pipx.
To clarify why I’m importing setuptools_scm, if it’s not present the package is installed as version 0.0.0, which can cause issues. Importing makes sure that the package is present rather than building a package with a bogus version. setuptools-scm is specified in setup_requires, so I’m not sure if there’s something else I should do here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)

Top Related StackOverflow Question
scriptsare platform-specific and don’t work well on Windows, so it’s better to useconsole_scriptsinstead anyway 🙂fyi https://github.com/iterative/shtab uses
setuptools_scmwithout needingpyproject.toml