Can not build with docker
See original GitHub issueRasa version: 1.0.4 Python version: Tried 3.6 and 3.7 Operating system (windows, osx, …): macOS 10.14.5 Issue:
Hey there!
I just followed the Running Rasa with Docker Guide.
In the Setup Section it says I there should be a models directory, after the command docker run -v $(pwd):/app rasa/rasa init --no-prompt
did its magic. However, there is no models dir. Further, after the core training is done and it comes to the nlu training, a ModuleNotFoundError is thrown (see traceback below). Looks like spaCy has not been installed.
What am I missing?
Greetings from Bremen Nick
Error (including full traceback):
Training NLU model...
Traceback (most recent call last):
File "/usr/local/bin/rasa", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/rasa/__main__.py", line 70, in main
cmdline_arguments.func(cmdline_arguments)
File "/usr/local/lib/python3.6/site-packages/rasa/cli/scaffold.py", line 194, in run
init_project(args, path)
File "/usr/local/lib/python3.6/site-packages/rasa/cli/scaffold.py", line 112, in init_project
print_train_or_instructions(args, path)
File "/usr/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 "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 48, in train
kwargs=kwargs,
File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 143, in train_async
kwargs=kwargs,
File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 196, in _do_training
fixed_model_name=fixed_model_name,
File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 391, in _train_nlu_with_validated_data
config, nlu_data_directory, _train_path, fixed_model_name="nlu"
File "/usr/local/lib/python3.6/site-packages/rasa/nlu/train.py", line 77, in train
nlu_config = config.load(nlu_config)
File "/usr/local/lib/python3.6/site-packages/rasa/nlu/config.py", line 38, in load
return RasaNLUModelConfig(file_config)
File "/usr/local/lib/python3.6/site-packages/rasa/nlu/config.py", line 89, in __init__
from rasa.nlu import registry
File "/usr/local/lib/python3.6/site-packages/rasa/nlu/registry.py", line 31, in <module>
from rasa.nlu.utils.spacy_utils import SpacyNLP
File "/usr/local/lib/python3.6/site-packages/rasa/nlu/utils/spacy_utils.py", line 9, in <module>
from spacy.language import Language
ModuleNotFoundError: No module named 'spacy'
Command or request that led to error:
docker run -v $(pwd):/app rasa/rasa init --no-prompt
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
docker - Can't build Dockerfile - Stack Overflow
docker build -t helloapp . I get the following error error checking context: 'can't stat '/home/aielloine/.docker/helloapp/dockerfiles''.
Read more >Unable to build my docker image
I have a created a project as well as dockerfiles inside it. I'm trying to run it from docker but I keep getting...
Read more >docker build - Docker Documentation
docker build returns a no such file or directory error if the file or directory does not exist in the uploaded context. This...
Read more >docker compose build - Docker Documentation
docker compose build: Services are built once and then tagged, by default as ... --no-rm, Do not remove intermediate containers after a successful...
Read more >How to Fix and Debug Docker Containers Like a Superhero
Each issue can impact your image builds and final applications. Some bugs may not trigger clear error messages. To further complicate things ...
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 FreeTop 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
Top GitHub Comments
Just tagged a new 1.0.5 release which should be available once travis finishes building the package.
Yes it is, thanks for catching this - I’ll fix it and create a patch.