New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable load spacy with pyintsaller on other system #3592
Comments
Where are you calling And does importing the model as a module work? If it's installed correctly, you should also be able to do the following: import en_core_web_sm
nlp = en_core_web_sm.load() |
i set data path below: & nlp = en_core_web_sm.load() i am able load model with these two commands. Spacy is not able to work in exe mode on other system. |
I think the path is the problem here: The data path should be the path to the data directory, not the model itself: spacy.util.set_data_path('D:/anaconda3/Lib/site-packages/spacy/data') Also, you might want to check out #2536 for more details on spaCy + PyInstaller. |
This issue has been automatically closed because there has been no response to a request for more information from the original author. With only the information that is currently in the issue, there's not enough information to take action. If you're the original author, feel free to reopen the issue if you have or find the answers needed to investigate further. |
Please include this in your py script after sleepless nights i was able to load exe
and in .spec file
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I had created an exe file which works fine on my system but when i try to run on other system i was unable to load the model.
Your Environment
When i run exe in other system in which python is not installed its throws me below error
File "spacy\util.py", line 109, in load_model
OSError: [E049] Can't find spaCy data directory: 'None'. Check your installation and permissions, or use spacy.util.set_data_path to customise the location if necessary.
I had set spacy.util.set_data_path to to data location
In my .spec file i had included below imports:
Any help would be highly appreciated ?
The text was updated successfully, but these errors were encountered: