caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

Fatal Python error: PyThreadState_Get: no current thread

Open vingovan opened this issue 9 years ago • 10 comments

I run "python -c 'from caffe2.python import core'" but i get error: Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6 Thanks.

vingovan avatar Apr 22 '17 08:04 vingovan

Seem, there is many different python, so i got that error.

vingovan avatar Apr 22 '17 09:04 vingovan

Check the troubleshooting info at the bottom of the install page. Take a look at PYTHONPATH. Try doing export PYTHONPATH=/usr/bin Or if that doesn't work, point it to caffe2's build folder. If that doesn't work you may have installed to a different python. Ways to solve this is to use Python environments, or eradicate all other Pythons, then reinstall.

aaronmarkham avatar Apr 22 '17 14:04 aaronmarkham

Yes, I removed one of them. I used caffe2. Thank you.

vingovan avatar Apr 22 '17 15:04 vingovan

@ViNgoVan hi,how you sloved this,I met the same.

walter211 avatar Apr 26 '17 09:04 walter211

Same issue, I install from official site prebuild binary of macOS, Caffe2-0.7.0-cp27-cp27m-macosx_10_12_x86_64.whl, maybe this is build with GPU? My mac has only CPU.

lucasjinreal avatar Jun 11 '17 03:06 lucasjinreal

same issue here, and same question with @jinfagang

ShangxuanWu avatar Jul 12 '17 19:07 ShangxuanWu

Same thing here. I'm using a virtual-env running Python 2.7.13.´, which is recommended by the install page. Running on MacOS 10.12 and installed the prebuild binary via pip install.

Can't even import core from caffe2.python.

j-holub avatar Jul 17 '17 14:07 j-holub

I given up, try using directly from C++.

lucasjinreal avatar Jul 17 '17 14:07 lucasjinreal

That's too bad. I mean I like C++ as well but it just shouldn't be that way. I always wonder why every deep learning framework I ever used is such a pain in the butt. TensorFlow too.

j-holub avatar Jul 17 '17 14:07 j-holub

@00SteinsGate00 Pal, you are just saying into my deep heart, so many deep learning framework are so mess at least in building networks, I quiet like keras which let you only take attention on design networks rather than meaningless abstraction stuff. May be keras is what we should stick

lucasjinreal avatar Jul 18 '17 01:07 lucasjinreal