I am trying to get a chatbot in a nordic country going and I seem to have an issue with this command:
docker run -v $PWD:/app spacy-fasttext python -m spacy package model model_package
That throws me the following error.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/site-packages/spacy/main.py", line 33, in
plac.call(commands[command], sys.argv[1:])
File "/usr/local/lib/python2.7/site-packages/plac_core.py", line 367, in call
cmd, result = parser.consume(arglist)
File "/usr/local/lib/python2.7/site-packages/plac_core.py", line 232, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/usr/local/lib/python2.7/site-packages/spacy/cli/package.py", line 48, in package
if key not in meta or meta[key] == "":
UnboundLocalError: local variable 'meta' referenced before assignment
Hey,
I am trying to get a chatbot in a nordic country going and I seem to have an issue with this command:
docker run -v $PWD:/app spacy-fasttext python -m spacy package model model_package
That throws me the following error.
Traceback (most recent call last): File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/site-packages/spacy/main.py", line 33, in
plac.call(commands[command], sys.argv[1:])
File "/usr/local/lib/python2.7/site-packages/plac_core.py", line 367, in call
cmd, result = parser.consume(arglist)
File "/usr/local/lib/python2.7/site-packages/plac_core.py", line 232, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/usr/local/lib/python2.7/site-packages/spacy/cli/package.py", line 48, in package
if key not in meta or meta[key] == "":
UnboundLocalError: local variable 'meta' referenced before assignment
Any idea what can have gone wrong?
Best regards, /Magnus