hiddenimports statement in .spec

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

hiddenimports statement in .spec

Parkway
Using json as the example, a hook-json.py is created which contains:

hiddenimports = ['json', 'json.decoder', 'json.encoder', 'json.scanner']

When the .spec file includes:

hiddenimports=['json'],

it results in the error:

ImportError: No module named decoder

If the .spec file includes:

hiddenimports = ['json', 'json.decoder', 'json.encoder', 'json.scanner']

but with only one hook file (hook-json.py), the program works.

Is this behavior correct?

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.