Skip to content
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

Switch project required dependency to suds-community. #158

Closed
ndobbs opened this issue Nov 1, 2021 · 6 comments · Fixed by #159
Closed

Switch project required dependency to suds-community. #158

ndobbs opened this issue Nov 1, 2021 · 6 comments · Fixed by #159

Comments

@ndobbs
Copy link
Contributor

ndobbs commented Nov 1, 2021

PR #159 attempts to resolve this issue.

While building with the latest version of fedex our ci/cd process breaks while attempting to install the dependency suds-jurko.

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-i40r_jb8/suds-jurko/setup.py'"'"'; __file__='"'"'/tmp/pip-install-i40r_jb8/suds-jurko/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-i40r_jb8/suds-jurko/pip-egg-info
         cwd: /tmp/pip-install-i40r_jb8/suds-jurko/
    Complete output (1 lines):
    error in suds-jurko setup command: use_2to3 is invalid.

Upon further examination it turns out that python's setuptools drops support for 2to3 in version v.58.0.0. In order to correct this it is recommended to switch to the new and actively maintained package suds-community which already has resolved this problem HERE.

I have also opted to pin this dependency for future cases where the project can be more intentional with the versions expected.

@RandomJo
Copy link

RandomJo commented Nov 3, 2021

I'm running into this issue as well. To get around it for the time being, I changed the pipenv install step in my build process to this:
pipenv install setuptools==57.5.0

@CorainChicago
Copy link

I had the same issue too and fixed it by running:

- pip install "setuptools==58.0.0 and then explicitely installing the requirements file for my lamdba with --use-deprecated=legacy-resolver at the end.

Version 58.0.0 introduces a breaking change to setuptools

Removed support for 2to3 during builds. Projects should port to a unified codebase or pin to an older version of Setuptools using PEP 518 build-requires

@ndobbs
Copy link
Contributor Author

ndobbs commented Jan 27, 2022

Changes merged to default branch #159 - closing issue.

@ndobbs ndobbs closed this as completed Jan 27, 2022
@CorainChicago
Copy link

@ndobbs When will another version get released with these changes included?

@ndobbs
Copy link
Contributor Author

ndobbs commented Feb 16, 2022

@ndobbs When will another version get released with these changes included?

@CorainChicago I'm sorry, I'm only a contributor, I do not maintain this project and lack the authority to create a release.

@ashtonpaul
Copy link

@CorainChicago I was able to temporarily get my project to work by using a direct git link to the repo in my requirements.txt.

I replaced fedex==2.4.1 with git+https://github.com/python-fedex-devs/python-fedex.git#egg=fedex. This way it will put the latest master release which includes the updated suds-community package. I added a watch to this repo, so when 2.4.2 gets released I can switch my line in requirements.txt to fedex==2.4.2. Hope this helps.

Thanks for getting this updated @ndobbs. Hopefully a maintainer updates the repo soon and cuts a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants