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.

Can not build with docker

See original GitHub issue

Rasa 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tmbocommented, Jun 3, 2019

Just tagged a new 1.0.5 release which should be available once travis finishes building the package.

2reactions
tmbocommented, Jun 3, 2019

Yes it is, thanks for catching this - I’ll fix it and create a patch.

Read more comments on GitHub >

github_iconTop 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 >

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