No Module Named Pyinstaller

Posted on by admin
No Module Named Pyinstaller 5,8/10 6231 reviews
  1. Pyinstaller Missing Module
  2. Python Error No Module Named

My goal is to build an executable using pyinstaller. The python script I am trying to build imports grpc. The following is an example that illustrates the. I try to compile a Python project under Windows 7 using PyInstaller. The project works fine, there are no issues, however when I try to compile it the result doesn't work. Though I get no warnings.

I am trying to package my python script into an executable. I thought I would be pretty straight forward as I don't have very many imports. First off here are my imports:

I know for a fact that numpy is supported I'm not sure about __future__ or os and I know for sure that netCDF4 and progressbar are not supported. I am using pyinstaller version 2.1 on Python 2.7.7 for Windows 7, and here is the command I use to start creating .exe:

Here is a list of errors. There seems to be one major problem with not being able to find the module pywintypes.dll, as well as two assemblies related to amd64_Microsoft. Here is a list of the 4 errors I get. How can I go about solving these?

And here are the warnings I get that may or may not be relevent and are both related to not being able to find ctypes

The good news is that its seems the third party modules are being accounted for however I am not sure if they are associated with the errors that I am gettting:

pbreachpbreach

7 Answers

I just copied the DLL pywintypes27.dll in C:Python27Libsite-packagespywin32_system32.
I added it in win32/lib.

It's OK!

LemayzeurLemayzeur

I had the same problem. The dll, pywintypes27.dll was in C:Python27Libsite-packagespywin32_system32. I added this directory to my PATH environment variable and py2exe was able to find the DLL. Obviously, setting the path is not the correct solution (and you could possibly do it programatically via os.environ), but, works for me.

Lee KamentskyLee Kamentsky

Solution to prob 2. The solution in the link below solved the issue for me :)

With pywin32 build 219 installed via conda on python 2.7, importing pythoncom fails with

The issue is that the library pywintypes27.dll is stored not in

pathtovenvlibsite-packageswin32libpywintypes27.dll

but in

pathtovenvlibsite-packageswin32pywintypes27.dll

Adding in the file win32libpywintypes.py the elif part herebelow solves the issue

:::python

The T100 SMG was a Japanese sub machine-gun produced during the Second World War. Two versions were made, the earlier T100/40 was excessively. Airsoft type 100 smg. Aug 13, 2009 - Sub-Machine guns. Type 100/40 and Type 100/44 (Nambu Type III B Machine pistol) Image Used by:. Products 1 - 16 of 16 - APS Action Combat Carbine Complete Gas Blowback Airsoft Compact SMG Rifle (Model: Black Full Auto with Mini Mock Suppressor). Mar 4, 2016 - Found this in a Facebook group. Looks like Japanese re-enactors for WWII will now get a semi-decent GBB SMG to play with. *desire to Banzai.

Pyinstaller Missing Module

In short terms it looks like pywintypes27.dll is located in the wrong folder

NautiliusNautilius

I was using a virtual env and had the same problem. The pywintypes35.dll was missing. This was my solution:

karlJkarlJ

Not sure if you're still looking for help on this.

Errors 1 and 3 look like the same error. This SO question pointed me in the right direction. Essentially, install the MS VC++ 9.0 x64 redistribution package, and that should take care of those errors.

Error 2 appears to have been taken care of by following Lee's suggestion.

Python Error No Module Named

Error 4 is because, for some reason, PyInstaller stuck some empty file names in your binary list. I'm not sure if there's a less-hacky way to fix the error, but I was able to get around it by putting

after the Analysis( .. ) block in my spec file.

I'm not sure if the library python%s%s required via ctypes not found warnings are relevant. They're awfully suspicious, but I went down a rabbit hole trying to figure out where those warnings were generated and only succeeded in wasting about two hours of my evening.

No Module Named Pyinstaller
Community
Tim SupinieTim Supinie

You should run post-install script for the pywin32 extensions with a '-install' parameter, to ensure the environment is setup correctly.

pywin32_postinstall.py -install

NiyazNiyaz

I had a similar problem:

My mistake was that I installed pywin32 via pip for user

So the needed DLLs were in user's AppData: %appdata%PythonPython27site-packagesThat's why pywin32_postinstall.py couldn't find them.

Re-installing without --user option helped.

flam3flam3

Not the answer you're looking for? Browse other questions tagged pythonexepyinstaller or ask your own question.