Summary: | dev-python/astor-0.7.1 with =dev-python/setuptools-41.4.0 - setup.py: File "/usr/lib64/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.py", line 594, in __init__: AttributeError: 'SpecifierSet' object has no attribute 'split' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Horea Christian <gentoo> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | aklhfex, dschridde+gentoobugs, gentoo, gentoo, jarausch, kfm, stefantalpalaru, tb |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info Patch for astor-0.7.1 according to PR: https://github.com/berkerpeksag/astor/pull/163 |
Created attachment 592136 [details]
emerge --info
I happened to hit this bug, too, while trying to install sci-libs/tensorflow-2.0.0, which has dev-python/astor-0.7.1 as dependency. And after a short web search, I got the impression, that this issue seems quite common. See e.g.: https://github.com/ansible/ansible-lint/issues/590 Happily the downgrade of setuptools worked as a (temporary?) fix. also fails for python 3.6 * python3_6: running distutils-r1_run_phase distutils-r1_python_compile python3.6 setup.py build Traceback (most recent call last): File "setup.py", line 17, in <module> setup(**config['options']) File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 447, in __init__ k: v for k, v in attrs.items() File "/usr/lib64/python3.6/distutils/dist.py", line 281, in __init__ self.finalize_options() File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 735, in finalize_options ep.load()(self, ep.name, value) File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 291, in check_specifier packaging.specifiers.SpecifierSet(value) File "/usr/lib64/python3.6/site-packages/setuptools/_vendor/packaging/specifiers.py", line 594, in __init__ specifiers = [s.strip() for s in specifiers.split(",") if s.strip()] AttributeError: 'SpecifierSet' object has no attribute 'split' Fixed by this PR: https://github.com/berkerpeksag/astor/pull/163 A patched astor-0.8.0 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay Created attachment 597468 [details, diff] Patch for astor-0.7.1 according to PR: https://github.com/berkerpeksag/astor/pull/163 (In reply to Ștefan Talpalaru from comment #4) > Fixed by this PR: https://github.com/berkerpeksag/astor/pull/163 > > A patched astor-0.8.0 is available in my overlay: > https://github.com/stefantalpalaru/gentoo-overlay I can confirm above patched overlay worked for me on amd64. Thank you Stefan (& if you're Romanian, bravo tu!). FWIW, dev-python/astor-0.8.1 is in the Gentoo repo which fixes this issue. Perhaps a stable in the near future would help users. Old version removed. Please reopen if you can reproduce it with the current version. |
Created attachment 592134 [details] build.log Emerging dev-python/astor with =dev-python/setuptools-41.4.0 fails with the attached build log. The relevant section being: ``` AttributeError: 'SpecifierSet' object has no attribute 'split' ``` This error does not happen if setuptools is downgraded to 41.2.0.