`rasa init` breaks on Linux when you try to train a model in 3.0.0rc01
See original GitHub issueI just installed Rasa on a new gitpod instance. You can see the versions below.
> python -m rasa --version
Rasa Version : 3.0.0rc1
Minimum Compatible Version: 2.8.9
Rasa SDK Version : 3.0.0rc1
Rasa X Version : None
Python Version : 3.7.12
Operating System : Linux-5.4.0-1051-gke-x86_64-with-debian-11.0
Python Path : /usr/local/bin/python
When I now run rasa init
hereβs what I see;
> python -m rasa init
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Rasa Open Source reports anonymous usage telemetry to help improve the product β
β for all its users. β
β β
β If you'd like to opt-out, you can use `rasa telemetry disable`. β
β To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry. β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Welcome to Rasa! π€
To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.
Now let's start! ππ½
? Please enter a path where the project will be created [default: current directory] rasa-ini
? Path 'rasa-ini' does not exist π§. Create path? Yes
Created project directory at '/workspace/rasa-examples/rasa-ini/rasa-ini'.
Finished creating project structure.
? Do you want to train an initial model? πͺπ½ Yes
Training an initial model...
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/__main__.py", line 139, in <module>
main()
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/__main__.py", line 121, in main
cmdline_arguments.func(cmdline_arguments)
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 238, in run
init_project(args, path)
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 132, in init_project
print_train_or_instructions(args)
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 68, in print_train_or_instructions
create_output_path(),
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/api.py", line 103, in train
from rasa.model_training import train
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/model_training.py", line 16, in <module>
import rasa.engine.validation
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/engine/validation.py", line 20, in <module>
from rasa.core.policies.policy import PolicyPrediction
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/core/policies/policy.py", line 26, in <module>
from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/core/featurizers/tracker_featurizers.py", line 12, in <module>
from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/core/featurizers/single_state_featurizer.py", line 7, in <module>
from rasa.nlu.extractors.extractor import EntityTagSpec
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/nlu/extractors/extractor.py", line 30, in <module>
import rasa.utils.train_utils
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/utils/train_utils.py", line 32, in <module>
from rasa.utils.tensorflow.callback import RasaTrainingLogger, RasaModelCheckpoint
File "/workspace/.pip-modules/lib/python3.7/site-packages/rasa/utils/tensorflow/callback.py", line 5, in <module>
import tensorflow as tf
File "/workspace/.pip-modules/lib/python3.7/site-packages/tensorflow/__init__.py", line 438, in <module>
_ll.load_library(_main_dir)
File "/workspace/.pip-modules/lib/python3.7/site-packages/tensorflow/python/framework/load_library.py", line 154, in load_library
py_tf.TF_LoadLibrary(lib)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.7/site-packages/tensorflow/core/kernels/libtfkernel_sobol_op.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb
Seems like a Tensorflow issue.
> python -m pip freeze | grep tensor
tensorflow==2.6.1
tensorflow-addons==0.14.0
tensorflow-estimator==2.6.0
tensorflow-text==2.6.0
I tried downgrading to tensorflow 2.6.0, but to no avail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Rasa init fails - Rasa Open Source - Rasa Community Forum
Command rasa init fails with below error. ... it's setup questions, just say no when it asks, βDo you want to train an...
Read more >Face many issues to rasa initialization rasa init --no-prompt
I knew, its duplicate question, but I can't find the way to solve my issue. I tried, tensorflow all versions. Python 3.6.8 tensorflow...
Read more >Training Rasa bot v3 full model on Colab and run it locally
So what I plan to do is to train the model on Google Colab free GPU and download the trained model/files to desktop,...
Read more >Using HumanFirst Studio to bootstrap Rasa projects from real ...
In this article we'll see how to use HumanFirst in order to create a Rasa bot from scratch without having to come up...
Read more >Conversational AI with Rasa: Training Data and Rules
In this episode of Conversational AI with Rasa, Dr. Rachael Tatman walks you through how to set up your training data and rules...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Adding this slack comment for posterity:
So I think this problem is specifically related to the fact that we are updating rasa from inside and old docker container. Itβs also an error from tensorflow, as just running import tensorflow from within a python interpreter causes the error to be thrownβ¦ Iβm still not exactly sure what is causing it as itβs hard to replicate outside of that one prebuilt gitpod container. I have created a fork of the repo where the docker file explicitly installs 3.0.0rc3 and everything works ok - so itβs not an issue with Rasa 3.0.0 on Linux per say. I think my suggestion would be to rebuild the prebuild gitpod container once we release 3.0.0.
I just tried running it on gitpod with rc3. Still persists.