JavaScript
x
6
1
#25 3.990 × python setup.py egg_info did not run successfully.
2
#25 3.990 │ exit code: 1
3
#25 3.990 ╰─> [1 lines of output]
4
#25 3.990 error in anyjson setup command: use_2to3 is invalid.
5
#25 3.990 [end of output]
6
This is a common error which the most common solution to is to downgrade setuptools to below version 58. This was not working for me. I tried installing python3-anyjson but this didn’t work either. I’m at a complete loss.. any advice or help is much appreciated.
If it matters: this application is legacy spaghetti and I am trying to polish it up for a migration. There’s no documentation of any kind.
The requirements.txt is as follows:
JavaScript
1
50
50
1
cachetools>=2.0.0,<4
2
certifi==2018.10.15
3
Flask-Caching
4
Flask-Compress
5
Flask==2.0.3
6
cffi==1.2.1
7
diskcache
8
earthengine-api==0.1.239
9
gevent==21.12.0
10
google-auth>=1.17.2
11
google-api-python-client==1.12.1
12
gunicorn==20.1.0
13
httplib2.system-ca-certs-locater
14
httplib2==0.9.2
15
oauth2client==2.0.1
16
pyasn1-modules==0.2.1
17
redis
18
requests==2.18.0
19
werkzeug==2.1.2
20
six==1.13.0
21
pyasn1==0.4.1
22
Jinja2==3.1.1
23
itsdangerous==2.0.1
24
25
26
Flask-Celery-Helper
27
Flask-JWT==0.2.0
28
Flask-Limiter
29
Flask-Mail
30
Flask-Migrate
31
Flask-Restless==0.16.0
32
Flask-SQLAlchemy
33
Flask-Script
34
Flask-Testing
35
Flask==2.0.3
36
Pillow<=6.2.2
37
Shapely
38
beautifulsoup4
39
boto
40
celery==3.1.23
41
geopy
42
gevent==21.12.0
43
numpy<1.17
44
oauth2client==2.0.1
45
passlib
46
psycopg2
47
pyproj<2
48
python-dateutil==2.4.1
49
scipy
50
Any advice, input, or help is very much appreciated.
Advertisement
Answer
Downgrading setuptools worked for me
JavaScript
1
2
1
pip install "setuptools<58.0.0"
2
And then
JavaScript
1
2
1
pip install django-celery
2