0
votes

8 version of python that include pip, pyinstaller, pygame, py2exe. I tried a lot of solutions, after a search in google and this website. I tried to:

  • convert my .py file to exe --> dont sucssed
  • add the path to the enviorment variables --> dont work
  • install pyinstaller from the cmd, and then run the command pyinstaller --onefile -w "myfile.py" --> dont work, the same with work shell
  • install the py2exe from the cmd and then with to convert to exe --> don't work
  • reinstall --> dont work

Everything tells me that the problem is my version(3.8) of python, because this version don't support yet on the pyinstaller(acording to what I read).

cmd Error:

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

work shell Error:

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

After typing the command in cmd nothing happened. After the WorkShell - dist folder created but empty without change my python version what can I do to fix it to get a excutable file of my game?

Thank you

1

1 Answers

0
votes

I'm also a beginner like you, but according to my research you are using python which is downloaded from windows store, which creates permission errors. Try deleting windows store python and download it from the official python website. Source: http://pyinstaller.47505.x6.nabble.com/1920-LoadLibraryExW-The-file-cannot-be-accessed-by-the-system-td2954.html