-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Error when setting up a development environment: “error in suds-jurko setup command: use_2to3 is invalid.” #962
Comments
I posted a couple updates to my original comment, where I explain the problem and solution. TL;DR: it seems suds-jurko needs to be replaced by an alternative that is actively maintained and updated to work with setuptools >=58, such as suds-community. |
Hello ! For sure I am willing to remove a deprecated dependency from the dependency tree of lexicon. As of now I am unable to reproduce the error tough. So we need to dig the issue a little deeper. What I can say to you has of now is that |
Hi @adferrand! Originally, I got the error on my MacBook, but I was able to reproduce it on a VM. You can use the following steps to consistently reproduce the issue:
I found that |
I see that now consistently on the CI. The faulty dependency is pulled from transip. Transip provider itself is using a deprecated SOAP API that will be removed soon. To solve all of this I basically deprecated the transip provider in lexicon, disable the tests, in order to rebuild it on the new REST API. This is live on |
About the pip install editable, this is a known issue with pip when a project uses I hope it will be fixed in the future, but as of now you should just use |
I can install 3.8.0 successfully, thanks @adferrand! |
Hello,
I'm trying to get lexicon set up for local development. I'm following the instructions here. When I run
poetry install -E full
it fails when trying to install suds-jurko with the errorerror in suds-jurko setup command: use_2to3 is invalid.
(full logs below). I wonder if the developers can reproduce this error too, or is it an issue with my system?I'm starting with a fresh clone of https://github.com/AnalogJ/lexicon. Poetry appears to be installing the virtualenv correctly (python and pip are executing out of
.venv/bin/…
. I'm on macOS 10.14.6, with Python 3.9.6, Poetry 1.1.10, and pip 21.2.4.I've never used Poetry before, so I'm starting with a fresh install and config of it.
Here's the full output when trying to install:
I tried installing suds-jurko manually with
source .venv/bin/activate && pip install --no-deps suds-jurko
but that gives me the same error.Update 1: I found this comment which says the
use_2to3
flag no longer works as of setuptools version 58.0.2. Perhaps it would work to set a fixed setuptools version of < 58 when installing it? I'm not sure how to do this, but it appears it is currently defined inpyproject.toml
:types-setuptools = "*"
.Update 2: Ok, I've confirmed the above. If I downgrade setuptools to v56.2.0, then the
poetry install -E full
installation completes successfully (suds-jurko installs without error). Also, I found issue #2784 for pypa/setuptools which has comments that suggest the problem is an update required in suds-jurko. The resolution appears to be to stop using suds-jurko and replace it with suds-bis or suds-community.I had lexicon running for local development a few years ago, and at the time I had it installed using
pip install --editable .
. Would it be possible to install the latest version of lexicon with setuptools? I've tried, but I'm getting this confusing error:That is confusing because if I run
pip install setuptools
the response is:I've googled these errors and can't find any working solutions. I hope someone has some suggestions? Thanks!
The text was updated successfully, but these errors were encountered: