Closed tux- closed 1 month ago
Since your output contains Using cached PyYAML-6.0.tar.gz
, I suggest you execute pip cache purge
first and try again
In the current main branch requirements_versions.txt it does say to use PyYAML-6.0. If I change just that one to say PyYAML-6.0.1 and try, new bugs appear. This is in fresh install of Ubuntu 24.04. Tried it on two different VM's and it is exactly same problem. After pip cache purge
problem persists as well.
Sorry, my fault. I tested in 22.04. I will check it now
I'm sure this issue is caused by the version of Python, and the default Python version for Ubuntu 24.04 is 3.12. I would recommend that you use Python 3.10 as the running environment for the Fooocus API, or you can follow the requirements you mentioned above to remove the version number, but this has not been fully tested. In order to be consistent with Fooocus, it will not be merged into the mainline.
Yeah, looks like Fooocus has the same issue. I have no clue how to install different Python versions. How ever, I do know that using the above posted txt file, make it all run without issues. So, I guess this is more like a guide on how to make it work out of the box on Ubuntu 24.04. Maybe it should have been a wiki post instead or something, not sure if you want to enable wiki tho.
Checklist
What happened?
Installing on Ubuntu 24.04 gives errors when running
pip install -r requirements_versions.txt
Steps to reproduce the problem
git clone https://github.com/mrhan1993/FooocusAPI.git cd FooocusAPI python3 -m venv fooocus_env source fooocus_env/bin/activate pip install -r requirements_versions.txt
What should have happened?
Should install.
What browsers do you use to access Fooocus?
No response
Where are you running Fooocus?
Locally
What operating system are you using?
Ubuntu 24.04
Console logs
Additional information
Modifying the file to have this contents, and it works: