question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IMPORT ERROR FROM RASA

See original GitHub issue

hello rasa friends i have a issue , i recently update the rasa how normaly i do when i check the rasa docs web the issue is when i tried to train a bot or activate it, it send me a error what does it say:

C:\Users\capitalminds\Desktop\prueba 3>py -m rasa_core.train interactive -o models/dialogue -d domain.yml -s stories.md Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13/13 [00:00<?, ?it/s, # trackers=1] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13/13 [00:00<00:00, 416.69it/s, # trackers=13] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13/13 [00:00<00:00, 138.65it/s, # trackers=38] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13/13 [00:00<00:00, 138.60it/s, # trackers=30] 2019-03-01 11:46:41.510388: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 Traceback (most recent call last): File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\train.py", line 356, in <module> additional_args) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\train.py", line 328, in do_interactive_learning additional_arguments) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\train.py", line 190, in train_dialogue_model agent.train(training_data, **kwargs) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\agent.py", line 520, in train **kwargs) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\policies\ensemble.py", line 63, in train policy.train(training_trackers, domain, **kwargs) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\policies\keras_policy.py", line 162, in train shuffled_y.shape[1:]) File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\policies\keras_policy.py", line 93, in model_architecture from tensorflow.keras.models import Sequential File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\keras\__init__.py", line 20, in <module> from tensorflow.keras import layers File "C:\Users\capitalminds\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\keras\layers\__init__.py", line 8, in <module> from tensorflow.python.estimator.keras import Layer ImportError: cannot import name 'Layer'

so i really need to fix this error

regards πŸ˜‰

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Robertjbccommented, Mar 14, 2019

iΒ΄ll fix it its a problem from the credentials.yml thanks for yours ansewers

regards πŸ˜‰

0reactions
Robertjbccommented, Mar 13, 2019

let me try it,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot init Rasa Open source after installation due to ...
A similar error pops out when training the initial model. "ImportError: cannot import name 'abort' from 'sanic.exceptions' ". It seems sanicΒ ...
Read more >
cannot import name 'RasaNLUConfig' from 'rasa_nlu.config' in ...
Looks like I was using a newer version of rasa_nlu (0.15.1). The tutorial I was following used 0.11.3. In 0.11.3, RasaNLUConfig was locatedΒ ......
Read more >
Module Not Found Error in Rasa Custom Action Server using ...
I am new to Rasa and Docker. I am trying to build a chatbot using Rasa. I have included some custom actions in...
Read more >
rasa-nlu - PyPI
Rasa NLU a natural language parser for bots. ... If your project is written in Python you can simply import the relevant classes....
Read more >
17.3 Aria ChatBot rasa_train error using RASA 1.8.3.
Issue is specific to using rasa release 1.8.3. As a result of the introduction of this release of Rasa, the backend scripts in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found