环境:centos7 + MiniAnaconda + vnpy2.0.9 + install.sh 成功安装 ;运行 run.py 提示以下错误
“ImportError: /root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/PyQt5/QtPrintSupport.abi3.so: symbol _ZNK12QPrinterInfo16defaultColorModeEv, version Qt_5 not defined in file libQt5PrintSupport.so.5 with link time reference”
错误上下文:
(zyp_Vnpy2.0.9_py3.7) [root@localhost vn_trader]# cd /media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/bin/python /root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 38097 /media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader/run.py
Traceback (most recent call last):
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/ptvsd_launcher.py", line 43, in <module>
main(ptvsdArgs)
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/old_ptvsd/ptvsd/main.py", line 432, in main
run()
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/old_ptvsd/ptvsd/main.py", line 316, in run_file
runpy.run_path(target, run_name='main')
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader/run.py", line 8, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: /root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/PyQt5/QtPrintSupport.abi3.so: symbol _ZNK12QPrinterInfo16defaultColorModeEv, version Qt_5 not defined in file libQt5PrintSupport.so.5 with link time reference
(zyp_Vnpy2.0.9_py3.7) [root@localhost vn_trader]# cd /media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/bin/python /root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 42477 /media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader/run.py
Traceback (most recent call last):
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/ptvsd_launcher.py", line 43, in <module>
main(ptvsdArgs)
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/old_ptvsd/ptvsd/main.py", line 432, in main
run()
File "/root/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/old_ptvsd/ptvsd/main.py", line 316, in run_file
runpy.run_path(target, run_name='main')
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/media/sf_FUN/Vnpy/Develop/zyp-vnpy-2.0.9/vnpy-2.0.9/examples/vn_trader/run.py", line 8, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: /root/miniconda3/envs/zyp_Vnpy2.0.9_py3.7/lib/python3.7/site-packages/PyQt5/QtPrintSupport.abi3.so: symbol _ZNK12QPrinterInfo16defaultColorModeEv, version Qt_5 not defined in file libQt5PrintSupport.so.5 with link time reference