Marker-Inc-Korea / AutoRAG

AutoML tool for RAG
https://auto-rag.com/
Apache License 2.0
2.23k stars 173 forks source link

[BUG] ValueError: #639

Closed arunkumarja closed 3 weeks ago

arunkumarja commented 2 months ago

Screenshot 2024-08-24 172724 what is the issue?

vkehfdl1 commented 2 months ago

@arunkumarja Can you give us the full bug trace (bug log) and what is the situation that the bug happens?

arunkumarja commented 2 months ago
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
C:\Users\arunk\Envs\auto\lib\site-packages\pydantic\_internal\_fields.py:161: UserWarning: Field "model_name" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
C:\Users\arunk\Envs\auto\lib\site-packages\pydantic\_internal\_fields.py:161: UserWarning: Field "model_kwargs" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
[08/24/24 16:34:09] ERROR    [__init__.py:73] >> Unexpected exception                                                                                     __init__.py:73
                             ╭─────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮ 
                             │ C:\Users\arunk\AppData\Local\Programs\Python\Python39\lib\runpy.py:197 in _run_module_as_main                            │ 
                             │                                                                                                                          │ 
                             │   194 │   main_globals = sys.modules["__main__"].__dict__                                                                │ 
                             │   195 │   if alter_argv:                                                                                                 │ 
                             │   196 │   │   sys.argv[0] = mod_spec.origin                                                                              │ 
                             │ ❱ 197 │   return _run_code(code, main_globals, None,                                                                     │ 
                             │   198 │   │   │   │   │    "__main__", mod_spec)                                                                         │ 
                             │   199                                                                                                                    │ 
                             │   200 def run_module(mod_name, init_globals=None,                                                                        │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\AppData\Local\Programs\Python\Python39\lib\runpy.py:87 in _run_code                                       │ 
                             │                                                                                                                          │ 
                             │    84 │   │   │   │   │      __loader__ = loader,                                                                        │ 
                             │    85 │   │   │   │   │      __package__ = pkg_name,                                                                     │ 
                             │    86 │   │   │   │   │      __spec__ = mod_spec)                                                                        │ 
                             │ ❱  87 │   exec(code, run_globals)                                                                                        │ 
                             │    88 │   return run_globals                                                                                             │ 
                             │    89                                                                                                                    │ 
                             │    90 def _run_module_code(code, init_globals=None,                                                                      │ 
                             │                                                                                                                          │ 
                             │ in <module>:4                                                                                                            │ 
                             │                                                                                                                          │ 
                             │   1 # -*- coding: utf-8 -*-                                                                                              │ 
                             │   2 import re                                                                                                            │ 
                             │   3 import sys                                                                                                           │ 
                             │ ❱ 4 from autorag.cli import cli                                                                                          │ 
                             │   5 if __name__ == '__main__':                                                                                           │ 
                             │   6 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])                                                 │ 
                             │   7 │   sys.exit(cli())                                                                                                  │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\autorag\cli.py:11 in <module>                                                 │ 
                             │                                                                                                                          │ 
                             │     8                                                                                                                    │ 
                             │     9 import click                                                                                                       │ 
                             │    10                                                                                                                    │ 
                             │ ❱  11 from autorag import dashboard                                                                                      │ 
                             │    12 from autorag.deploy import Runner                                                                                  │ 
                             │    13 from autorag.deploy import extract_best_config as original_extract_best_config                                     │ 
                             │    14 from autorag.evaluator import Evaluator                                                                            │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\autorag\dashboard.py:8 in <module>                                            │ 
                             │                                                                                                                          │ 
                             │     5                                                                                                                    │ 
                             │     6 import matplotlib.pyplot as plt                                                                                    │ 
                             │     7 import pandas as pd                                                                                                │ 
                             │ ❱   8 import panel as pn                                                                                                 │ 
                             │     9 import seaborn as sns                                                                                              │ 
                             │    10 import yaml                                                                                                        │ 
                             │    11 from bokeh.models import NumberFormatter, BooleanFormatter                                                         │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\panel\__init__.py:50 in <module>                                              │ 
                             │                                                                                                                          │ 
                             │    47 """                                                                                                                │ 
                             │    48 from param import rx                                                                                               │ 
                             │    49                                                                                                                    │ 
                             │ ❱  50 from . import layout  # noqa                                                                                       │ 
                             │    51 from . import links  # noqa                                                                                        │ 
                             │    52 from . import pane  # noqa                                                                                         │ 
                             │    53 from . import param  # noqa                                                                                        │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\panel\layout\__init__.py:31 in <module>                                       │ 
                             │                                                                                                                          │ 
                             │   28 For more detail see the Getting Started Guide                                                                       │ 
                             │   29 https://panel.holoviz.org/getting_started/index.html                                                                │ 
                             │   30 """                                                                                                                 │ 
                             │ ❱ 31 from .accordion import Accordion  # noqa                                                                            │ 
                             │   32 from .base import (  # noqa                                                                                         │ 
                             │   33 │   Column, ListLike, ListPanel, Panel, Row, WidgetBox,                                                             │ 
                             │   34 )                                                                                                                   │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\panel\layout\accordion.py:9 in <module>                                       │ 
                             │                                                                                                                          │ 
                             │     6                                                                                                                    │ 
                             │     7 import param                                                                                                       │ 
                             │     8                                                                                                                    │ 
                             │ ❱   9 from bokeh.models import Column as BkColumn, CustomJS                                                              │ 
                             │    10                                                                                                                    │ 
                             │    11 from ..reactive import Reactive                                                                                    │ 
                             │    12 from .base import NamedListPanel                                                                                   │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\models\__init__.py:32 in <module>                                       │ 
                             │                                                                                                                          │ 
                             │    29 #-----------------------------------------------------------------------------                                     │ 
                             │    30                                                                                                                    │ 
                             │    31 # Bokeh imports                                                                                                    │ 
                             │ ❱  32 from ..model import Model                                                                                          │ 
                             │    33 from . import (                                                                                                    │ 
                             │    34 │   annotations,                                                                                                   │ 
                             │    35 │   axes,                                                                                                          │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\model\__init__.py:24 in <module>                                        │ 
                             │                                                                                                                          │ 
                             │   21 #-----------------------------------------------------------------------------                                      │ 
                             │   22                                                                                                                     │ 
                             │   23 # Bokeh imports                                                                                                     │ 
                             │ ❱ 24 from .data_model import DataModel                                                                                   │ 
                             │   25 from .model import Model                                                                                            │ 
                             │   26 from .util import Qualified, collect_models, get_class                                                              │ 
                             │   27                                                                                                                     │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\model\data_model.py:25 in <module>                                      │ 
                             │                                                                                                                          │ 
                             │   22                                                                                                                     │ 
                             │   23 # Bokeh imports                                                                                                     │ 
                             │   24 from ..core.has_props import abstract                                                                               │ 
                             │ ❱ 25 from .model import Model                                                                                            │ 
                             │   26                                                                                                                     │ 
                             │   27 #-----------------------------------------------------------------------------                                      │ 
                             │   28 # Globals and constants                                                                                             │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\model\model.py:28 in <module>                                           │ 
                             │                                                                                                                          │ 
                             │    25 from typing import TYPE_CHECKING, Any, Iterable                                                                    │ 
                             │    26                                                                                                                    │ 
                             │    27 # Bokeh imports                                                                                                    │ 
                             │ ❱  28 from ..core import properties as p                                                                                 │ 
                             │    29 from ..core.has_props import HasProps, _default_resolver, abstract                                                 │ 
                             │    30 from ..core.property._sphinx import type_link                                                                      │ 
                             │    31 from ..core.property.validation import without_property_validation                                                 │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\properties.py:307 in <module>                                      │ 
                             │                                                                                                                          │ 
                             │   304                                                                                                                    │ 
                             │   305 from .property.alias import Alias, DeprecatedAlias                                                                 │ 
                             │   306                                                                                                                    │ 
                             │ ❱ 307 from .property.aliases import CoordinateLike                                                                       │ 
                             │   308                                                                                                                    │ 
                             │   309 from .property.any import Any                                                                                      │ 
                             │   310 from .property.any import AnyRef                                                                                   │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\property\aliases.py:26 in <module>                                 │ 
                             │                                                                                                                          │ 
                             │   23 # Bokeh imports                                                                                                     │ 
                             │   24 from .datetime import Datetime                                                                                      │ 
                             │   25 from .either import Either                                                                                          │ 
                             │ ❱ 26 from .factors import Factor                                                                                         │ 
                             │   27 from .primitive import Float                                                                                        │ 
                             │   28                                                                                                                     │ 
                             │   29 #-----------------------------------------------------------------------------                                      │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\property\factors.py:26 in <module>                                 │ 
                             │                                                                                                                          │ 
                             │   23                                                                                                                     │ 
                             │   24 # Bokeh imports                                                                                                     │ 
                             │   25 from .bases import Init, SingleParameterizedProperty                                                                │ 
                             │ ❱ 26 from .container import Seq, Tuple                                                                                   │ 
                             │   27 from .either import Either                                                                                          │ 
                             │   28 from .primitive import String                                                                                       │ 
                             │   29 from .singletons import Intrinsic                                                                                   │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\property\container.py:43 in <module>                               │ 
                             │                                                                                                                          │ 
                             │    40 │   TypeOrInst,                                                                                                    │ 
                             │    41 )                                                                                                                  │ 
                             │    42 from .descriptors import ColumnDataPropertyDescriptor                                                              │ 
                             │ ❱  43 from .enum import Enum                                                                                             │ 
                             │    44 from .numeric import Int                                                                                           │ 
                             │    45 from .singletons import Intrinsic, Undefined                                                                       │ 
                             │    46 from .wrappers import (                                                                                            │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\property\enum.py:33 in <module>                                    │ 
                             │                                                                                                                          │ 
                             │    30                                                                                                                    │ 
                             │    31 # Bokeh imports                                                                                                    │ 
                             │    32 from ...util.strings import nice_join                                                                              │ 
                             │ ❱  33 from .. import enums                                                                                               │ 
                             │    34 from ._sphinx import model_link, property_link, register_type_link                                                 │ 
                             │    35 from .bases import Init                                                                                            │ 
                             │    36 from .primitive import String                                                                                      │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\enums.py:475 in <module>                                           │ 
                             │                                                                                                                          │ 
                             │   472                                                                                                                    │ 
                             │   473 #: Selection modes                                                                                                 │ 
                             │   474 SelectionModeType = Literal[RegionSelectionModeType, "toggle"]                                                     │ 
                             │ ❱ 475 SelectionMode = enumeration(SelectionModeType)                                                                     │ 
                             │   476                                                                                                                    │ 
                             │   477 #: Sizing mode policies                                                                                            │ 
                             │   478 SizingModeType = Literal["stretch_width", "stretch_height", "stretch_both",                                        │ 
                             │       "scale_width", "scale_height", "scale_both", "fixed", "inherit"]                                                   │ 
                             │                                                                                                                          │ 
                             │ C:\Users\arunk\Envs\auto\lib\site-packages\bokeh\core\enums.py:238 in enumeration                                        │ 
                             │                                                                                                                          │ 
                             │   235 │   │   values = get_args(values[0])                                                                               │ 
                             │   236 │                                                                                                                  │ 
                             │   237 │   if not (values and all(isinstance(value, str) and value for value in values)):                                 │ 
                             │ ❱ 238 │   │   raise ValueError(f"expected a non-empty sequence of strings, got                                           │ 
                             │       {nice_join(values)}")                                                                                              │ 
                             │   239 │                                                                                                                  │ 
                             │   240 │   if len(values) != len(set(values)):                                                                            │ 
                             │   241 │   │   raise ValueError(f"enumeration items must be unique, got {nice_join(values)}")                             │ 
                             ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ 
                             ValueError: expected a non-empty sequence of strings, got typing.Literal['replace', 'append', 'intersect', 'subtract',       
                             'xor'] or toggle
vkehfdl1 commented 2 months ago

@arunkumarja It looks like there is something wrong at panel. Recommend to reinstall following packages.

panel
seaborn
ipykernel
ipywidgets
ipywidgets_bokeh
arunkumarja commented 2 months ago

same error again through creating a new environment, install AutoRAG above package also install but same error return.

vkehfdl1 commented 1 month ago

@arunkumarja Can you try python 3.10 environment?

vkehfdl1 commented 3 weeks ago

Closing this issue because of inactivity. I think we have to use up to python 3.10 virtual environment.