We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我照着文档上mod的例子,写了一个helloworld的例子,但是运行时报错:
run -f /DeepLink/LocalRqalpha20/rqalpha/rqalpha/examples/buy_and_hold.py -sc 100000
error:
2015-06-01 ERROR Traceback (most recent call last): File /DeepLink/LocalRqalpha20/rqalpha/rqalpha/examples/buy_and_hold.py, line 32 in handle_bar order_percent(context.s1, 1) --> context = Context({stocks = ['000001.XSHE'], s1 = '000001.XSHE', fired = False}) --> bar_dict = BarMap(000001.XSHE) AttributeError: 'RQInvalidArgument' object has no attribute 'with_traceback' Traceback (most recent call last): File "/DeepLink/LocalRqalpha20/rqalpha/rqalpha/core/strategy.py", line 84, in handle_bar self._handle_bar(self._user_context, bar_dict) │ │ └ BarMap(000001.XSHE) │ └ <rqalpha.core.strategy.Strategy object at 0x10a692a50> └ <rqalpha.core.strategy.Strategy object at 0x10a692a50> File "/DeepLink/LocalRqalpha20/rqalpha/rqalpha/examples/buy_and_hold.py", line 32, in handle_bar order_percent(context.s1, 1) │ └ Context({stocks = ['000001.XSHE'], s1 = '000001.XSHE', fired = False}) └ <function order_percent at 0x105ea4398> File "/DeepLink/LocalRqalpha20/rqalpha/rqalpha/execution_context.py", line 106, in wrapper return func(*args, **kwargs) │ │ └ {} │ └ ('000001.XSHE', 1) └ <function order_percent at 0x105ea4488> File "/DeepLink/LocalRqalpha20/rqalpha/rqalpha/utils/arg_checker.py", line 378, in api_rule_check_wrapper raise e.with_traceback(tb) │ └ <traceback object at 0x10a5f09e0> └ RQInvalidArgument(u"function order_percent: invalid percent argument, expect a value < 1, got 1 (type: <type 'int'>)",) AttributeError: 'RQInvalidArgument' object has no attribute 'with_traceback'
The text was updated successfully, but these errors were encountered:
@FallacyWalker 您更新到最新版(2.0.6)试一下?
Sorry, something went wrong.
好像还不行
试试 develop 分支
只是 fix 了 with_backtrace 在 python2.7 上出错的问题
@FallacyWalker 2.0.8 已经解决了在Python 2.7下 报错 'RQInvalidArgument' object has no attribute 'with_traceback' 的问题
'RQInvalidArgument' object has no attribute 'with_traceback'
hzliu
No branches or pull requests
我照着文档上mod的例子,写了一个helloworld的例子,但是运行时报错:
error:
The text was updated successfully, but these errors were encountered: