vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 2
声望: 0

/usr/local/bin/python3.7 /Users/quoba/Desktop/vnpy-2.1.4/examples/vn_trader/run.py
Traceback (most recent call last):
File "/Users/quoba/Desktop/vnpy-2.1.4/examples/vn_trader/run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/Users/quoba/Desktop/vnpy-2.1.4/vnpy/trader/ui/init.py", line 11, in <module>
from .mainwindow import MainWindow
File "/Users/quoba/Desktop/vnpy-2.1.4/vnpy/trader/ui/mainwindow.py", line 28, in <module>
from .editor import CodeEditor
File "/Users/quoba/Desktop/vnpy-2.1.4/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyQt5/Qsci.abi3.so, 2): Library not loaded: @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport
Referenced from: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyQt5/Qsci.abi3.so
Reason: Incompatible library version: Qsci.abi3.so requires version 5.15.0 or later, but QtPrintSupport provides version 5.14.0

Member
avatar
加入于:
帖子: 2
声望: 0

最好是通过conda建立专用于vnpy的python环境,可以避免各种包库的冲突。

Member
加入于:
帖子: 5
声望: 2

同问,有解决的吗

Member
avatar
加入于:
帖子: 1
声望: 0

原因是pyqt5的版本和目前的QScintilla的版本不兼容。
把pyqt5 卸载了,装QScintilla,就行了
pip uninstall PyQt5
pip install QScintilla

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3