charlesq34 / pointnet2

PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space
Other
3.17k stars 902 forks source link

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

Open wowords opened 1 year ago

wowords commented 1 year ago

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!