Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run auto-llama #36

Open
Timothychen00 opened this issue Jun 21, 2024 · 0 comments
Open

I can't run auto-llama #36

Timothychen00 opened this issue Jun 21, 2024 · 0 comments

Comments

@Timothychen00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant