4cat icon indicating copy to clipboard operation
4cat copied to clipboard

migrate.py hangs on Windows 10

Open dale-wahl opened this issue 4 years ago • 1 comments

Problems seems to be in the use of subprocess. It looks like it is waiting for a lock that's never released (or the release is not noticed). Tried running as administrator with same problem.

You can work around this issue by using WSL (Windows Subsystem for Linux). I pulled the latest version for 4CAT from github, then ran python -m pip install -r requirements.txt in my normal, Windows 4CAT python environment. Afterwards, I commented out lines 157-164 in migrate.py (the run pip section), and ran then ran migrate.py in WSL which was able to take care of the rest.

This actually may not work for others (particularly depending on your WSL python environment) as it might not be able to run all the migration scripts. You could also just build with Docker. Or directly in WSL. I do this to torture myself. It keeps me sharp.

If anyone else has this problem, please comment below. Otherwise this is just a note to myself that I can look at the in future and say "I really ought to look at that".

dale-wahl avatar Jul 21 '21 16:07 dale-wahl

Yep, I also encountered this, should be fixed.

sal-uva avatar Sep 24 '21 11:09 sal-uva

Use Docker or WSL.

dale-wahl avatar May 04 '23 12:05 dale-wahl