python-fedex-devs / python-fedex

A light wrapper around FedEx's SOAP API.
http://python-fedex.readthedocs.org
BSD 3-Clause "New" or "Revised" License
155 stars 139 forks source link

Cannot install with setuptools>=58.0.2 #169

Closed KJSanchez closed 1 year ago

KJSanchez commented 1 year ago

Setuptools 58.0.2 fails fast when installing packages that want 2to3. https://github.com/pypa/setuptools/issues/2769

$ /var/app/venv/staging-LQM1lest/bin/pip list setuptools
Package    Version
---------- -------
gunicorn   20.1.0
pip        22.2.1
setuptools 63.2.0
wheel      0.37.1
$ /var/app/venv/staging-LQM1lest/bin/pip install fedex==2.4.1
Collecting fedex==2.4.1
  Using cached fedex-2.4.1.tar.gz (280 kB)
  Preparing metadata (setup.py) ... done
Collecting suds-jurko
  Using cached suds-jurko-0.6.zip (255 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in suds-jurko setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
mmangione commented 1 year ago

The fundamental issue is with suds-jurko. Its development has been abandoned and it does not work correctly any longer.

The devs of this project have an active pull request to switch to suds-community - the fix the long abandoned suds-jurko project. This PR has been there for the last few months with no movement.

The last update of this codebase was April 2022. These devs are not paying attention to this project either.

mmangione commented 1 year ago

You can switch to this project, which has a patched version of suds.

https://github.com/Mobelux/python-fedex

radzhome commented 1 year ago

create a PR to use patched version of suds