According to the discussion here: A workaround is to compile the code with the flag: hidden-importpkgresources.py2warn And it actually works.However, I find this to be just an ugly solution and I was wondering whether there is another way to solve this problem Cheers, Thor.
Importerror No Module Named Pyer Code With The![]() One is to put the following somewhere in your code: import pkgresources. The hook for pkgresources has been updated on github but the changes havent been released yet. ![]() Importerror No Module Named Pyer Download That HookAlternatively you can download that hook file and put it somewhere PyInstaller can find it (usually next to your main script). Updating the setuptools and pyinstaller (although I am already having the latest ones). Used try except block with pass to ignore exceptions in pyirthpkgres.py and pyimod03importers.py by taking the reference from one of the post from this forum. Importerror No Module Named Pyer Exe With Dialogflowv2What I assume is that if I comment out the import statement of dialogflowv2 in my script it works fine otherwise if I run the exe with dialogflowv2 import statement, I get below error: File site-packagesPyInstaller loaderrthookspyirthpkgres. Are these not findable on Google Are none of them understandable Do none of them work for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |