0

So I have a program that I want to compile, it does use functions imported from some of my other programs, so I am not sure if I need to compile all of the programs containing all of my functions, but I tried a simple hello.py program to test and I have used both py2exe and pyinstaller. I get these errors when using pyinstaller:

File "C:\Users\rohan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
    raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'The file cannot be accessed by the system.')

and this when I use py2exe [using a setup.py]

C:\Users\rohan>python setup.py py2exe
running py2exe

  3 missing Modules
  ------------------
? _posixshmem                         imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
? readline                            imported from cmd, code, pdb
? test                                imported from multiprocessing.util
Building 'dist\hello.exe'.
error: [WinError 87] The parameter is incorrect.

I think there might be a problem with O.S? I have tried playing around with path and giving my account full permissions but I still get these errors.

petshop.py
  • 13
  • 3

0 Answers0