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

OSError: [WinError 193] %1 is not a valid Win32 application #245

Open
wowords opened this issue Dec 1, 2022 · 0 comments
Open

OSError: [WinError 193] %1 is not a valid Win32 application #245

wowords opened this issue Dec 1, 2022 · 0 comments

Comments

@wowords
Copy link

wowords commented Dec 1, 2022

Hey all!

I tried everything I could, but unfortunately no solution so far, please help if You have any idea what is the issue here.

I am trying to visualize results with show3d_balls.py.

I bashed build.sh and I got the render_balls_so.so file generated. Whenever i try to run show3d_balls.py I get the following results:

File "F:\route\visualizer\show3d_balls.py", line 28, in
dll = np.ctypeslib.load_library(os.path.join(BASE_DIR, 'render_balls_so.so'), '.')
File "C:\Users\User\anaconda3\lib\site-packages\numpy\ctypeslib.py", line 149, in load_library
return ctypes.cdll[libpath]
File "C:\Users\User\anaconda3\lib\ctypes_init_.py", line 453, in getitem
return getattr(self, name)
File "C:\Users\User\anaconda3\lib\ctypes_init_.py", line 448, in getattr
dll = self.dlltype(name)
File "C:\Users\User\anaconda3\lib\ctypes_init
.py", line 378, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1: is not a valid Win32 application

I printed self._name and mode right before the exception:
kernel32
4096

I checked my OS Win 10 is 64bit, the .so file is 64 bit and the whole python environment is 64bit. I deleted all other python environment I had and also the AppData which was recommended in other threads. Already reinsalled Anaconda and all required libraries.
I am using VSCode with Anaconda.

Let me know if You have any idea, thanks for reading this!

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