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

32 vs 64bit ? OSError: [WinError 193] %1 is not a valid Win32 application #3

Open
JarmoAlander opened this issue Dec 6, 2023 · 0 comments

Comments

@JarmoAlander
Copy link

I have downloaded the package but when running it I get the following error message:
OSError: [WinError 193] %1 is not a valid Win32 application
If I understand it right there is a mix of 32/64 bit software somewhere.
I have uninstalled 64bit Python but the problems might still be the Tkinter.

Here the complete error log:
PS C:\Users\Jarmo\Python_stuff> python ftl2cGui.py
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\tkinter_init_.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\Jarmo\Python_stuff\ftl2cGui.py", line 35, in open
ft.open_ftlib()
File "C:\Users\Jarmo\Python_stuff\ft.py", line 12, in open_ftlib
ftlib = FTlib("lib/LibFT260.dll")
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jarmo\Python_stuff\ft_function.py", line 11, in init
self.ftlib = windll.LoadLibrary(libpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\ctypes_init
.py", line 454, in LoadLibrary
return self.dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\ctypes_init
.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application

I reinstalled Python (32bit) and it is said that TKinter will come with it.
However, it does not seem to do that...

So what to do?

Sincerely yours,
Jarmo Alander

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

1 participant