研究环境出问题了。

用户头像sh_*178rxh
2026-06-20 发布

最简单的问句就报错了。query_iwencai("市值>1000亿,日成交额>30亿,换手率大于4.5%")




---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
/opt/conda/lib/python3.8/site-packages/mgquant_mod_mindgo/data/trading_dates_store.pyc in __init__(self, f, table, process_fn)

/opt/conda/lib/python3.8/site-packages/bcolz/toplevel.py in open(rootdir, mode)
    139     else:
--> 140         return bcolz.carray(rootdir=rootdir, mode=mode)
    141 

bcolz/carray_ext.pyx in bcolz.carray_ext.carray.__cinit__()

bcolz/carray_ext.pyx in bcolz.carray_ext.carray._read_meta()

FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/backtest-data/mgquant/stock/trading_dates.bcolz/meta/sizes'

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
/opt/conda/lib/python3.8/site-packages/IPython/core/interactiveshell.py in transform_cell(self, raw_cell)
   3207                 # use prefilter_lines to handle trailing newlines
   3208                 # restore trailing newline for ast.parse
-> 3209                 cell = self.prefilter_manager.prefilter_lines(cell) + '\n'
   3210 
   3211         lines = cell.splitlines(keepends=True)

/opt/conda/lib/python3.8/site-packages/IPython/core/prefilter.py in prefilter_lines(self, lines, continue_prompt)
    333                              for lnum, line in enumerate(llines) ])
    334         else:
--> 335             out = self.prefilter_line(llines[0], continue_prompt)
    336 
    337         return out

/opt/conda/lib/python3.8/site-packages/IPython/core/prefilter.py in prefilter_line(self, line, continue_prompt)
    308             return normal_handler.handle(line_info)
    309 
--> 310         prefiltered = self.prefilter_line_info(line_info)
    311         # print "prefiltered line: %r" % prefiltered
    312         return prefiltered

/opt/conda/lib/python3.8/site-packages/IPython/core/prefilter.py in prefilter_line_info(self, line_info)
    250         """
    251         # print "prefilter_line_info: ", line_info
--> 252         handler = self.find_handler(line_info)
    253         return handler.handle(line_info)
    254 

/opt/conda/lib/python3.8/site-packages/IPython/core/prefilter.py in find_handler(self, line_info)
    257         for checker in self.checkers:
    258             if checker.enabled:
--> 259                 handler = checker.check(line_info)
    260                 if handler:
    261                     return handler

/opt/conda/lib/python3.8/site-packages/IPython/core/prefilter.py in check(self, line_info)
    414     def check(self, line_info):
    415         obj = self.shell.user_ns.get(line_info.ifun)
--> 416         if isinstance(obj, Macro):
    417             return self.prefilter_manager.get_handler_by_name('macro')
    418         else:

/opt/conda/lib/python3.8/site-packages/mgquant/utils/lazyimport.pyc in __getattribute__(self, attr)

/opt/conda/lib/python3.8/site-packages/mgquant/utils/lazyimport.pyc in _resolve(self)

/opt/conda/lib/python3.8/site-packages/mgquant/utils/lazyimport.pyc in _import(self, scope, name)

/opt/conda/lib/python3.8/site-packages/mgquant_mod_stock/research_api.pyc in <module>

/opt/conda/lib/python3.8/site-packages/mgquant_mod_mindgo/research/research_api.pyc in <module>

/opt/conda/lib/python3.8/site-packages/mgquant_mod_stock/data/data_proxy.pyc in __init__(self, data_source)

/opt/conda/lib/python3.8/site-packages/mgquant_mod_stock/data/fast_data_source.pyc in get_trading_calendar(self)

/opt/conda/lib/python3.8/site-packages/mgquant_mod_mindgo/utils/wrap_utils.pyc in __get__(self, instance, owner)

/opt/conda/lib/python3.8/site-packages/mgquant_mod_stock/data/fast_data_source.pyc in _trading_dates(self)

/opt/conda/lib/python3.8/site-packages/mgquant_mod_mindgo/data/trading_dates_store.pyc in __init__(self, f, table, process_fn)

/opt/conda/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
    211     if head and tail and not path.exists(head):
    212         try:
--> 213             makedirs(head, exist_ok=exist_ok)
    214         except FileExistsError:
    215             # Defeats race condition when another thread created the path

/opt/conda/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
    221             return
    222     try:
--> 223         mkdir(name, mode)
    224     except OSError:
    225         # Cannot rely on checking for EEXIST, since the operating system

OSError: [Errno 30] Read-only file system: '/home/jovyan/backtest-data/mgquant'

评论