-
-
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
upgrade to version 34 with modules that depends on setuptools for build/setup.py #942
Comments
Here is a Dockerfile that partly reproduce this issue:
it's doesn't fail on six, but on other dependcey i guess packaging.version is missing |
breaks buildout too:
|
I have an almost identical problem to @fruch, except that the failure is on a different requirement:
|
I have identical problem to @jwg4: Downloading from URL https://pypi.python.org/packages/b1/d1/3df86b914d72b18d37266f964a11576f135eadbb7d2e3c5165377e4263bc/setuptools-34.0.1.zip#md5=9e907950a94d38c0295df0da2507c280
File "", line 3, in File "setuptools/init.py", line 12, in
File "setuptools/version.py", line 1, in
File "pkg_resources/init.py", line 70, in
ImportError: No module named packaging.version Please, fix this issue soon! Our customer can't use our web application when this bug occurs! |
same here.. 34.0.0 and 34.0.1 both fail |
same issue for me
I 've fixed my current issue by adding
to my requirements.txt which is allowing me to use 34.x |
Also the same here. Since the release of 34.x we get
We've temporarily rolled the version we install to 33.1.1 in the meantime :-) |
+1 Good job! |
We're using buildout here (Plone world), and having the following traceback:
Downgrading to 33.1.1 it works. I'm glad we have |
This behavior is by design (#581) - as mentioned in the changelog. What's not (currently) mentioned is that you have to be using a recent version of pip that supports wheel installs of setuptools (#940). If you're using an old virtualenv, you'll need to upgrade your pip before installing setuptools or pin to an older version of setuptools. Otherwise, this issue is essentially a duplicate of #937.
That looks like a separate issue, but probably needs to be addressed in buildout. See #939. @idgserpro Your traceback is suspiciously different from that of others. You did get |
Am I interpreting this correctly that sdist installation of setuptools is no longer supported in v34? That's a pretty significant breaking change. |
Yes and no. You can't install from sdist without having installed setuptools dependencies first, but if you ensure that the dependencies are installed, then you can install from sdist. Eventually, PEP 518 support should come to pip at which point pip will be able to install setuptools from sdist without prerequisites. It is a significant breaking change, and I appreciate the efforts some of you have to expend to help make this transition. I've done everything I can to limit the impact, and if you can think of something more that can be done, please do share. |
First of all sorry for the noise I've did on tweeter.( I assumed a call for issues, can be a place to raise them) I think the importent missing part here, is a big callout about this change, in all possible mediums, a week notice that no one heard is not enough. This like notices in earlier versions (same as pip did for various things) I've seen this type of things happens in various parts related to python packaging, and it was almost was in supprize, even that I follow lots of the blog's related to python,band a lots of other vocal people related to python, please use all of them for those types of call outs and breaking changes. All of us are stuck in those werid situations that upgrading a part, or changing order of what needs to be done, means a lot of work for multiple people. (yes it's a sad/bad place, but we're there, and breakage doesn't make it better...) Anyhow keep us the good work, so the python packaging world would be rock solid. (And hopefully end our suffering :)) |
I used this to workaround and it helped me to install the requirements |
As reported here: pypa/setuptools#942 The new setuptools is breaking the build. This patch reverts it to a working version Change-Id: I49674425f18b44a082693e8b815103fb9dfb25a0
Avoid the following traceback error: pypa/setuptools#942 (comment)
Avoid the following traceback: ```bash Generated script '/home/user/plone/zinstance/bin/buildout'. Traceback (most recent call last): File "bin/buildout", line 13, in <module> import zc.buildout.buildout File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/buildout.py", line 18, in <module> import zc.buildout.easy_install File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/easy_install.py", line 26, in <module> import pkg_resources File "/home/user/.buildout/eggs/setuptools-34.0.1-py2.7.egg/pkg_resources/__init__.py", line 72, in <module> import packaging.requirements File "/home/user/.buildout/eggs/packaging-16.8-py2.7.egg/packaging/requirements.py", line 59, in <module> MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2 arguments (1 given) ```
[FIX] odoo-shippable: Fix pypa/setuptools#942
Avoid the following traceback: ```bash Generated script '/home/user/plone/zinstance/bin/buildout'. Traceback (most recent call last): File "bin/buildout", line 13, in <module> import zc.buildout.buildout File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/buildout.py", line 18, in <module> import zc.buildout.easy_install File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/easy_install.py", line 26, in <module> import pkg_resources File "/home/user/.buildout/eggs/setuptools-34.0.1-py2.7.egg/pkg_resources/__init__.py", line 72, in <module> import packaging.requirements File "/home/user/.buildout/eggs/packaging-16.8-py2.7.egg/packaging/requirements.py", line 59, in <module> MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2 arguments (1 given) ```
Avoid the following traceback: ```bash Generated script '/home/user/plone/zinstance/bin/buildout'. Traceback (most recent call last): File "bin/buildout", line 13, in <module> import zc.buildout.buildout File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/buildout.py", line 18, in <module> import zc.buildout.easy_install File "/home/user/.buildout/eggs/zc.buildout-2.5.3-py2.7.egg/zc/buildout/easy_install.py", line 26, in <module> import pkg_resources File "/home/user/.buildout/eggs/setuptools-34.0.1-py2.7.egg/pkg_resources/__init__.py", line 72, in <module> import packaging.requirements File "/home/user/.buildout/eggs/packaging-16.8-py2.7.egg/packaging/requirements.py", line 59, in <module> MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2 arguments (1 given) ```
pypa/setuptools#942 Something was bringing in setuptools v34, which has a broken dependency on a module named 'packaging'. Downgrade to v33.1.1 allows a dev build to complete.
See pypa/setuptools#942 The toolbar was bringing in setuptools v34, which has a broken dependency on a module named 'packaging'. Downgrade to v33.1.1 allows a dev build to complete.
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer setuptools droped self-upgrade support that brakes with pip version available in CentOS7, see: pypa/setuptools#942 Change-Id: Iab64294de64f67ab5aa2a7647a11eefa5ee14742 Signed-off-by: Anton Marchukov <amarchuk@redhat.com>
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Project: openstack-infra/tripleo-ci 3aaf3fb2a559d39679dc2fd0d1fd2dd108b5c9a9 Update pip in DLRN venv Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per pypa/setuptools#942 (comment) pypa/setuptools#937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4
Hi folks, |
We have a CI setup for running diffrent test repos, each repo has it's own requirements.txt
we build a virtualenv on each run and use that to run the tests.
our build mechines has old virtualenv, which install old version of setuptools to begin with.
once we do
pip install -r requirements.txt -U
it's brings in lots of packages that some of them are depnded on setuptool for the installtion (i.e. selenium)
cause now setuptool is depnded on six, it's not available in the same pip install, hence failing the installation.
currentlly we'll pin to older version of setuptools
I'm trying to update with a Dockerfile that will demonstrate the problem
The text was updated successfully, but these errors were encountered: