Skip to content
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

哪个linuxDocker安装后在python中运行也出错误提示. #8

Open
zhangshoug opened this issue Jun 3, 2018 · 3 comments
Open

Comments

@zhangshoug
Copy link

root@d427a9d9d289:~# python
Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from hikyuu.interactive.interactive import *
Traceback (most recent call last):
File "", line 1, in
File "/home/fasiondog/hikyuu/tools/hikyuu/init.py", line 56, in
from .core import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core.py", line 34, in
from .core_doc import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core_doc.py", line 28, in
from hikyuu._hikyuu import *
ImportError: libhikyuu.so: cannot open shared object file: No such file or directory
exit
Use exit() or Ctrl-D (i.e. EOF) to exit

root@d427a9d9d289:# find ./ -name libhikyuu.so
./hikyuu/build/hikyuu/gcc-5.4.0/release/libhikyuu.so
./hikyuu/tools/hikyuu/libhikyuu.so
root@d427a9d9d289:
#

@zhangshoug
Copy link
Author

又重新安装了一遍Docker,这次出来下面提示:
root@c8dad2556de1:~# python
Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from hikyuu.interactive.interactive import *
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'hikyuu.interactive'

@zhangshoug
Copy link
Author

zhangshoug commented Jun 3, 2018

在家中Linux机器上Docker安装和非Docker出现如下提示:
root@1d5ef042c91f:~# python
Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from hikyuu.interactive.interactive import *
Traceback (most recent call last):
File "", line 1, in
File "/home/fasiondog/hikyuu/tools/hikyuu/init.py", line 56, in
from .core import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core.py", line 34, in
from .core_doc import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core_doc.py", line 28, in
from hikyuu._hikyuu import *
ImportError: /home/fasiondog/hikyuu/tools/hikyuu/libhikyuu.so: undefined symbol: mysql_num_rows

通过conda install -y mysql-python解决。

@zhangshoug
Copy link
Author

再运行,出现
root@8d6d72eeef09:~# python
Python 2.7.15 |Anaconda custom (64-bit)| (default, May 1 2018, 23:32:55)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from hikyuu.interactive.interactive import *
Traceback (most recent call last):
File "", line 1, in
File "/home/fasiondog/hikyuu/tools/hikyuu/init.py", line 56, in
from .core import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core.py", line 34, in
from .core_doc import *
File "/home/fasiondog/hikyuu/tools/hikyuu/core_doc.py", line 28, in
from hikyuu._hikyuu import *
ImportError: /usr/local/lib/libboost_python3.so.1.64.0: undefined symbol: PyUnicode_AsUTF8String

pchaos added a commit that referenced this issue Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant