Skip to content

pyinstaller hidden-imports for spacy deployment (windows) #6210

Answered by rokm
DarkSoliditi asked this question in Help
Discussion options

You must be logged in to vote

When I run
pyinstaller main.py --noconsole and run that everything in my app works except for the spacy functionality. I don't get an error or anything it just hits the spacy lines of code and silently fails.

Can you try building without --noconsole, so you can see if there are any error messages in the console?

I've tried to make a hidden-imports .py file. (code attached) but when I run pyinstaller main.py --additional-hooks-dir=. myhooks.py
it says pyinstaller: error: unrecognized arguments: myhooks.py

If you want to create custom hooks, the naming convention is hook-<modulename>.py, and you need to pass the directory containing the extra hook files to --additional-hooks-dir.

pyins…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@DarkSoliditi
Comment options

@rokm
Comment options

@rokm
Comment options

@rokm
Comment options

@DarkSoliditi
Comment options

Answer selected by DarkSoliditi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants