You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While compiling works the resulting library seems to either not be a valid Windows shared library or the Python wrapper handles something wrong.
When I try to build the Python wheel I first encounter this issue: NotImplementedError: Bundling libraries in wheel is not supported on win32
This seemingly successfully installs the library but when you then try to use the module in a script it results in the following error on import: OSError: [WinError 193] %1 is not a valid Win32 application
At first I thought it was getting the wrong path but even after hardcoding the library path it yields the same error.
The text was updated successfully, but these errors were encountered:
If the meson packaging don't work, you can compile the separately the library and just copy/import the ".py" wrapper.
I think it can also be compiled with MSVC.
There is different calling convention on windows. Perhaps it's the issue.
Can you try try using ctypes.windll, instead of ctype.cdllhere
I don't have windows OS to check.
Sorry, I think I can not help more.
While compiling works the resulting library seems to either not be a valid Windows shared library or the Python wrapper handles something wrong.
When I try to build the Python wheel I first encounter this issue:
NotImplementedError: Bundling libraries in wheel is not supported on win32
Which is fixed by changing the pyprojects.toml to this suggestion: mesonbuild/meson-python#525 (comment)
This seemingly successfully installs the library but when you then try to use the module in a script it results in the following error on import:
OSError: [WinError 193] %1 is not a valid Win32 application
At first I thought it was getting the wrong path but even after hardcoding the library path it yields the same error.
The text was updated successfully, but these errors were encountered: