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

ImportError: No module named account #27

Open
FallacyWalker opened this issue Aug 7, 2017 · 1 comment
Open

ImportError: No module named account #27

FallacyWalker opened this issue Aug 7, 2017 · 1 comment

Comments

@FallacyWalker
Copy link

rqalpha : 3.0.2
rqalpha-mod-vnpy: 0.9.30
vnpy is also the latest;

/usr/bin/python2.7 /home/walker/Desktop/Rqalpha30/rqalpha/startmod.py
Traceback (most recent call last):
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/main.py", line 195, in run
mod_handler.start_up()
└ <rqalpha.mod.ModHandler object at 0x7faba6b47f90>
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/mod/init.py", line 68, in start_up
self._mod_dict[mod_name].start_up(self._env, mod_config)
│ │ │ └ {'CTP': {'brokerID': '9999',
'mdAddress': 'tcp://180.168.146.187:10010',
'password': 'FinalicA_0472',
'tdAddress': 'tcp://180...
│ │ └ <rqalpha.mod.ModHandler object at 0x7faba6b47f90>
│ └ u'vnpy'
└ <rqalpha.mod.ModHandler object at 0x7faba6b47f90>
File "/usr/local/lib/python2.7/dist-packages/rqalpha_mod_vnpy/mod.py", line 34, in start_up
from .vnpy_broker import VNPYBroker
File "/usr/local/lib/python2.7/dist-packages/rqalpha_mod_vnpy/vnpy_broker.py", line 20, in
from rqalpha.model.account import BenchmarkAccount, FutureAccount
ImportError: No module named account
2017-08-07 ERROR No module named account
[2017-08-07 11:27:55.326767] ERROR: system_log: 策略运行产生异常
Traceback (most recent call last):
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/main.py", line 195, in run
mod_handler.start_up()
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/mod/init.py", line 68, in start_up
self._mod_dict[mod_name].start_up(self._env, mod_config)
File "/usr/local/lib/python2.7/dist-packages/rqalpha_mod_vnpy/mod.py", line 34, in start_up
from .vnpy_broker import VNPYBroker
File "/usr/local/lib/python2.7/dist-packages/rqalpha_mod_vnpy/vnpy_broker.py", line 20, in
from rqalpha.model.account import BenchmarkAccount, FutureAccount
ImportError: No module named account
Traceback (most recent call last):
File "/home/walker/Desktop/Rqalpha30/rqalpha/startmod.py", line 78, in
run_file(strategy_file_path, config_mod1)
│ │ └ {'base': {'accounts': {'future': 100000}, 'start_date': '2016-01-01', 'end_date': '2016-12-01', 'strategy_file': '/home/walker/D...
│ └ '/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/examples/buy_and_hold.py'
└ <function run_file at 0x7faba71fcc80>
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/init.py", line 97, in run_file
return main.run(config)
│ └ {'base': {'accounts': {'FUTURE': 100000.0},
'benchmark': None,
'data_bundle_path': '/home/walker/.rqalpha/bundle',
'end_date'...
└ <module 'rqalpha.main' from '/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/main.pyc'>
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/main.py", line 317, in run
mod_handler.tear_down(code, user_exc)
│ │ └ CustomException()
│ └ EXIT_CODE.EXIT_INTERNAL_ERROR
└ <rqalpha.mod.ModHandler object at 0x7faba6b47f90>
File "/home/walker/Desktop/Rqalpha30/rqalpha/rqalpha/mod/init.py", line 73, in tear_down
ret = self._mod_dict[mod_name].tear_down(*args)
│ │ │ └ (EXIT_CODE.EXIT_INTERNAL_ERROR, CustomException())
│ │ └ u'vnpy'
│ └ <rqalpha.mod.ModHandler object at 0x7faba6b47f90>
└ None
File "/usr/local/lib/python2.7/dist-packages/rqalpha_mod_vnpy/mod.py", line 55, in tear_down
self._gateway.exit()
└ <rqalpha_mod_vnpy.mod.VNPYMod object at 0x7faba6b35f10>
AttributeError: 'NoneType' object has no attribute 'exit'

Process finished with exit code 1

@conglin
Copy link

conglin commented Oct 5, 2017

这个不再维护了 看我这个issue #25

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

No branches or pull requests

2 participants