问答交流

实盘无法导入:stock_ranker_predict, module version: v5, trackeback: json.decoder.JSONDecodeError

由donmic创建,最终由donmic 被浏览 47 用户

问题

模拟盘是好的 已经跑了一周了 直接导入 啥也没改呀

[2022-05-04 21:17:19.663446] INFO moduleinvoker: cached.v3 开始运行.. [2022-05-04 21:17:19.718935] INFO moduleinvoker: cached.v3 运行完成[0.055449s]. [2022-05-04 21:17:19.724137] INFO moduleinvoker: stock_ranker_predict.v5 开始运行.. [2022-05-04 21:17:19.753807] ERROR moduleinvoker: module name: stock_ranker_predict, module version: v5, trackeback: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


JSONDecodeError 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/stock_ranker_predict/v5/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.stock_ranker_predict.v5.init.BigQuantModule.run()

/var/app/enabled/biglearning/module2/modules/stock_ranker_predict/v5/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.stock_ranker_predict.v5.init.BigQuantModule.run_simple()

/var/app/enabled/biglearning/module2/modules/stock_ranker_predict/v5/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.stock_ranker_predict.v5.init.BigQuantModule._try_predict_with_stockranker()

/usr/local/python3/lib/python3.8/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 355 parse_int is None and parse_float is None and 356 parse_constant is None and object_pairs_hook is None and not kw): --> 357 return _default_decoder.decode(s) 358 if cls is None: 359 cls = JSONDecoder

/usr/local/python3/lib/python3.8/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s):

/usr/local/python3/lib/python3.8/json/decoder.py in raw_decode(self, s, idx) 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: --> 355 raise JSONDecodeError("Expecting value", s, err.value) from None 356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

标签

实盘
{link}