caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

i need your help ,about caffe2_pybind11_state.dll which i dont fount in my package

Open mathCrazyy opened this issue 9 years ago • 10 comments

i install the caffe2, but i was supposed that cannot import caffe2, and i found the following words, To get python to recognize the DLL, rename caffe2_pybind11_state.dll from .dll to .pyb and copy it to Python’s DLL folder $USER\AppData\Local\Continuum\Anaconda2\DLLs. If you’re not using Anaconda, then look for it in your Python27 or python-2713 folder.

but i cannot found the caffe2_pybind11_state.dll,can you help me ,thank you .

mathCrazyy avatar May 28 '17 13:05 mathCrazyy

but i found it in your package....

Directory of C:\Users\sqlpythonadmin\Source\caffe2\build\caffe2\python\Release

04/13/2017 11:56 PM

. 04/13/2017 11:56 PM .. 04/13/2017 11:56 PM 6,567,936 caffe2_pybind11_state.pyd

mathCrazyy avatar May 28 '17 13:05 mathCrazyy

After I successfully built caffe2.sln with VS 2017 Community, it was in <users>\Source\Repos\Python\caffe2\build\caffe2\python\Release. Also, it is already a PYD file, so it does not need to be renamed.

My question is what to do with it? When I put caffe2_pybind11_state.pyd in the my python DLL folder, python does not seem to find it when I import caffe2

rodmanlau avatar Jun 16 '17 20:06 rodmanlau

Same here.

jzchai avatar Jul 04 '17 11:07 jzchai

@rodamn I also find it produce *pyd files directly and failed to import caffe2. So how to solve it ?

PkuRainBow avatar Aug 16 '17 04:08 PkuRainBow

@rodamn @jzchai I find a solution works for me ! Just copy the folder

../caffe2/build/caffe2

to your python lib path. e.g.,

C:\Python27\Lib

PkuRainBow avatar Aug 16 '17 04:08 PkuRainBow

same question. @PkuRainBow your way is not work for me.

xiaoweiChen avatar Oct 12 '17 14:10 xiaoweiChen

Hi, I built caffe2 with 2017 developer command. it built successfully. I didn't find any file with this name caffe2_pybind11_state in all my hard. How can you help me?

HRubaye avatar Feb 18 '18 21:02 HRubaye

@HRubaye Same here, can't figure out why

ljyloo avatar Mar 12 '18 14:03 ljyloo

I didn't find any file with this name caffe2_pybind11_state in all my hard. How can you help me?

wuqr avatar Mar 26 '18 08:03 wuqr

Same problem here, compiled successfully with this msg:

4451 Warning(s)
0 Error(s)

Time Elapsed 00:18:12.56 "Caffe2 built successfully" C:\caffetwo\pytorch\scripts>\

But I cant find the two files, anyone?

caffetwo avatar Apr 10 '18 16:04 caffetwo