runtime error
Exit code: 1. Reason: .py", line 135, in import_optional_dependency module = importlib.import_module(name) File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'tabulate' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 15, in <module> agent = create_csv_agent(llm, csv_file_path, verbose=True, allow_dangerous_code=True, handle_parsing_errors=True) File "/usr/local/lib/python3.10/site-packages/langchain_experimental/agents/agent_toolkits/csv/base.py", line 66, in create_csv_agent return create_pandas_dataframe_agent(llm, df, **kwargs) File "/usr/local/lib/python3.10/site-packages/langchain_experimental/agents/agent_toolkits/pandas/base.py", line 300, in create_pandas_dataframe_agent prompt = _get_prompt( File "/usr/local/lib/python3.10/site-packages/langchain_experimental/agents/agent_toolkits/pandas/base.py", line 106, in _get_prompt else _get_single_prompt(df, **kwargs) File "/usr/local/lib/python3.10/site-packages/langchain_experimental/agents/agent_toolkits/pandas/base.py", line 97, in _get_single_prompt df_head = str(df.head(number_of_head_rows).to_markdown()) File "/usr/local/lib/python3.10/site-packages/pandas/util/_decorators.py", line 333, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/pandas/core/frame.py", line 2983, in to_markdown tabulate = import_optional_dependency("tabulate") File "/usr/local/lib/python3.10/site-packages/pandas/compat/_optional.py", line 138, in import_optional_dependency raise ImportError(msg) ImportError: Missing optional dependency 'tabulate'. Use pip or conda to install tabulate.
Container logs:
Fetching error logs...