Hi, I'm using the service PythonAnywhere to host an small page.
My page was using an old python version and I tried to update, but it doesn't work and now everything is broken π.
I went to my virtual environment, and in a bash console run pip freeze > /tmp/requirements.txt, then I did rm -rf ~/.cache/.
Then run mkvirtualenv --python=python3.10 py310 and finally pip install -r /tmp/requirements.txt inside the enviroment.
And then I got the following error:
Collecting astropy==4.3.1 (from -r /tmp/requirements.txt (line 18))
Downloading astropy-4.3.1.tar.gz (7.6 MB)
ββββββββββββββββββββββββββββββββββββββββ 7.6/7.6 MB 29.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
Γ Getting requirements to build wheel did not run successfully.
β exit code: 1
β°β> [31 lines of output]
Traceback (most recent call last):
[... STACK_TRACE ...]
ModuleNotFoundError: No module named 'setuptools.dep_util'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Γ Getting requirements to build wheel did not run successfully.
β exit code: 1
β°β> See above for output.
I'm not sure how to fix this. Any idea?
I tried with python -m pip install -U setuptools but did not fix it.
I also tried updating pip but that is not an option since one of my dependencies has a metadata which only works in pip < 24.1, So I have pip == 24.0.