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

pip3 install -I -r REQUIREMENTS fails: trustar-0.3.35 dependency #523

Closed
rene-r-martinez opened this issue Sep 10, 2021 · 2 comments
Closed

Comments

@rene-r-martinez
Copy link

rene-r-martinez commented Sep 10, 2021

Getting an error installing. Log details below

Downloading trustar-0.3.35.tar.gz (51 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r6or4o9u/trustar/setup.py'"'"'; file='"'"'/tmp/pip-install-r6or4o9u/trustar/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-r6or4o9u/trustar/pip-egg-info
cwd: /tmp/pip-install-r6or4o9u/trustar/
Complete output (3 lines):
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
error in trustar setup command: use_2to3 is invalid.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@github-germ
Copy link

You need to downgrade your version of setuptools.

The trustar install uses a the use_2to3 feature in setuptools. That feature was discontinued in the new v58.0.0 release of setuptools on 9/4/2021.

See https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0 and pypa/setuptools#2086
v58.0.0
04 Sep 2021
Breaking Changes
. #2086: 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.

@rene-r-martinez
Copy link
Author

Thanks, enforcing version 57.5.0 fixed the issue.

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

No branches or pull requests

2 participants