Keras fail - Module not found

111 views
Skip to first unread message

Luigi Bellanca

unread,
Jul 16, 2020, 12:08:14 PM7/16/20
to PyInstaller
2020-07-16 17:00:34.452068: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-07-16 17:00:34.468649: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "predict.py", line 17, in <module>
  File "tensorflow\python\keras\saving\save.py", line 184, in load_model
  File "tensorflow\python\keras\saving\hdf5_format.py", line 177, in load_model_from_hdf5
  File "tensorflow\python\keras\saving\model_config.py", line 55, in model_from_config
  File "tensorflow\python\keras\layers\serialization.py", line 105, in deserialize
  File "tensorflow\python\keras\utils\generic_utils.py", line 369, in deserialize_keras_object
  File "tensorflow\python\keras\engine\sequential.py", line 395, in from_config
  File "tensorflow\python\keras\utils\version_utils.py", line 57, in __new__
  File "tensorflow\python\util\lazy_loader.py", line 62, in __getattr__
  File "tensorflow\python\util\lazy_loader.py", line 45, in _load
  File "importlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tensorflow.python.keras.engine.base_layer_v1'
[1904] Failed to execute script predict

bwoodsend

unread,
Jul 17, 2020, 1:53:52 AM7/17/20
to PyInstaller

Use --hidden-import=tensorflow.python.keras.engine.base_layer_v1 to fix ModuleNotFoundError errors.

Reply all
Reply to author
Forward
0 new messages