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

Import error: from keras.utils import Progbar #148

Closed
leoleozhu opened this issue Sep 7, 2021 · 3 comments · May be fixed by #155
Closed

Import error: from keras.utils import Progbar #148

leoleozhu opened this issue Sep 7, 2021 · 3 comments · May be fixed by #155

Comments

@leoleozhu
Copy link

Command version fails with the following message.

Traceback (most recent call last): File "/Users/leo/.Envs/global/bin/fawkes", line 5, in <module> from fawkes import main File "/Users/leo/.Envs/global/lib/python3.9/site-packages/fawkes/__init__.py", line 9, in <module> from .differentiator import FawkesMaskGeneration File "/Users/leo/.Envs/global/lib/python3.9/site-packages/fawkes/differentiator.py", line 11, in <module> from fawkes.utils import preprocess, reverse_preprocess File "/Users/leo/.Envs/global/lib/python3.9/site-packages/fawkes/utils.py", line 24, in <module> from keras.utils import Progbar ImportError: cannot import name 'Progbar' from 'keras.utils' (/Users/leo/.Envs/global/lib/python3.9/site-packages/keras/utils/__init__.py)

@Shawn-Shan
Copy link
Owner

It should be caused by wrong keras version. Can you reinstall keras to the version we specified in requirement.txt?

@leoleozhu
Copy link
Author

It should be caused by wrong keras version. Can you reinstall keras to the version we specified in requirement.txt?

Yes. Working now. Thanks.

@PorcelainMouse
Copy link

Hmm, there's no requirements.txt any more.

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

Successfully merging a pull request may close this issue.

3 participants