baidu / Familia

A Toolkit for Industrial Topic Modeling
BSD 3-Clause "New" or "Revised" License
2.64k stars 596 forks source link

python下运行,报Fatal Python error: PyThreadState_Get: no current thread #104

Open 17y opened 4 years ago

17y commented 4 years ago

环境:Mac 10.15 pyenv 3.6.1

执行 build.sh 前将 Makefile 中 PYTHON_PATH 改为 pyenv 对应 python的路径 ~/.pyenv/versions/3.6.1

执行 otool -L python/familia.so

python/familia.so: python/familia.so (compatibility version 0.0.0, current version 0.0.0) /Users/prcheers/Desktop/Familia/third_party/lib/libglog.0.dylib (compatibility version 1.0.0, current version 1.0.0) /Users/prcheers/Desktop/Familia/third_party/lib/libgflags.2.dylib (compatibility version 4.0.0, current version 4.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)

执行任意python demo Fatal Python error: PyThreadState_Get: no current thread

看过 #83 没有解决 T.T

DesmonDay commented 4 years ago

Hello. 建议使用PaddleHub 1.8版本上线的LDA模型,使用起来很方便,也不需要自己配置环境来编译C++版本了。可以看看我们更新之后的README,里面包含了PaddleHub具体的使用例子和安装事项,也可以看这里:https://www.paddlepaddle.org.cn/hublist?filter=en_category&value=SemanticModel