Following the "Server Usage Instructions (SELF HOSTING, OLD)"
at the step "pip install -r requirements.txt" I got the error:
*** Please install the scikit-image
package (instead of skimage
) ***
I solved this by:
pip install scikit-image # this step was probably not needed since it is in the requirements
then removing the line for skimage from requirements.txt
then running again:
pip install -r requirements.txt
It warned that things were installed ~/.local/bin but it was not in my path, so I made sure it was in my path.
After this I ran into problems with the versions of Flask and Werkzeug (ImportError: cannot import name 'url_quote' from 'werkzeug.urls') and finally solved this by updating to the latest versions of both:
pip uninstall flask Flask_Cors Werkzeug
pip install flask Flask_Cors Werkzeug
Next I had an "ee key too small" error and regenerated the server key:
in Backend folder:
openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr
(pressed Enter to use default/blank values for most fields; provided a new challenge password but haven't been asked for it yet)
then made a new self-signed server certificate:
openssl x509 -req -days 730 -in server.csr -signkey server.key -out server.crt
Next I had the problem that the version of PyTorch installed did not support my GPU, so I removed it
pip3 uninstall torch torchvision
and updated to the 11.8 version using a command generated by https://pytorch.org/get-started/locally/
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
(Pretty sure I could have left out torchaudio, but I was quick to paste the command and run it.)
Now it runs and it is awesome! I am very impressed with how quickly it colorizes a whole chapter and how good it looks!
I have not tested this idea, but I think all the version issues would be solved by removing version numbers from the lines in requirements.txt for scikit-image, flask, Flask_Cors, Werkzeug, torch, and torchvision and removing the whole line for skimage.