I'm trying to make a 1 python file executable. I'm using the command:
> pyinstaller -- -w My_program.py
and I'm getting the error:
>Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\pyinstaller.exe\__main__.py", line 5, in
<module>
File "C:\Python27\lib\site-packages\PyInstaller\__init__.py", line 16, in
<module>
from . import compat
File "C:\Python27\lib\site-packages\PyInstaller\compat.py", line 212, in
<module>
from win32ctypes.pywin32 import pywintypes # noqa: F401
File "C:\Python27\lib\site-packages\win32ctypes\pywin32\__init__.py",
line 11, in <module>
from win32ctypes.pywin32 import win32api
File "C:\Python27\lib\site-packages\win32ctypes\pywin32\win32api.py",
line 12, in <module>
from win32ctypes.core import (
File "C:\Python27\lib\site-packages\win32ctypes\core\__init__.py", line
36, in load_module
module = importlib.import_module(self.redirect_module)
File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\Python27\lib\site-packages\win32ctypes\core\cffi\_dll.py", line
19, in <module>
""")
File "C:\Python27\lib\site-packages\cffi\api.py", line 107, in cdef
self._parser.parse(csource, override=override, packed=packed)
File "C:\Python27\lib\site-packages\cffi\cparser.py", line 167, in parse
self._internal_parse(csource)
File "C:\Python27\lib\site-packages\cffi\cparser.py", line 173, in
_internal_parse
ast, macros, csource = self._parse(csource)
File "C:\Python27\lib\site-packages\cffi\cparser.py", line 130, in _parse
self.convert_pycparser_error(e, csource)
File "C:\Python27\lib\site-packages\cffi\cparser.py", line 159, in
convert_pycparser_error
raise api.CDefError(msg)
cffi.api.CDefError: cannot parse "HMODULE WINAPI LoadLibraryExW(LPCTSTR
lpFileName, HANDLE hFile, DWORD dwFlags);"
:16:16: before: LoadLibraryExW
Am I missing a DLL or something?
Thanks,
Chuck
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/36d6005d-ce1c-4f84-8ce9-c09cc61abcf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.