I can't run auto-llama #10

Open
opened 2026-02-15 17:04:35 -05:00 by yindo · 0 comments
Owner

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

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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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 <module> 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama-lab#10