use_2to3 is invalid (Tempita)
See original GitHub issuesetuptools version
setuptools==58.0.4
Python version
Python 3.7
OS
alpine 3.10 and python:3.7.4-alpine3.10
Additional environment information
Running in docker image
Description
Error when install Tempita package
Collecting tempita
Using cached Tempita-0.5.2.tar.gz (12 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zh352qvj
cwd: /tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/
Complete output (1 lines):
error in Tempita setup command: use_2to3 is invalid.
A similar error are rased when install formencode==1.3.1
Expected behavior
Success in installation
How to Reproduce
pip install formencode==1.3.1 pip install --upgrade tempita
Output
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zh352qvj
cwd: /tmp/pip-install-w1dwys3_/tempita_88536193c2e747c5939cf0c8202599ac/
Complete output (1 lines):
error in Tempita setup command: use_2to3 is invalid.
Code of Conduct
- I agree to follow the PSF Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Error in anyjson setup command: use_2to3 is invalid
This is a common error which the most common solution to is to downgrade setuptools to below version 58. This was not working...
Read more >FTBFS: error in Tempita setup command: use_2to3 is invalid.
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > fakeroot debian/rules clean...
Read more >Debian Bug report logs - #997633 python-tempita: FTBFS
Debian Bug report logs - #997633 python-tempita: FTBFS: error in Tempita setup command: use_2to3 is invalid. version graph. Package: src:python-Β ...
Read more >Error in X setup command: use_2to3 is invalid [Solved]
The error in X setup command: use_2to3 is invalid error occurs because `setuptools` has removed support for 2to3 during builds.
Read more >error in deap setup command: use_2to3 is invalid.) β MacPorts
comment:1 Changed 12 months ago by jmroot (Joshua Root). Until upstream fixes this, you can use the same workaround as py-tempita.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks Ian. Iβve uploaded a wheel for Tempita 0.5.2:
Now any users installing with pip (and presumably poetry) will bypass setuptools builds and thus will not fail. Please confirm.
This comment is the only workaround that Iβve found for now: https://github.com/python-poetry/poetry/issues/4511#issue-998383431
In short, it installs a pinned version of setuptools (e.g.,
setuptools==57.5.0
) outside ofpyproject.toml
and then runspoetry install
.