You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a chat project with python package 'chatterbot', and it needs package spacy, When I finish installing spacy and run my code in vscode, it works successfully.But is glitches when I package it with pyinstaller,the packaged program just shows a window,The following text is the detail(what shows on the window)
Traceback (most recent call last):
File "basic.py", line 11, in
File "chatterbot\chatterbot.py", line 28, in init
File "chatterbot\utils.py", line 33, in initialize_class
File "chatterbot\storage\sql_storage.py", line 20, in init
File "chatterbot\storage\storage_adapter.py", line 20, in init
File "chatterbot\tagging.py", line 17, in init
File "spacy_init_.py", line 51, in load
File "spacy\util.py", line 467, in load_model
File "spacy\util.py", line 539, in load_model_from_path
File "spacy\util.py", line 587, in load_model_from_config
File "spacy\language.py", line 1889, in from_config
File "spacy\language.py", line 821, in add_pipe
File "spacy\language.py", line 709, in create_pipe
File "confection_init_.py", line 760, in resolve
File "confection_init_.py", line 809, in make
File "confection_init.py", line 864, in fill
File "confection_init.py", line 863, in fill
File "confection_init.py", line 1069, in make_promise_schema
File "spacy\util.py", line 163, in get
catalogue.RegistryError: [E893] Could not find function 'spacy.Tok2Vec.v1' in function registry 'architectures'. If you're using a custom function, make sure the code is available. If the function is provided by a third-party package, e.g. spacy-transformers, make sure the package is installed in your environment.
Available names: spacy.CharacterEmbed.v2, spacy.EntityLinker.v2, spacy.HashEmbedCNN.v2, spacy.MaxoutWindowEncoder.v2, spacy.MishWindowEncoder.v2, spacy.MultiHashEmbed.v2, spacy.PretrainCharacters.v1, spacy.PretrainVectors.v1, spacy.SpanCategorizer.v1, spacy.SpanFinder.v1, spacy.Tagger.v2, spacy.TextCatBOW.v2, spacy.TextCatBOW.v3, spacy.TextCatCNN.v2, spacy.TextCatEnsemble.v2, spacy.TextCatLowData.v1, spacy.TextCatParametricAttention.v1, spacy.TextCatReduce.v1, spacy.Tok2Vec.v2, spacy.Tok2VecListener.v1, spacy.TorchBiLSTMEncoder.v1, spacy.TransitionBasedParser.v2
How can I do to fix it?
The text was updated successfully, but these errors were encountered:
How to reproduce the behaviour
Your Environment
File "basic.py", line 11, in
File "chatterbot\chatterbot.py", line 28, in init
File "chatterbot\utils.py", line 33, in initialize_class
File "chatterbot\storage\sql_storage.py", line 20, in init
File "chatterbot\storage\storage_adapter.py", line 20, in init
File "chatterbot\tagging.py", line 17, in init
File "spacy_init_.py", line 51, in load
File "spacy\util.py", line 467, in load_model
File "spacy\util.py", line 539, in load_model_from_path
File "spacy\util.py", line 587, in load_model_from_config
File "spacy\language.py", line 1889, in from_config
File "spacy\language.py", line 821, in add_pipe
File "spacy\language.py", line 709, in create_pipe
File "confection_init_.py", line 760, in resolve
File "confection_init_.py", line 809, in make
File "confection_init.py", line 864, in fill
File "confection_init.py", line 863, in fill
File "confection_init.py", line 1069, in make_promise_schema
File "spacy\util.py", line 163, in get
catalogue.RegistryError: [E893] Could not find function 'spacy.Tok2Vec.v1' in function registry 'architectures'. If you're using a custom function, make sure the code is available. If the function is provided by a third-party package, e.g. spacy-transformers, make sure the package is installed in your environment.
Available names: spacy.CharacterEmbed.v2, spacy.EntityLinker.v2, spacy.HashEmbedCNN.v2, spacy.MaxoutWindowEncoder.v2, spacy.MishWindowEncoder.v2, spacy.MultiHashEmbed.v2, spacy.PretrainCharacters.v1, spacy.PretrainVectors.v1, spacy.SpanCategorizer.v1, spacy.SpanFinder.v1, spacy.Tagger.v2, spacy.TextCatBOW.v2, spacy.TextCatBOW.v3, spacy.TextCatCNN.v2, spacy.TextCatEnsemble.v2, spacy.TextCatLowData.v1, spacy.TextCatParametricAttention.v1, spacy.TextCatReduce.v1, spacy.Tok2Vec.v2, spacy.Tok2VecListener.v1, spacy.TorchBiLSTMEncoder.v1, spacy.TransitionBasedParser.v2
How can I do to fix it?
The text was updated successfully, but these errors were encountered: