vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 5
声望: 0

阿里云香港
2核心 4G 共享型
Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64)
按照教程一步一步安装的,一共两个地方出错了

description

description

Administrator
avatar
加入于:
帖子: 5091
声望: 293

没事,这两个警告都忽略就行,不影响使用

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

(base) root@iZj6cahcvgu9z4q76fy0uqZ:~/Downloads/vnpy-2.1.3/examples/vn_trader# python run.py
Traceback (most recent call last):
File "run.py", line 25, in <module>
from vnpy.gateway.xtp import XtpGateway
File "/root/miniconda3/lib/python3.7/site-packages/vnpy/gateway/xtp/init.py", line 1, in <module>
from .xtp_gateway import XtpGateway
File "/root/miniconda3/lib/python3.7/site-packages/vnpy/gateway/xtp/xtp_gateway.py", line 5, in <module>
from vnpy.api.xtp import MdApi, TdApi
File "/root/miniconda3/lib/python3.7/site-packages/vnpy/api/xtp/init.py", line 1, in <module>
from .vnxtpmd import MdApi
ImportError: libxtptraderapi.so: cannot open shared object file: No such file or directory

忽略以后,运行,又出现这个错误了

Administrator
avatar
加入于:
帖子: 5091
声望: 293

run.py里把XtpGateway注释掉,只支持CTP、数字货币、IB这些接口

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

都一样折腾了两天没有安装起来

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

我也是遇到这些问题,但我的版本用的是ubuntu 20.04LTS+miniconda3,手动找了一堆资料,把psycopg2、ta-lib、pytz、six、pandas都装好了。但是只保留ctp接口时,用run.py,遇到下面的错误,不知道怎么解决?
(vnpy) zhb@zhb-Ubuntu:~/PycharmProjects/vnpy$ python examples/vn_trader/run.py
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

已放弃 (核心已转储)

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

用Python的交易员 wrote:

run.py里把XtpGateway注释掉,只支持CTP、数字货币、IB这些接口

Ubuntu下,是否支持sopt、soptest这两个etf期权接口?

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

翻看了下论坛里的回复,原来6楼的问题是PyQt没装好,用“sudo apt-get install pyqt5-dev-tools",装了60多M的程序包,总算搞定可以看到vntrader界面了。

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

沪公网安备 31011502017034号