pointnet.pytorch icon indicating copy to clipboard operation
pointnet.pytorch copied to clipboard

OSError: no file with expected extension

Open mxg007 opened this issue 7 years ago • 7 comments

Traceback (most recent call last): File "C:/Users/123456/Desktop/PointNet/pointnet_pytorch-master_lingzhang1/show3d_balls.py", line 19, in dll=np.ctypeslib.load_library('render_balls_so','.') File "F:\anaconda1\lib\site-packages\numpy\ctypeslib.py", line 155, in load_library raise OSError("no file with expected extension") OSError: no file with expected extension

mxg007 avatar Nov 11 '18 14:11 mxg007

I have meet the same problem. Have you solved it?

feifeiwei avatar Apr 28 '19 01:04 feifeiwei

I solved the problem by changing dll=np.ctypeslib.load_library('render_balls_so','.') into dll = np.ctypeslib.load_library('render_balls_so.so', '.')

AlphaPav avatar Feb 10 '20 09:02 AlphaPav

I solved the problem by changing dll=np.ctypeslib.load_library('render_balls_so','.') into dll = np.ctypeslib.load_library('render_balls_so.so', '.')

same problem here and the above workaround doesn't seem to work for me. maybe the issue is that I'm trying to run the code on google colab, but I can't be sure.

cheulyop avatar Feb 27 '20 12:02 cheulyop

I solved the problem by changing dll=np.ctypeslib.load_library('render_balls_so','.') into dll = np.ctypeslib.load_library('render_balls_so.so', '.')

Thanks a lot!!!

yuan-zm avatar Aug 21 '20 08:08 yuan-zm

我通过dll=np.ctypeslib.load_library('render_balls_so','.')改成解决了这个问题dll = np.ctypeslib.load_library('render_balls_so.so', '.')

我用此方法试过了,可是我这里行不通

zsl4399 avatar Sep 06 '21 09:09 zsl4399

I solved the problem by changing dll=np.ctypeslib.load_library('render_balls_so','.') into dll = np.ctypeslib.load_library('render_balls_so.so', '.')

I've tried this on windows and it's been impossible. But I tried this solution on linux and it worked immediately.

FandosA avatar Nov 30 '21 17:11 FandosA

I solved the problem by changing dll=np.ctypeslib.load_library('render_balls_so','.') into dll = np.ctypeslib.load_library('render_balls_so.so', '.')

I've tried this on windows and it's been impossible. But I tried this solution on linux and it worked immediately.

try to use absolute path like "home/xxx/pointnet.pytorch/utils/" instead of '.'

AIllIll avatar Jan 13 '22 18:01 AIllIll