【代码报错】ImportError: cannot import name 'get_table_names_recursive' from 'dai._functions'
由bqqdq1he创建,最终由small_q 被浏览 9 用户
系统有问题?很简单的SQL查询报错
%%sql {'date':['2020-05-01','2020-05-02']}
SELECT date,instrument FROM cn_stock_bar1d
ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 get_ipython().run_cell_magic('sql', "{'date':['2020-05-01','2020-05-02']}", '\nSELECT date,instrument FROM cn_stock_bar1d\n') File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/IPython/core/interactiveshell.py:2541, in InteractiveShell.run_cell_magic(self, magic_name, line, cell) 2539 with self.builtin_trap: 2540 args = (magic_arg_s, cell) -> 2541 result = fn(*args, **kwargs) 2543 # The code below prevents the output from being displayed 2544 # when using magics with decorator @output_can_be_silenced 2545 # when the last Python token in the expression is a ';'. 2546 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): File ~/.ipython/profile_default/startup/000-aistudio.py:8, in sql(line, cell, *args, **kwargs) 4 @register_line_cell_magic 5 def sql(line, cell=None, *args, **kwargs): 6 import json ----> 8 import dai 10 if cell is None: 11 return dai.query(line, full_db_scan=True) File /var/app/enabled/dai/init.py:2, in <module dai>() File /var/app/enabled/dai/_datasource.py:25, in <module dai._datasource>() File /var/app/enabled/dai/_functions.py:12, in <module dai._functions>() File /var/app/enabled/dai/_telemetry.py:26, in <module dai._telemetry>() ImportError: cannot import name 'get_table_names_recursive' from 'dai._functions' (/var/app/enabled/dai/_functions.py)