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

vnpy-dev版本运行run.py、run_simple.py出现Segmentation fault (core dumped) #789

Closed
Zeongwan opened this issue Mar 21, 2018 · 8 comments

Comments

@Zeongwan
Copy link

环境

  • 操作系统: Ubuntu 16.04
  • Anaconda版本: 如Anaconda 5.1.0 Python 2.7 64位
  • vn.py版本: 如v1.8 dev branch 20180321(下载日期)

Issue类型

Bug

预期程序行为

运行examples下的run_simple.py、run.py文件

实际程序行为

Segmentation fault (core dumped)

重现步骤

针对Bug类型Issue,请提供具体重现步骤以及报错截图
image

@Zeongwan Zeongwan changed the title vnpy-dev版本运行run.py vnpy-dev版本运行run.py、run_simple.py出现Segmentation fault (core dumped) Mar 21, 2018
@vnpy
Copy link
Owner

vnpy commented Mar 22, 2018

boost安装了吗?另外你的Anaconda版本换成4.0.0的试试

@Zeongwan
Copy link
Author

把Anaconda换到4.0.0,安装boost以后,重新安装vnpy,依旧是跑这两个文件,然后出现的错误变为ImportError: No module named vnpy.event
image
尝试直接去跑vnpy/events下的eventEngine.py,报错ImportError: No module named queue
image

@vnpy
Copy link
Owner

vnpy commented Mar 23, 2018

  1. pip install future
  2. vnpy-1.8目录下,运行bash install.sh

@Zeongwan
Copy link
Author

目前run_simple.py运行正常,run.py运行时会出现NameError: global name 'xtpGateway' is not defined

应该用dev分支?还是怎么解决?
_20180323103420

@vnpy
Copy link
Owner

vnpy commented Mar 26, 2018

  1. 可以用dev
  2. 或者移除掉run.py里的xtpGateway相关代码就行

@Gwill
Copy link
Contributor

Gwill commented Mar 27, 2018

@Zeongwan 一些 api gateway 不支持 linux 的,还是得用回 win7 😂 ,可以 close issue 了

@vnpy vnpy closed this as completed May 7, 2018
@shupan
Copy link

shupan commented Sep 22, 2018

这个还存在。 我下周vnpy-1.8和vnpy-1.9都存在, 是否1G的内存就安装不了?
image

提示pip版本问题,是否需要升级
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@vnpy
Copy link
Owner

vnpy commented Sep 25, 2018

1G内存太小了,估计连CTP的API编译都搞不定,除非你会设置交换区

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants