There are a couple of others.

One is to put the following somewhere in your code:
import pkg_resources.py2_warn
Or to make it work as well with older setuptools versions:
try:
    import pkg_resources.py2_warn
except ImportError:
    pass

A more satisfactory solution would be to use PyInstaller's hooks which tell 
PyInstaller contain the hidden-import='pkg_resources.py2_warn' information. 
The hook for pkg_resources has been updated on github 
<https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-pkg_resources.py>
 
but the changes haven't been released yet. You could upgrade to the 
developer version on Github or you could manually update that file in your 
own installation.

Alternatively you can download that hook file and put it somewhere 
PyInstaller can find it (usually next to your main script).

Brénainn

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/39fde230-b31e-4c7b-ad56-0509da6dbca5%40googlegroups.com.

Reply via email to