mirror of
https://github.com/run-llama/llama-lab.git
synced 2026-07-01 20:14:02 -04:00
I can't run auto-llama #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Timothychen00 on GitHub (Jun 21, 2024).
i am running auto-llama with python 3.10.0 on MacOS
when i run the module, it turns out the following message.
Traceback (most recent call last):
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/timothychen_1/Library/CloudStorage/GoogleDrive-timothychenpc@gmail.com/My Drive/Projects/自我學習/Python/SideProject/auto-llama/llama-lab-main/auto_llama/auto_llama/__main__.py", line 5, in
from auto_llama.actions import run_command
File "/Users/timothychen_1/Library/CloudStorage/GoogleDrive-timothychenpc@gmail.com/My Drive/Projects/自我學習/Python/SideProject/auto-llama/llama-lab-main/auto_llama/auto_llama/actions.py", line 5, in
from llama_index.readers.web import BeautifulSoupWebReader
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/readers/web/__init__.py", line 2, in
from llama_index.readers.web.async_web.base import (
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/readers/web/async_web/base.py", line 5, in
from llama_index.core.readers.base import BaseReader
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/__init__.py", line 19, in
from llama_index.core.indices import (
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/__init__.py", line 32, in
from llama_index.core.indices.loading import (
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/loading.py", line 6, in
from llama_index.core.indices.registry import INDEX_STRUCT_TYPE_TO_INDEX_CLASS
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/registry.py", line 13, in
from llama_index.core.indices.property_graph import PropertyGraphIndex
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/property_graph/__init__.py", line 1, in
from llama_index.core.indices.property_graph.base import PropertyGraphIndex
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/property_graph/base.py", line 17, in
from llama_index.core.indices.property_graph.transformations import (
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/property_graph/transformations/__init__.py", line 4, in
from llama_index.core.indices.property_graph.transformations.schema_llm import (
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/property_graph/transformations/schema_llm.py", line 116, in
class SchemaLLMPathExtractor(TransformComponent):
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/site-packages/llama_index/core/indices/property_graph/transformations/schema_llm.py", line 153, in SchemaLLMPathExtractor
possible_entities: Optional[TypeAlias] = None,
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/typing.py", line 309, in inner
return func(*args, **kwds)
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/typing.py", line 400, in getitem
return self._getitem(self, parameters)
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/typing.py", line 525, in Optional
arg = _type_check(parameters, f"{self} requires a single type.")
File "/Users/timothychen_1/.pyenv/versions/3.10.0/lib/python3.10/typing.py", line 169, in _type_check
raise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.TypeAlias is not valid as type argument