Hi all,
I am a Rasa newbie, somehow installed (after crossing the tensorflow import issue) on an old Windows 10 PC and ran rasa init. I got the following error:
AttributeError: module ‘tensorflow.python.util.compat’ has no attribute ‘v1’.
Can someone help on how to set this right?
FYI, initially, I was getting tensorflow import errors when I ran rasa init, so I fished around and installed tensorflow with this, which got me past the import issue:
C:\Xtra\Rasa>rasa init c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:521: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
c:\xtra\python\python36\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
np_resource = np.dtype([(“resource”, np.ubyte, 1)])
Traceback (most recent call last):
File “c:\xtra\python\python36\lib\runpy.py”, line 193, in *run_module_as_main “ main ”, mod_spec)
File “c:\xtra\python\python36\lib\runpy.py”, line 85, in *run_code exec(code, run_globals)
File "C:\Xtra\Python\Python36\Scripts\rasa.exemain* .py", line 7, in File "c:\xtra\python\python36\lib\site-packages\rasamain* .py", line 69, in main
set_log_level(log_level)
File “c:\xtra\python\python36\lib\site-packages\rasa\utils\common.py”, line 68, in set_log_level
update_tensorflow_log_level()
File “c:\xtra\python\python36\lib\site-packages\rasa\utils\common.py”, line 120, in update_tensorflow_log_level
tf_log_level = tf.compat.v1.logging.ERROR
AttributeError: module ‘tensorflow.python.util.compat’ has no attribute ‘v1’
C:\Xtra\Rasa>pip show tensorflow
Name: tensorflow Version: 1.6.0
Summary: TensorFlow helps the tensors flow Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: c:\xtra\python\python36\lib\site-packages Requires: astor, six, absl-py, termcolor, wheel, tensorboard, protobuf, numpy, gast, grpcio Required-by: rasa