Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Progbar' from 'keras.utils', pip cannot install v1.0.4 #172

Open
PorcelainMouse opened this issue Nov 7, 2022 · 1 comment

Comments

@PorcelainMouse
Copy link

When I run pip3 install --user fawkes and then fawkes -d . --mode=low, I get this error:

module 'keras.preprocessing.image' has no attribute 'img_to_array'

I looked up that error and it seemed like TF 2.10 might be too new. So I downgraded it to 2.8. Now, I get:

ImportError: cannot import name 'Progbar' from 'keras.utils'

Previous issue #148 references requirements.txt file, but I cannot find it.

Also, there aren't any older versions of keras & tenserflow in pipy than 2.8. So, I'm not sure what version of keras could be the recommended one. I don't think the instructions are right; pip install doesn't produce a usable configuration. It installed fawkes version 1.0.3.

When I try to upgrade fawkes to v1.0.4, pip complains that it requires Python < 3.8 and TF == 2.4.1. I'm not sure how to get these easily. Manually install everything?

I used fawkes about a year ago and it worked fine. Guessing it was Python3.8?

@PorcelainMouse
Copy link
Author

PorcelainMouse commented Nov 7, 2022

I was able to get fawkes to install and work after considerable effort and pain. I had to build python 3.7.15 from source, and then install it system-wide (it cannot be install for just one user). Then, I created a virtualenv for working with that version of python. Then I had to upgrade pip and setuptools in my venv; the default ones installed by virtualenv wouldn't install some dependencies correctly (wrapt?). Then I installed fawkes==1.0.4 with pip, which was able to find the correct versions of keras, TF, and other modules and install them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant