-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot import name "Feature" from "setuptools" in version 46.0.0 #2017
Comments
I got same issue |
This appears to be a deprecated API that was first removed in version 3.0 (41 major versions ago). Not sure why it was put back, but it was deprecated in issue #65 and most recently removed in #1979 . If it causes problems for you I think pinning to setuptools < 46 while you find another solution is the right way to go. |
setuptools 46.0.0 contradicts pyScss 1.3.4 because 'Feature' were deprecated. Please see pypa/setuptools#2017 Change-Id: Iafab38336daf5d84ef9e19248b59adccfacc29ec
* Update requirements from branch 'master' - Skip setuptools 46.0.0 setuptools 46.0.0 contradicts pyScss 1.3.4 because 'Feature' were deprecated. Please see pypa/setuptools#2017 Change-Id: Iafab38336daf5d84ef9e19248b59adccfacc29ec
setuptools 46.0.0 contradicts pyScss 1.3.4 because 'Feature' were deprecated. Please see pypa/setuptools#2017. For more details please see Iafab38336daf5d84ef9e19248b59adccfacc29ec Change-Id: I7483de7478baf454bf8cf518c3e0e515b991e00d Related-Bug: #1866961
Closing this as it was an intended change. Thank you for reporting this! |
I'm a little new to Python-related utils and such, here's the command I had to use to resolve this: |
I don't understand this error, why is
|
I tried this but still getting error saying: ImportError: cannot import name 'Feature' from 'setuptools' (/usr/local/lib/python3.7/site-packages/setuptools/init.py) |
I was able to overcome this by setting zope.interface version to greater than 5.0.0 in requirements.txt |
…ip continues to play with us. (#23) So, setuptools broke the installation setup, by removing a deprecated API that is still used by some of our dependencies (see pypa/setuptools#2017) This PR fixes the Docker build by using pipstrap to pin pip/setuptools/wheels, like it is done in several critical places (certbot-auto, ...). An issue in certbot is opened to fix more generally the problem in most recent versions of setuptools: #7976 It rebuilt locally all dockers (certbot + dns plugins) for the three architectures, and all have passed.
in case we need to use ubuntu xenial for testing, xenial only had python 3.5 packaged. and tempest 23.0 was the last version which supports python3.5 and python2.7. also do not replace link in tox.ini, as it is reachable. to address the issues of - pallets/markupsafe#116 - pypa/setuptools#2017 MarkupSafe is installed by https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt Signed-off-by: Kefu Chai <kchai@redhat.com>
Issue is still present |
To get around the issue described here: pypa/setuptools#2017 Signed-off-by: Avery Uslaner <uslaner.avery@gmail.com>
So this removal of |
how if use: |
When using poetry,
worked for me. HTH. |
Feature was removed from setuptools 46: pypa/setuptools#2017 zope.interface 4.7.2 includes a fix for this: zopefoundation/zope.interface@1de5550
Fixed when I use Python 3.8 and |
But it doesn't work on Windows when I use Python 3.9 or Python 3.10 with any version of setuptools. |
Hi @rufatpro, according to #2017 (comment), the issue reported here is caused by a deprecated functionality removed long time ago. Since setuptools does not provide LTS support for old versions, the best action forward is to try updating your dependencies and/or inform the maintainers of third party libraries if they are still relying on |
The build is currently failing during the installation of Jinja@2.6 with an error like: File "..." from setuptools import setup, Extension, Feature ImportError: cannot import name 'Feature' It appears that Feature was a deprecated API that was removed, reintroduced, and then removed again [0]. Bumping the minor version of the dependency to 2.7 fixes this issue. The release notes for Jinja@2.7 are available here: https://github.com/pallets/jinja/blob/2.7/CHANGES#L4 [0] pypa/setuptools#2017 (comment) Change-Id: I9cdf088c3bef8fbcbbdf540a5022a2341aab111f
Code uses deprecated API pypa/setuptools#2017
setuptools 46.0.0 contradicts pyScss 1.3.4 because 'Feature' were deprecated. Please see pypa/setuptools#2017 Change-Id: Iafab38336daf5d84ef9e19248b59adccfacc29ec
Your last version is giving the following error:
ImportError: cannot import name 'Feature' from 'setuptools'
The text was updated successfully, but these errors were encountered: