setuptools_scm: Missing module name tomli
Since the release of setuptools_scm 6.1.1 a few minutes ago, our jenkins jobs are failing on the following error:
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/nidar-orchid_master/setup.py", line 7, in <module>
setuptools.setup(
File "/root/.pyenv/versions/3.9.5/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/root/.pyenv/versions/3.9.5/lib/python3.9/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/root/.pyenv/versions/3.9.5/lib/python3.9/site-packages/setuptools/dist.py", line 434, in __init__
_Distribution.__init__(self, {
File "/root/.pyenv/versions/3.9.5/lib/python3.9/distutils/dist.py", line 292, in __init__
self.finalize_options()
File "/root/.pyenv/versions/3.9.5/lib/python3.9/site-packages/setuptools/dist.py", line 743, in finalize_options
ep(self)
File "/var/lib/jenkins/workspace/nidar-orchid_master/.eggs/setuptools_scm-6.1.1-py3.9.egg/setuptools_scm/integration.py", line 52, in infer_version
config = Configuration.from_file(dist_name=dist_name)
File "/var/lib/jenkins/workspace/nidar-orchid_master/.eggs/setuptools_scm-6.1.1-py3.9.egg/setuptools_scm/config.py", line 187, in from_file
defn = _load_toml(data)
File "/var/lib/jenkins/workspace/nidar-orchid_master/.eggs/setuptools_scm-6.1.1-py3.9.egg/setuptools_scm/config.py", line 59, in _lazy_tomli_load
from tomli import loads
ModuleNotFoundError: No module named 'tomli'
Maybe a missing dependency somewhere?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 54
- Comments: 39 (3 by maintainers)
Commits related to this issue
- Workaround broken setuptools_scm dependencies https://github.com/pypa/setuptools_scm/issues/608 — committed to mkoura/cardano-clusterlib-py by mkoura 3 years ago
- Workaround broken setuptools_scm dependencies See https://github.com/pypa/setuptools_scm/issues/608 Fixes https://github.com/input-output-hk/cardano-node-tests/issues/680 — committed to mkoura/cardano-node-tests by mkoura 3 years ago
- Add workaround for https://github.com/pypa/setuptools_scm/issues/608 — committed to waldur/waldur-mastermind by AmbientLighter 3 years ago
- fix: avoid setuptools_scm 6.1.1 setuptools_scm introduced a bug in depending on the `tomli` package to be installed as an implicit dependency. This change can be reverted once the following Github i... — committed to tomtom-international/hopic by JoostMuller-TomTom 3 years ago
I just wanted to say a HUGE THANK YOU @RonnyPfannschmidt, for all your work on
setuptools_scm
and being able to quickly mitigate this issue.In open source is easy to get a lot of attention when things stop working, without the much deserved appreciation the maintainers deserve.
i just returned to the computer to yank this release as well, it seems i will have to re engineer the way this is tested to stop missing those issues until reports pour in , a new release with the issue resolved will land later today
It appeared again with https://github.com/pypa/setuptools_scm/releases/tag/v6.3.0 release
Fix is already going up, no need to comment “Same here” https://github.com/pypa/setuptools_scm/pull/628
A well used package - Nine projects reported an issue within 16 minutes 😃
I can see that the METADATA file in the setuptools-scm 6.1.1 package pulls in tomli as part of an extra “tomli”, but it seems that Pip when it uses setuptools-scm under the covers does not install that extra, and setuptools-scm seems to depend on tomli even when the “tomli” extra is not installed.
So if tomli is really an optional extra, then setuptools-scm should not fail when it is not there. If it is required, it should not be an extra. At least IMHO.
+1 for that, the bad version was yanked within the hour and my builds are all ✅ again
Great work @RonnyPfannschmidt 🍰 ✨ 🏆 ⭐
Same here 🆘
Same here ! a Friday evening 🥲
Yes, I see it at https://readthedocs.org/projects/astropy/builds/14629185/
Same here occuring during the installation of
black
usingpre-commit
:Same issue here. I’ve tried
pip install tomli
but no results.Also experiencing the issue. Good vibes and happy Friday to all! ❤️
Thanks @RonnyPfannschmidt , you saved my Friday
Same, seeing CI failures because of this now.
cc @RonnyPfannschmidt who made the transition from toml to tomli in #586.
It’s a Friday evening and I’m sitting with a broken CI 😭
+1 Had the same issue and was just about to open an issue here 😉
In my case it happens when pip builds a wheel for the “lazy-object-proxy” package. We are not explicitly installing “setuptools-scm”, but it seems that Pip uses it under the covers when building a wheel.
Test run that fails: https://github.com/zhmcclient/zhmc-ansible-modules/pull/450/checks?check_run_id=3442020780#step:10:373
We’re also seeing this issue and it’s blocking all of our pip installs + builds