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

通过bash install_mac.sh安装之后,跑run.py就直接报错了。求大神帮忙看一下,谢谢!
提示如下:
Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/anaconda3/lib/python3.7/site-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/anaconda3/lib/python3.7/site-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/anaconda3/lib/python3.7/site-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: dlopen(/anaconda3/lib/python3.7/site-packages/PyQt5/Qsci.abi3.so, 2): Library not loaded: @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport
Referenced from: /anaconda3/lib/python3.7/site-packages/PyQt5/Qsci.abi3.so
Reason: image not found

Administrator
avatar
加入于:
帖子: 3902
声望: 208

pip uninstall QScintilla
pip uninstall PyQt5
pip install QScintilla

在terminal中执行上述命令后,再试试看

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

楼主这个问题解决了吗?也碰到这个问题了

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

pip install QScintilla==2.11.3 可以了

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

多谢楼上两位,QScintilla安装好就可以运行了

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

pip install QScintilla==2.11.3
这个安装后,提示以下错误。

Traceback (most recent call last):
File "run.py", line 16, in <module>
from vnpy.gateway.femas import FemasGateway
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/gateway/femas/init.py", line 1, in <module>
from .femas_gateway import FemasGateway
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/gateway/femas/femas_gateway.py", line 6, in <module>
from vnpy.api.femas import (
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/api/femas/init.py", line 1, in <module>
from .vnfemasmd import MdApi
ModuleNotFoundError: No module named 'vnpy.api.femas.vnfemasmd'

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

FemasGateway接口 注释掉也不行。

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

python3 run.py
Traceback (most recent call last):
File "run.py", line 107, in <module>
main()
File "run.py", line 98, in main
main_engine.add_app(OptionMasterApp)
NameError: name 'OptionMasterApp' is not defined
Terminated: 15

提示这个错误

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

终于把开了,把 OptionMasterApp 也注释掉就可以了。

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