Skip to content

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

Description

@wowords

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions