Rasa 1.5 on Jetson Nano - error with 'rasa init'

Hello, I am fairly new to Rasa and am trying to setup version 1.5 on a Jetson Nano. I have successfully installed Rasa 1.5, but upon running ‘rasa init’ I receive the following:

"Welcome to Rasa! :robot:

To get started quickly, an initial project will be created. If you need some help, check out the documentation at Introduction to Rasa Open Source. Now let’s start! :point_down:t4:

? Please enter a path where the project will be created [default: current directory] . ? Directory ‘/home/samsat2/rasa_testing/rasat’ is not empty. Continue? Yes Created project directory at ‘/home/samsat2/rasa_testing/rasat’. Finished creating project structure. Training an initial model… Training Core model… Traceback (most recent call last): File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/registry.py”, line 21, in policy_from_module_path module_path, lookup_path=“rasa.core.policies.registry” File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/utils/common.py”, line 190, in class_from_module_path m = importlib.import_module(lookup_path) File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “”, line 994, in _gcd_import File “”, line 971, in _find_and_load File “”, line 955, in _find_and_load_unlocked File “”, line 665, in _load_unlocked File “”, line 678, in exec_module File “”, line 219, in _call_with_frames_removed File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/policies/registry.py”, line 5, in from rasa.core.policies.embedding_policy import EmbeddingPolicy File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/policies/embedding_policy.py”, line 22, in from rasa.utils import train_utils File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/utils/train_utils.py”, line 9, in from tensor2tensor.models.transformer import ( File “/home/samsat2/.local/lib/python3.6/site-packages/tensor2tensor/models/init.py”, line 36, in from tensor2tensor.models import mtf_transformer2 File “/home/samsat2/.local/lib/python3.6/site-packages/tensor2tensor/models/mtf_transformer2.py”, line 23, in from mesh_tensorflow.transformer import moe File “/home/samsat2/.local/lib/python3.6/site-packages/mesh_tensorflow/transformer/init.py”, line 23, in import mesh_tensorflow.transformer.dataset File “/home/samsat2/.local/lib/python3.6/site-packages/mesh_tensorflow/transformer/dataset.py”, line 94, in import tensorflow_datasets as tfds File “/home/samsat2/.local/lib/python3.6/site-packages/tensorflow_datasets/init.py”, line 43, in from tensorflow_datasets.core import tf_compat File “/home/samsat2/.local/lib/python3.6/site-packages/tensorflow_datasets/core/init.py”, line 22, in tf_compat.ensure_tf_install() File “/home/samsat2/.local/lib/python3.6/site-packages/tensorflow_datasets/core/tf_compat.py”, line 63, in ensure_tf_install "This version of TensorFlow Datasets requires TensorFlow " ImportError: This version of TensorFlow Datasets requires TensorFlow version >= 2.1.0; Detected an installation of version 1.15.4. Please upgrade TensorFlow to proceed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/policies/ensemble.py”, line 318, in from_dict constr_func = registry.policy_from_module_path(policy_name) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/registry.py”, line 24, in policy_from_module_path raise ImportError(f"Cannot retrieve policy from path ‘{module_path}’") ImportError: Cannot retrieve policy from path ‘MemoizationPolicy’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/samsat2/.local/bin/rasa”, line 8, in sys.exit(main()) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/main.py”, line 76, in main cmdline_arguments.func(cmdline_arguments) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/cli/scaffold.py”, line 195, in run init_project(args, path) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/cli/scaffold.py”, line 113, in init_project print_train_or_instructions(args, path) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/cli/scaffold.py”, line 50, in print_train_or_instructions args.model = rasa.train(domain, config, training_files, output) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/train.py”, line 46, in train kwargs=kwargs, File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/train.py”, line 97, in train_async kwargs, File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/train.py”, line 182, in _train_async_internal kwargs=kwargs, File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/train.py”, line 217, in _do_training kwargs=kwargs, File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/train.py”, line 354, in _train_core_with_validated_data kwargs=kwargs, File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/train.py”, line 43, in train policies = config.load(policy_config) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/config.py”, line 28, in load return PolicyEnsemble.from_dict(config_data) File “/home/samsat2/.local/lib/python3.6/site-packages/rasa/core/policies/ensemble.py”, line 326, in from_dict “”.format(policy_name) rasa.core.policies.ensemble.InvalidPolicyConfig: Module for policy ‘MemoizationPolicy’ could not be loaded. Please make sure the name is a valid policy."

Does anyone know what could be causing this issue? I’m using Tensorflow1.15.4+nv20.12 and python 3.6, so I’m not too sure what’s causing this issue.

Nevermind, I have fixed this error. It turns out this was due to me using a version of Tensorflow Datasets that was too recent. I switched to Tensorflow Datasets version 3.2.1 and now it is working fine :slight_smile:

@abb That’s great! Congratulations. I’d still encourage to install rasa latest version.

@nik202 If there is a way to install the latest rasa version on Jetson Nano, I’d be more than happy too! At the moment though I’m not sure if it is possible, as Rasa 2.x requires tensorflow-addons, which I don’t think is available on Jetson Nano.

@abb Oh, I see NVIDIA Jetson Nano what is your configuration?

@nik202 I’m not sure exactly what you mean by configuration, but here is my pip list if that helps:

Package Version


absl-py 0.10.0 aiofiles 0.7.0 aiohttp 3.7.4.post0 APScheduler 3.7.0 apt-clone 0.2.1 apturl 0.5.2 asn1crypto 0.24.0 astor 0.8.1 astunparse 1.6.3 async-generator 1.10 async-timeout 3.0.1 attrs 21.2.0 beautifulsoup4 4.6.0 bidict 0.21.2 blinker 1.4 boto3 1.18.12 botocore 1.21.12 Brlapi 0.6.6 bz2file 0.98 cachetools 4.2.2 certifi 2018.1.18 chardet 3.0.4 charset-normalizer 2.0.4 click 8.0.1 cloudpickle 1.2.2 colorclass 2.2.0 coloredlogs 10.0 colorhash 1.0.3 ConfigArgParse 1.5.1 contextvars 2.4 cryptography 2.1.4 cupshelpers 1.0 cycler 0.10.0 dataclasses 0.8 decorator 5.0.9 defer 1.0.6 dill 0.3.4 distro-info 0.18ubuntu0.18.04.1 dnspython 1.16.0 docopt 0.6.2 dopamine-rl 3.0.1 fbmessenger 6.0.0 feedparser 5.2.1 Flask 2.0.1 flatbuffers 1.12 future 0.18.2 futures 3.1.1 gast 0.2.2 gevent 1.5.0 gin-config 0.4.0 google-api-core 1.31.1 google-api-python-client 2.15.0 google-auth 1.10.1 google-auth-httplib2 0.1.0 google-auth-oauthlib 0.4.5 google-pasta 0.2.0 googleapis-common-protos 1.53.0 graphsurgeon 0.4.5 greenlet 1.1.0 grpcio 1.34.1 gunicorn 20.1.0 gym 0.14.0 h11 0.8.1 h2 3.2.0 h5py 2.10.0 hpack 3.0.0 hstspreload 2021.8.1 html5lib 0.999999999 httplib2 0.19.1 httptools 0.2.0 httpx 0.9.3 humanfriendly 9.2 hyperframe 5.2.0 idna 2.6 idna-ssl 1.1.0 immutables 0.15 importlib-metadata 4.6.3 importlib-resources 5.2.2 itsdangerous 2.0.1 Jetson.GPIO 2.0.16 Jinja2 3.0.1 jmespath 0.10.0 jsonpickle 1.5.2 jsonschema 3.2.0 kafka-python 1.4.7 Keras-Applications 1.0.8 keras-nightly 2.5.0.dev2021032900 Keras-Preprocessing 1.1.2 keyring 10.6.0 keyrings.alt 3.0 kfac 0.2.0 kiwisolver 1.3.1 language-selector 0.1 launchpadlib 1.10.6 lazr.restfulclient 0.13.5 lazr.uri 1.0.3 louis 3.5.0 lxml 4.2.1 macaroonbakery 1.1.3 Mako 1.0.7 Markdown 3.3.4 MarkupSafe 2.0.1 matplotlib 3.3.4 mattermostwrapper 2.2 mesh-tensorflow 0.1.19 mock 3.0.5 mpmath 1.2.1 multidict 4.6.1 networkx 2.3 numpy 1.18.5 oauth 1.0.1 oauth2client 4.1.3 oauthlib 3.1.1 onboard 1.4.1 opencv-python 4.4.0.46 opt-einsum 3.3.0 packaging 19.2 PAM 0.4.2 pandas 0.22.0 pbr 5.6.0 pika 1.0.1 Pillow 8.2.0 pip 21.2.2 promise 2.3 prompt-toolkit 2.0.10 protobuf 3.17.3 psycopg2-binary 2.8.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybind11 2.7.0 pycairo 1.16.2 pycrypto 2.6.1 pycups 1.9.73 pydot 1.4.2 pyglet 1.3.2 PyGObject 3.26.1 PyICU 1.9.8 PyJWT 1.7.1 pykwalify 1.7.0 pymacaroons 0.13.0 pymongo 3.12.0 PyNaCl 1.1.2 pyparsing 2.4.7 pypng 0.0.20 pyRFC3339 1.0 pyrsistent 0.18.0 python-apt 1.6.5+ubuntu0.3 python-crfsuite 0.9.7 python-dateutil 2.8.2 python-debian 0.1.32 python-engineio 4.2.1 python-socketio 5.4.0 python-telegram-bot 11.1.0 pytz 2019.3 pyxattr 0.6.0 pyxdg 0.25 PyYAML 3.12 questionary 1.4.0 rasa 1.5.0 rasa-sdk 1.5.2 redis 3.3.11 requests 2.26.0 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 requests-unixsocket 0.1.5 rfc3986 1.5.0 rocketchat-API 0.6.36 rsa 4.0 ruamel.yaml 0.15.100 s3transfer 0.5.0 sanic 19.12.2 Sanic-Cors 0.9.9.post1 sanic-jwt 1.5.0 Sanic-Plugins-Framework 0.9.5 scikit-learn 0.20.4 scipy 1.5.4 SecretStorage 2.3.1 setuptools 57.4.0 simplejson 3.13.2 six 1.15.0 sklearn-crfsuite 0.3.6 slackclient 1.3.2 sniffio 1.2.0 SQLAlchemy 1.3.12 ssh-import-id 5.7 sympy 1.8 system-service 0.3 systemd-python 234 tabulate 0.8.9 tensor2tensor 1.14.0 tensorboard 1.15.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 tensorflow 1.15.4+nv20.12 tensorflow-datasets 3.2.1 tensorflow-estimator 1.15.1 tensorflow-gan 2.0.0 tensorflow-hub 0.12.0 tensorflow-metadata 1.2.0 tensorflow-probability 0.7.0 tensorrt 7.1.3.0 termcolor 1.1.0 terminaltables 3.1.0 testresources 2.0.1 tqdm 4.62.0 twilio 6.62.1 typeguard 2.12.1 typing-extensions 3.7.4.3 tzlocal 2.1 ubuntu-drivers-common 0.0.0 uff 0.6.9 ujson 4.0.2 unity-scope-calculator 0.1 unity-scope-chromiumbookmarks 0.1 unity-scope-colourlovers 0.1 unity-scope-devhelp 0.1 unity-scope-firefoxbookmarks 0.1 unity-scope-manpages 0.1 unity-scope-openclipart 0.1 unity-scope-texdoc 0.1 unity-scope-tomboy 0.1 unity-scope-virtualbox 0.1 unity-scope-yelp 0.1 unity-scope-zotero 0.1 uritemplate 3.0.1 urllib3 1.26.6 urwid 2.0.1 uvloop 0.14.0 wadllib 1.3.2 wcwidth 0.2.5 webencodings 0.5 webexteamssdk 1.6 websocket-client 0.54.0 websockets 8.1 Werkzeug 2.0.1 wheel 0.36.2 wrapt 1.12.1 xkit 0.0.0 yarl 1.6.3 youtube_dl 2018.3.14 zipp 3.5.0 zope.interface 4.3.2

@abb NVIDIA I was asking

@nik202 Oh yes, it is NVIDIA. Here’s a link to the product page for more info if that helps: NVIDIA Jetson Nano Developer Kit | NVIDIA Developer

@abb Please see this, if this will help you Quick-Installation requirement

Hi abb , can I ask what you did to install it on Jetson nano which is are you using too ? Thanks