maxpumperla / deep_learning_and_the_game_of_go

Code and other material for the book "Deep Learning and the Game of Go"
https://www.manning.com/books/deep-learning-and-the-game-of-go
953 stars 387 forks source link

AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects' #89

Open oneway3124 opened 3 years ago

oneway3124 commented 3 years ago

File "C:\ProgramData\Anaconda3\envs\go\lib\site-packages\keras\initializers__init__.py", line 82, in populate_deserializable_objects generic_utils.populate_dict_with_module_objects( AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'

Process finished with exit code 1

oneway3124 commented 3 years ago

conda create -n go conda install pip pip install dlgo

shirleyp1097 commented 3 years ago

I also have this problem. please let me know if there's a workaround

shirleyp1097 commented 3 years ago

It worked for me after uninstalling the tf-nightly packages.

pip list | grep tf Then reinstall tensorflow

pip install tensorflow --upgrade --force-reinstall


I found the above terminal command fixed the problem. Don't really know why, but hey, it works.