-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS7 编译后执行出错 #10
Comments
同一目录必须存在ctp官方提供的两个so库文件
…Sent from my Mi phone
On archerhu77 <notifications@github.com>, Jan 29, 2019 3:43 PM wrote:
CentOS7
用python3 setup.py build
python3 setup.py install
编译安装成功
但是在测试python3 test_PyCTP.py的时候报错:
ImportError: /usr/lib64/python3.6/site-packages/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#10>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADqPf9PWCPB8Jj4t0FCvy_oScZSZq6T3ks5vH_u8gaJpZM4aXeC->.
|
有的 [scripts-3.6]$ ll 不过一样出错 |
PyCTP.cpython-36m-x86_64-linux-gnu.so<http://64-linux-gnu.so> 这个文件也在ctp库同一路径么? 只要这三个文件都在同目录, test,文件也在同一目录,按说不应该存在找不到符号定义才对。毕竟你都编译成功了,要是库有问题编译就会失败。
…Sent from my Mi phone
On archerhu77 <notifications@github.com>, Jan 29, 2019 4:09 PM wrote:
有的
[scripts-3.6]$ ll
total 4548
-rw-r--r--. 1 root root 1609512 Jan 29 15:46 libthostmduserapi.so
-rw-r--r--. 1 root root 3012577 Jan 29 15:46 libthosttraderapi.so
-rwxr-xr-x. 1 root root 30522 Jan 29 15:40 test_PyCTP.py
[scripts-3.6]$ python3 test_PyCTP.py
Traceback (most recent call last):
File "test_PyCTP.py", line 10, in
import PyCTP
ImportError: /usr/lib64/python3.6/site-packages/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv
不过一样出错
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADqPfy95mP6jvapu9N-AKEGA-90pAGqeks5vIAHTgaJpZM4aXeC->.
|
我把您说的文件也拷贝到这个目录了,但是也不行,把所有.so都变成可执行也不行 [scripts-3.6]$ chmod +x *.so |
奇怪了,我手里没有centos 7,py36环境,一直用的是py34, centos7, 但不应该如此才对,只要编译能过,就不应该找不到链接符号。编译过程确定没有出现异常报错么?
…Sent from my Mi phone
On archerhu77 <notifications@github.com>, Jan 29, 2019 4:46 PM wrote:
我把您说的文件也拷贝到这个目录了,但是也不行,把所有.so都变成可执行也不行
[scripts-3.6]$ chmod +x *.so
[scripts-3.6]$ ll
total 6784
-rwxr-xr-x. 1 root root 1609512 Jan 29 15:46 libthostmduserapi.so
-rwxr-xr-x. 1 root root 3012577 Jan 29 15:46 libthosttraderapi.so
-rwxr-xr-x. 1 root root 2285776 Jan 29 16:45 PyCTP.cpython-36m-x86_64-linux-gnu.so
-rwxr-xr-x. 1 root root 30522 Jan 29 15:40 test_PyCTP.py
[scripts-3.6]$ python3 test_PyCTP.py
Traceback (most recent call last):
File "test_PyCTP.py", line 10, in
import PyCTP
ImportError: /root/PyCTP/build/scripts-3.6/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADqPf5WO3aLWzA1-BTghQPYmwxtnpuHpks5vIApogaJpZM4aXeC->.
|
编译没有出错,我这台还是干净的CentoOS7 |
我搞了好多天,还是没能解决问题 |
有没有办法直接跟您沟通DEBUG? |
我qq, 383193853<tel:383193853> 这几天过年有点忙,几天后我看看
…Sent from my Mi phone
On archerhu77 <notifications@github.com>, Feb 9, 2019 3:14 PM wrote:
有没有办法直接跟您沟通DEBUG?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADqPfxk9SyBTDn5OPgpErgBt_tJRx_9zks5vLnU4gaJpZM4aXeC->.
|
383193853 被大量群众举报。。。。。 这个啥意思? |
举报?不明白,pyctp开源不收费的啊,也没任何衍生服务收费。
…Sent from my Mi phone
On lbrein <notifications@github.com>, Jun 13, 2019 6:52 PM wrote:
383193853 被大量群众举报。。。。。 这个啥意思?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#10?email_source=notifications&email_token=AA5I6744LN6MNTJWFYPSRBDP2IRFZA5CNFSM4GS54C7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXTJ5KA#issuecomment-501653160>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA5I677PDJA3EID65E2KS4DP2IRFZANCNFSM4GS54C7A>.
|
加你的qq的时候,显示的信息.... |
15810106883
…------------------ 原始邮件 ------------------
发件人: "lbrein"<notifications@github.com>;
发送时间: 2019年6月14日(星期五) 下午2:06
收件人: "shizhuolin/PyCTP"<PyCTP@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: Re: [shizhuolin/PyCTP] CentOS7 编译后执行出错 (#10)
加你的qq的时候,显示的信息....
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
CentOS7
用python3 setup.py build
python3 setup.py install
编译安装成功
但是在测试python3 test_PyCTP.py的时候报错:
ImportError: /usr/lib64/python3.6/site-packages/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv
The text was updated successfully, but these errors were encountered: