You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with importing nengo_dl in Google Colab. The error states that 'keras.engine' is not available. Here's what I've tried:
Attempted to resolve it by downgrading keras to version 2.2.1 using 'pip install keras==2.2.1,' but a new error occurred.
The new error suggests that Colab cannot import 'Iterable' from 'collections,' possibly a Python compatibility issue.
Could you please help me resolve this? Thank you in advance, you guys are awesome!
ISSUE # 1
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-700eed500250> in <cell line: 1>()
----> 1 import nengo_dl
2 frames
/usr/local/lib/python3.10/dist-packages/nengo_dl/compat.py in <module>
79 )
80 else:
---> 81 from keras.engine.functional import Functional, _build_map
82 from keras.layers import BatchNormalizationV1, BatchNormalizationV2
83
ModuleNotFoundError: No module named 'keras.engine'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
ISSUE # 2
Using TensorFlow backend.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-700eed500250> in <cell line: 1>()
----> 1 import nengo_dl
10 frames
/usr/local/lib/python3.10/dist-packages/keras/callbacks.py in <module>
16 from collections import deque
17 from collections import OrderedDict
---> 18 from collections import Iterable
19 from .utils.generic_utils import Progbar
20 from . import backend as K
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
Hello there!
I'm encountering an issue with importing nengo_dl in Google Colab. The error states that 'keras.engine' is not available. Here's what I've tried:
Could you please help me resolve this? Thank you in advance, you guys are awesome!
ISSUE # 1
ISSUE # 2
The text was updated successfully, but these errors were encountered: