Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinError 193] %1 is not a valid win32 application #79

Open
DarkerMinecraft opened this issue Nov 12, 2024 · 1 comment
Open

[WinError 193] %1 is not a valid win32 application #79

DarkerMinecraft opened this issue Nov 12, 2024 · 1 comment

Comments

@DarkerMinecraft
Copy link

I have run through your build process for Visual Studios and I run into this problem.

Traceback (most recent call last):
File "C:\Users\nayon\OneDrive\Desktop\2048-ai\2048.py", line 9, in
from ailib import ailib, to_c_board, from_c_index
File "C:\Users\nayon\OneDrive\Desktop\2048-ai\ailib.py", line 8, in
ailib = ctypes.CDLL(dllfn)
File "C:\Users\nayon.pyenv\pyenv-win\versions\3.13.0\Lib\ctypes_init_.py", line 390, in init
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application

@nneonneo
Copy link
Owner

You might be trying to use a 32-bit DLL with 64-bit Python or vice-versa. See this post for more details: https://stackoverflow.com/questions/19849077/error-loading-dll-in-python-not-a-valid-win32-application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants