问答交流

实盘导入报错

由bq8ispcb创建,最终由small_q 被浏览 24 用户

https://bigquant.com/experimentshare/1c2d91278c584f67a3942f639e0be7cf

导入策略试运行日志

[2023-12-22 17:05:54.948181] INFO moduleinvoker: input_features.v1 开始运行.. [2023-12-22 17:05:54.956085] INFO moduleinvoker: 命中缓存 [2023-12-22 17:05:54.956887] INFO moduleinvoker: input_features.v1 运行完成[0.008841s]. [2023-12-22 17:05:54.959026] INFO moduleinvoker: instruments.v2 开始运行.. [2023-12-22 17:05:54.966228] ERROR moduleinvoker: module name: instruments, module version: v2, trackeback: grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNKNOWN details = "Exception calling application: 'NoneType' object has no attribute 'get'" debug_error_string = "{"created":"@1703235954.965632611","description":"Error received from peer ipv4:10.100.171.234:37111","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Exception calling application: 'NoneType' object has no attribute 'get'","grpc_status":2}"

\


_InactiveRpcError Traceback (most recent call last) <ipython-input-1-5554dadfdc69> in <module> ----> 1 import strategyfile

~/work/strategyfile.cpython-38-x86_64-linux-gnu.so in init strategyfile()

/var/app/enabled/biglearning/module2/common/modulemanagerv2.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.modulemanagerv2.BigQuantModuleVersion.call()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker.module_invoke()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._module_run()

/var/app/enabled/biglearning/module2/modules/instruments/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.instruments.v2.init.bigquant_run()

/var/app/enabled/biglearning/module2/modules/instruments/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.instruments.v2.init.get_instruments()

/var/app/enabled/bigdatasource/api/v4/bigdatasource.py in read(self, instruments, start_date, end_date, fields, query, **kwargs) 90 return df 91 ---> 92 response_metadata = dsimpl.on_visit(id=self.id, update_stats=False, get_meta=True) 93 if response_metadata.err_code == 1: 94 self.log.error("on visit metadata error: {}, start_date={}; end_date={}; fields={}; instruments={}".format(

/var/app/enabled/bigdatasource/impl/dsimpl/utils.cpython-38-x86_64-linux-gnu.so in bigdatasource.impl.dsimpl.utils.on_visit()

/var/app/enabled/bigjupyteruserservice/client/client.cpython-38-x86_64-linux-gnu.so in bigjupyteruserservice.client.client.BigJupyterUserClient.data_source_visit()

/var/app/enabled/bigshared/common/grpcclientutils.cpython-38-x86_64-linux-gnu.so in bigshared.common.grpcclientutils.retry.wraps()

/var/app/enabled/bigshared/common/grpcclientutils.cpython-38-x86_64-linux-gnu.so in bigshared.common.grpcclientutils.retry.wraps()

/usr/local/python3/lib/python3.8/site-packages/grpc/_channel.py in call(self, request, timeout, metadata, credentials, wait_for_ready, compression) 824 state, call, = self._blocking(request, timeout, metadata, credentials, 825 wait_for_ready, compression) --> 826 return _end_unary_response_blocking(state, call, False, None) 827 828 def with_call(self,

/usr/local/python3/lib/python3.8/site-packages/grpc/_channel.py in _end_unary_response_blocking(state, call, with_call, deadline) 727 return state.response 728 else: --> 729 raise _InactiveRpcError(state) 730 731

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNKNOWN details = "Exception calling application: 'NoneType' object has no attribute 'get'" debug_error_string = "{"created":"@1703235954.965632611","description":"Error received from peer ipv4:10.100.171.234:37111","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Exception calling application: 'NoneType' object has no attribute 'get'","grpc_status":2}"

\

简单的策略尝试,回测运行正常,实盘报错,没有自定义封装模块,请问大大怎么解决呢?

标签

实盘
评论
  • 这几天我们在调整实盘的技术框架,可能会遇到一些问题,如果遇到问题,可以重试或者重新提交一次。如果还不行,可以和小q联系,会有人一对一帮你解决
{link}