Comments (13)
@XufengLi 可以给出更详细错误说明吗
from familia.
@lianrzh 链接超时
`[xufeng@host-172-16-11-125 Familia-master]$ sh build.sh
rm -rf glog-0.3.4.tar.gz glog-0.3.4
wget --no-check-certificate http://raw.githubusercontent.com/ZeyuChen/third_party/master/package//glog-0.3.4.tar.gz && tar -zxf glog-0.3.4.tar.gz
--2017-10-10 11:39:46-- http://raw.githubusercontent.com/ZeyuChen/third_party/master/package//glog-0.3.4.tar.gz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.76.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:80... fai led: Connection timed out.
Retrying.
--2017-10-10 11:41:55-- (try: 2) http://raw.githubusercontent.com/ZeyuChen/third_party/mast er/package//glog-0.3.4.tar.gz
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:80...
`
from familia.
@XufengLi 这个应该是你机器网络的问题,我这边试了,可以正常下载
from familia.
@lianrzh OK,那我再试一试
from familia.
@lianrzh 确实是我的linux服务器的原因,服务器不能上网,请问有本地安装的版本或者方法吗?
from familia.
@XufengLi 可以本地下载对应需要的package,然后再上传到服务器,对应去掉wget的命令即可
from familia.
@lianrzh 安装包都弄好了,就是编译的最后一部生成familia.so文件时会报错,也没生成so文件,这是什么原因?
编译代码:
python/demo/familia.so: python/cpp/familia_wrapper.cpp familia
报错信息:
g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/local/python3/include/python3.6m -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -c python/cpp/familia_wrapper.cpp -o python/cpp/familia_wrapper.o python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_slots’ [-Wmissing-field-initializers] }; ^ python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_traverse’ [-Wmissing-field-initializers] python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_clear’ [-Wmissing-field-initializers] python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_free’ [-Wmissing-field-initializers] g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/local/python3/include/python3.6m -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -shared python/cpp/familia_wrapper.o -L/data00/xufeng/Familia-master/third_party/lib -L/usr/local/python3/lib -L./build/ -lfamilia -lprotobuf -lglog -lgflags -lpython3.6m -o python/demo/familia.so /usr/bin/ld: /usr/local/python3/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/python3/lib/libpython3.6m.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [python/demo/familia.so] Error 1
`
from familia.
from familia.
@XufengLi 这一部分是生成python库,根据错误提示应该链接你本地机器的libpython错误,需要你找到本地的路径,对应修改这句命令中的-l$(PYTHON_VERSION)
from familia.
@lianrzh 我找了下路径是对的,错误中提示的是 could not read symbols:不能读取符号,不知道是什么原因
from familia.
@lianrzh 你好,实在是自己解决不了,又来问您了。我在路径下放了libpython.a, 但是提示总是找不到这个库。
cc1plus: warning: /usr/local/python3/include/libpython3.6m.a: not a directory [enabled by default]
python/cpp/familia_wrapper.cpp:5:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
make: *** [python/demo/familia.so] Error 1
from familia.
@XufengLi 通过上面的错误提示,是没有正确链接到你机器的libpython,建议你搜索一下你本地的libpython地址,然后链接上去,例如上面提到的could not read symbols:不能读取符号
问题,这种大多跟编译器版本相关,这种错误可以通过搜索找到对应的解决方法。
from familia.
问题已解决,贴上解决方法。 在linux安装依赖于python包时,报错libpython.a: conld not read symbols - CSDN博客
from familia.
Related Issues (20)
- wiki: 《语义匹配应用介绍》 里的图片都不显示了 HOT 2
- 为什么执行了bulid.sh HOT 1
- python下运行,报Fatal Python error: PyThreadState_Get: no current thread HOT 1
- 运行build.sh提示Command not found HOT 1
- compile error at Makefile command line 编译错误 HOT 3
- 你好。我想问下familia在输入文本预测主题时的分词是直接采用vocab.txt的词表进行匹配分词的吗 HOT 2
- ModuleNotFoundError: No module named 'familia' HOT 5
- 可以用私有数据集训练、增量训练吗 HOT 1
- Does Familia support the training of topic models? HOT 3
- 涉及到paddle的版本是真的垃圾啊 HOT 1
- paddlepaddle版本slda模型出现错误,无法加载词表
- sh build.sh失败 HOT 2
- 请问你们预处理的stopwords词表是百度发布的那个词表还是另外的呢?可以分享一下吗谢谢! HOT 1
- SLDA模型效果评估
- 使用slda输出为空
- 请问可以自定义停用词表吗?
- 如何自己训练模型? HOT 1
- sentence lda能否推断每个句子的主题?
- ubuntu 编译出错 HOT 1
- from familia_wrapper import InferenceEngineWrapper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from familia.