[BUG] - <manual install>
Description
run python app.py
then:
Traceback (most recent call last):
File "/hy-tmp/kotaemon/app.py", line 13, in
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Screenshots

Logs
No response
Browsers
No response
OS
No response
Additional information
No response
@AUTOMATIC2222, can you provide the reproduction steps (how you install?) + your OS?
@AUTOMATIC2222, can you provide the reproduction steps (how you install?) + your OS?
just follow readme , my os is ubuntu 20.04
Hmm, If you use conda, can you send us the list of installed libs (which pip freeze)?
Hmm, If you use conda, can you send us the list of installed libs (which
pip freeze)?
aiofiles==24.1.0 aiohappyeyeballs==2.4.0 aiohttp==3.10.5 aiolimiter==1.1.0 aiosignal==1.3.1 alabaster==1.0.0 annotated-types==0.7.0 anyio==4.4.0 anytree==2.12.1 arrow==1.3.0 asgiref==3.8.1 asttokens==2.4.1 async-timeout==4.0.3 attrs==24.2.0 autograd==1.7.0 azure-ai-documentintelligence==1.0.0b3 azure-common==1.1.28 azure-core==1.30.2 azure-identity==1.17.1 azure-search-documents==11.5.1 azure-storage-blob==12.22.0 babel==2.16.0 backoff==2.2.1 bcrypt==4.2.0 beartype==0.18.5 beautifulsoup4==4.12.3 binaryornot==0.4.4 black==24.8.0 build==0.9.0 cachetools==5.5.0 certifi==2024.8.30 cffi==1.15.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 chroma-hnswlib==0.7.6 chromadb==0.5.5 click==8.1.7 cloudpickle==3.0.0 cohere==5.3.5 coloredlogs==15.0.1 colorlog==6.8.2 contourpy==1.3.0 cookiecutter==2.6.0 coverage==7.6.1 cramjam==2.8.3 cryptography==3.4.8 cycler==0.12.1 dask==2024.8.2 dask-expr==1.1.13 dataclasses-json==0.6.7 datashaper==0.0.49 decorator==5.1.1 Deprecated==1.2.14 deprecation==2.1.0 devtools==0.12.2 dirtyjson==1.0.8 diskcache==5.6.3 distlib==0.3.8 distro==1.9.0 docutils==0.21.2 duckduckgo_search==6.1.12 elastic-transport==8.15.0 elasticsearch==8.13.2 environs==11.0.0 et-xmlfile==1.1.0 exceptiongroup==1.2.2 executing==2.1.0 fast-langdetect==0.2.1 fastapi==0.112.2 fastavro==1.9.5 fastparquet==2024.5.0 fasttext-wheel==0.9.2 ffmpy==0.4.0 filelock==3.15.4 flake8==7.1.1 flatbuffers==24.3.25 fonttools==4.53.1 frozenlist==1.4.1 fsspec==2024.6.1 future==1.0.0 gensim==4.3.3 google-auth==2.34.0 googleapis-common-protos==1.65.0 googlesearch-python==1.2.5 gradio==4.39.0 gradio_client==1.1.1 graphrag==0.3.2 graspologic==3.4.1 graspologic-native==1.2.1 greenlet==3.0.3 grpcio==1.66.1 h11==0.14.0 html2text==2024.2.26 httpcore==1.0.5 httptools==0.6.1 httpx==0.27.2 httpx-sse==0.4.0 huggingface-hub==0.24.6 humanfriendly==10.0 hyppo==0.4.0 identify==2.6.0 idna==3.8 imagesize==1.4.1 importlib_metadata==8.4.0 importlib_resources==6.4.4 iniconfig==2.0.0 ipython==8.27.0 isodate==0.6.1 jedi==0.19.1 Jinja2==3.1.4 jiter==0.5.0 joblib==1.4.2 json_repair==0.26.0 jsonpatch==1.33 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2023.12.1 kiwisolver==1.4.5
Editable install with no version control (kotaemon==0.4.3)
-e /hy-tmp/kotaemon/libs/kotaemon
Editable install with no version control (ktem==0.4.3)
-e /hy-tmp/kotaemon/libs/ktem kubernetes==30.1.0 lancedb==0.11.0 langchain==0.1.20 langchain-community==0.0.38 langchain-core==0.1.52 langchain-openai==0.1.7 langchain-text-splitters==0.0.2 langsmith==0.1.108 linkify-it-py==2.0.3 llama-cloud==0.0.15 llama-hub==0.0.79.post1 llama-index==0.10.68 llama-index-agent-openai==0.2.9 llama-index-cli==0.1.13 llama-index-core==0.10.68.post1 llama-index-embeddings-openai==0.1.11 llama-index-indices-managed-llama-cloud==0.2.7 llama-index-legacy==0.9.48.post3 llama-index-llms-openai==0.1.31 llama-index-multi-modal-llms-openai==0.1.9 llama-index-program-openai==0.1.7 llama-index-question-gen-openai==0.1.3 llama-index-readers-file==0.1.33 llama-index-readers-llama-parse==0.1.6 llama-index-vector-stores-chroma==0.1.10 llama-index-vector-stores-lancedb==0.1.7 llama-parse==0.4.9 llvmlite==0.43.0 locket==1.0.0 lxml==5.3.0 Markdown==3.7 markdown-it-py==3.0.0 MarkupSafe==2.1.5 marshmallow==3.22.0 matplotlib==3.9.2 matplotlib-inline==0.1.7 mccabe==0.7.0 mdit-py-plugins==0.4.1 mdurl==0.1.2 mmh3==4.1.0 monotonic==1.6 mpmath==1.3.0 msal==1.30.0 msal-extensions==1.2.0 multidict==6.0.5 multipart==0.2.5 mypy-extensions==1.0.0 nest-asyncio==1.6.0 networkx==3.3 nltk==3.9.1 nodeenv==1.9.1 numba==0.60.0 numpy==1.26.4 oauthlib==3.2.2 onnxruntime==1.19.0 openai==1.43.0 openpyxl==3.1.5 opentelemetry-api==1.27.0 opentelemetry-exporter-otlp-proto-common==1.27.0 opentelemetry-exporter-otlp-proto-grpc==1.27.0 opentelemetry-instrumentation==0.48b0 opentelemetry-instrumentation-asgi==0.48b0 opentelemetry-instrumentation-fastapi==0.48b0 opentelemetry-proto==1.27.0 opentelemetry-sdk==1.27.0 opentelemetry-semantic-conventions==0.48b0 opentelemetry-util-http==0.48b0 orjson==3.10.7 overrides==7.7.0 packaging==23.2 pandas==2.2.2 parso==0.8.4 partd==1.4.2 pathspec==0.12.1 patsy==0.5.6 pdfservices-sdk @ git+https://github.com/niallcm/pdfservices-python-sdk.git@f00319c6c6fab2f10875f5d1a5e95186d46cdf78 pep517==0.13.1 pexpect==4.9.0 pillow==10.4.0 platformdirs==4.2.2 plotly==5.24.0 pluggy==1.5.0 polling==0.3.2 polling2==0.5.0 portalocker==2.10.1 posthog==3.6.0 POT==0.9.4 pre-commit==3.8.0 prompt_toolkit==3.0.47 protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 pure_eval==0.2.3 py==1.11.0 pyaml==23.12.0 pyaml-env==1.2.1 pyarrow==15.0.2 pyasn1==0.6.0 pyasn1_modules==0.4.0 pybind11==2.13.5 pycodestyle==2.12.1 pycparser==2.22 pydantic==2.8.2 pydantic_core==2.20.1 pydub==0.25.1 pyflakes==3.2.0 Pygments==2.14.0 PyJWT==2.4.0 pylance==0.15.0 PyMuPDF==1.24.9 PyMuPDFb==1.24.9 pynndescent==0.5.13 pyparsing==3.0.9 pypdf==4.2.0 PyPika==0.48.9 pyproject_hooks==1.1.0 pyreqwest_impersonate==0.5.3 pytest==8.3.2 pytest-mock==3.14.0 python-dateutil==2.9.0.post0 python-decouple==3.8 python-docx==1.1.2 python-dotenv==1.0.1 python-multipart==0.0.9 python-slugify==8.0.4 pytz==2024.1 PyYAML==6.0.2 ratelimiter==1.2.0.post0 referencing==0.35.1 regex==2024.7.24 requests==2.31.0 requests-oauthlib==2.0.0 requests-toolbelt==0.10.1 retry==0.9.2 retrying==1.3.4 rich==13.8.0 robust-downloader==0.0.2 rpds-py==0.20.0 rsa==4.9 ruff==0.6.3 scikit-learn==1.5.1 scipy==1.12.0 seaborn==0.13.2 semantic-version==2.10.0 shellingham==1.5.4 six==1.16.0 smart-open==7.0.4 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.6 Sphinx==8.0.2 sphinxcontrib-applehelp==2.0.0 sphinxcontrib-devhelp==2.0.0 sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 SQLAlchemy==2.0.32 sqlmodel==0.0.22 stack-data==0.6.3 starlette==0.38.4 statsmodels==0.14.2 striprtf==0.0.26 swifter==1.4.0 sympy==1.13.2 tabulate==0.9.0 tantivy==0.22.0 tenacity==9.0.0 text-unidecode==1.3 textual==0.76.0 theflow==0.8.6 threadpoolctl==3.5.0 tiktoken==0.7.0 tokenizers==0.19.1 toml==0.10.2 tomli==2.0.1 tomlkit==0.12.0 toolz==0.12.1 tqdm==4.66.5 traitlets==5.14.3 trogon==0.5.0 typer==0.12.5 types-python-dateutil==2.9.0.20240821 types-requests==2.32.0.20240712 typing-inspect==0.9.0 typing_extensions==4.12.2 tzdata==2024.1 uc-micro-py==1.0.3 umap-learn==0.5.6 urllib3==1.26.20 uvicorn==0.30.6 uvloop==0.20.0 virtualenv==20.26.3 watchfiles==0.24.0 wcwidth==0.2.13 websocket-client==1.8.0 websockets==11.0.3 wikipedia==1.4.0 wrapt==1.16.0 yarl==1.9.7 zipp==3.20.1
maybe confilct of python3.10 and llama index?
Unfortunately, I can't reproduce your issue. Our llama-index versions are the same (python 3.10.14 with llama-index==0.10.68).
Even when I rerun your error lines (from llama_index.core.bridge.pydantic import Field) in python terminal, it still works.
Can you reinstall the bellow list of packages in a clean conda environment?
aiofiles==23.2.1
aiohappyeyeballs==2.4.0
aiohttp==3.10.5
aiosignal==1.3.1
alabaster==1.0.0
annotated-types==0.7.0
anthropic==0.34.2
anyio==4.4.0
arrow==1.3.0
asgiref==3.8.1
asttokens==2.4.1
async-timeout==4.0.3
attrs==24.2.0
azure-ai-documentintelligence==1.0.0b4
azure-core==1.30.2
babel==2.16.0
backoff==2.2.1
bcrypt==4.2.0
beautifulsoup4==4.12.3
binaryornot==0.4.4
black==24.8.0
build==1.2.2
cachetools==5.5.0
certifi==2024.8.30
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.3.2
chroma-hnswlib==0.7.6
chromadb==0.5.5
click==8.1.7
cohere==5.3.5
coloredlogs==15.0.1
colorlog==6.8.2
contourpy==1.3.0
cookiecutter==2.6.0
coverage==7.6.1
cycler==0.12.1
dataclasses-json==0.6.7
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.14
deprecation==2.1.0
dirtyjson==1.0.8
diskcache==5.6.3
distlib==0.3.8
distro==1.9.0
docutils==0.21.2
duckduckgo_search==6.1.12
elastic-transport==8.15.0
elasticsearch==8.13.2
environs==9.5.0
et-xmlfile==1.1.0
exceptiongroup==1.2.2
executing==2.1.0
fast-langdetect==0.2.1
fastapi==0.112.1
fastavro==1.9.7
fasttext-wheel==0.9.2
ffmpy==0.4.0
filelock==3.16.0
flake8==7.1.1
flatbuffers==24.3.25
fonttools==4.53.1
frozenlist==1.4.1
fsspec==2024.9.0
google-auth==2.34.0
googleapis-common-protos==1.65.0
googlesearch-python==1.2.5
gradio==4.39.0
gradio_client==1.1.1
greenlet==3.0.3
grpcio==1.66.1
h11==0.14.0
html2text==2024.2.26
httpcore==1.0.5
httptools==0.6.1
httpx==0.27.2
httpx-sse==0.4.0
huggingface-hub==0.24.6
humanfriendly==10.0
identify==2.6.0
idna==3.8
imagesize==1.4.1
importlib_metadata==8.4.0
importlib_resources==6.4.4
iniconfig==2.0.0
ipython==8.27.0
isodate==0.6.1
jedi==0.19.1
Jinja2==3.1.4
jiter==0.5.0
joblib==1.4.2
jsonpatch==1.33
jsonpointer==3.0.0
kiwisolver==1.4.7
-e git+ssh://[email protected]/Cinnamon/kotaemon.git@855f3df75fc94dc1a7cfc37afcad7c31792fb7e1#egg=kotaemon&subdirectory=libs/kotaemon
-e git+ssh://[email protected]/Cinnamon/kotaemon.git@855f3df75fc94dc1a7cfc37afcad7c31792fb7e1#egg=ktem&subdirectory=libs/ktem
kubernetes==30.1.0
lancedb==0.12.0
langchain==0.1.20
langchain-anthropic==0.1.13
langchain-community==0.0.38
langchain-core==0.1.52
langchain-openai==0.1.7
langchain-text-splitters==0.0.2
langsmith==0.1.116
linkify-it-py==2.0.3
llama-cloud==0.0.17
llama-hub==0.0.79.post1
llama-index==0.10.68
llama-index-agent-openai==0.2.9
llama-index-cli==0.1.13
llama-index-core==0.10.68.post1
llama-index-embeddings-openai==0.1.11
llama-index-indices-managed-llama-cloud==0.2.7
llama-index-legacy==0.9.48.post3
llama-index-llms-openai==0.1.31
llama-index-multi-modal-llms-openai==0.1.9
llama-index-program-openai==0.1.7
llama-index-question-gen-openai==0.1.3
llama-index-readers-file==0.1.33
llama-index-readers-llama-parse==0.1.6
llama-index-vector-stores-chroma==0.1.10
llama-index-vector-stores-lancedb==0.1.7
llama-index-vector-stores-milvus==0.1.23
llama-parse==0.4.9
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
marshmallow==3.22.0
matplotlib==3.9.2
matplotlib-inline==0.1.7
mccabe==0.7.0
mdit-py-plugins==0.4.1
mdurl==0.1.2
milvus-lite==2.4.10
mmh3==4.1.0
monotonic==1.6
mpmath==1.3.0
multidict==6.0.5
mypy-extensions==1.0.0
nest-asyncio==1.6.0
networkx==3.3
nltk==3.9.1
nodeenv==1.9.1
numpy==1.26.4
oauthlib==3.2.2
onnxruntime==1.19.2
openai==1.44.0
openpyxl==3.1.5
opentelemetry-api==1.27.0
opentelemetry-exporter-otlp-proto-common==1.27.0
opentelemetry-exporter-otlp-proto-grpc==1.27.0
opentelemetry-instrumentation==0.48b0
opentelemetry-instrumentation-asgi==0.48b0
opentelemetry-instrumentation-fastapi==0.48b0
opentelemetry-proto==1.27.0
opentelemetry-sdk==1.27.0
opentelemetry-semantic-conventions==0.48b0
opentelemetry-util-http==0.48b0
orjson==3.10.7
overrides==7.7.0
packaging==23.2
pandas==2.2.2
parso==0.8.4
pathspec==0.12.1
pexpect==4.9.0
pillow==10.4.0
platformdirs==4.3.1
plotly==5.24.0
pluggy==1.5.0
posthog==3.6.3
pre-commit==3.8.0
prompt_toolkit==3.0.47
protobuf==4.25.4
psutil==6.0.0
ptyprocess==0.7.0
pure_eval==0.2.3
py==1.11.0
pyaml==23.12.0
pyarrow==17.0.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pybind11==2.13.5
pycodestyle==2.12.1
pydantic==2.9.0
pydantic_core==2.23.2
pydub==0.25.1
pyflakes==3.2.0
Pygments==2.18.0
pylance==0.16.0
pymilvus==2.4.6
PyMuPDF==1.24.10
PyMuPDFb==1.24.10
pyparsing==3.1.4
pypdf==4.2.0
PyPika==0.48.9
pyproject_hooks==1.1.0
pyreqwest_impersonate==0.5.3
pytest==8.3.2
pytest-mock==3.14.0
python-dateutil==2.9.0.post0
python-decouple==3.8
python-docx==1.1.2
python-dotenv==1.0.1
python-multipart==0.0.9
python-slugify==8.0.4
pytz==2024.1
PyYAML==6.0.2
ratelimiter==1.2.0.post0
regex==2024.7.24
requests==2.32.3
requests-oauthlib==2.0.0
retry==0.9.2
retrying==1.3.4
rich==13.8.0
robust-downloader==0.0.2
rsa==4.9
ruff==0.6.4
semantic-version==2.10.0
shellingham==1.5.4
six==1.16.0
sniffio==1.3.1
snowballstemmer==2.2.0
soupsieve==2.6
Sphinx==8.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
SQLAlchemy==2.0.34
sqlmodel==0.0.22
stack-data==0.6.3
starlette==0.38.4
striprtf==0.0.26
sympy==1.13.2
tabulate==0.9.0
tantivy==0.22.0
tenacity==8.2.3
text-unidecode==1.3
textual==0.79.1
theflow==0.8.6
tiktoken==0.7.0
tokenizers==0.19.1
tomli==2.0.1
tomlkit==0.12.0
tqdm==4.66.5
traitlets==5.14.3
trogon==0.5.0
typer==0.12.5
types-python-dateutil==2.9.0.20240906
types-requests==2.32.0.20240907
typing-inspect==0.9.0
typing_extensions==4.12.2
tzdata==2024.1
uc-micro-py==1.0.3
ujson==5.10.0
urllib3==2.2.2
uvicorn==0.30.6
uvloop==0.20.0
virtualenv==20.26.4
watchfiles==0.24.0
wcwidth==0.2.13
websocket-client==1.8.0
websockets==11.0.3
wikipedia==1.4.0
wrapt==1.16.0
yarl==1.10.0
zipp==3.20.1
Unfortunately, I can't reproduce your issue. Our llama-index versions are the same (python 3.10.14 with llama-index==0.10.68). Even when I rerun your error lines (
from llama_index.core.bridge.pydantic import Field) in python terminal, it still works.Can you reinstall the bellow list of packages in a clean
condaenvironment?aiofiles==23.2.1 aiohappyeyeballs==2.4.0 aiohttp==3.10.5 aiosignal==1.3.1 alabaster==1.0.0 annotated-types==0.7.0 anthropic==0.34.2 anyio==4.4.0 arrow==1.3.0 asgiref==3.8.1 asttokens==2.4.1 async-timeout==4.0.3 attrs==24.2.0 azure-ai-documentintelligence==1.0.0b4 azure-core==1.30.2 babel==2.16.0 backoff==2.2.1 bcrypt==4.2.0 beautifulsoup4==4.12.3 binaryornot==0.4.4 black==24.8.0 build==1.2.2 cachetools==5.5.0 certifi==2024.8.30 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 chroma-hnswlib==0.7.6 chromadb==0.5.5 click==8.1.7 cohere==5.3.5 coloredlogs==15.0.1 colorlog==6.8.2 contourpy==1.3.0 cookiecutter==2.6.0 coverage==7.6.1 cycler==0.12.1 dataclasses-json==0.6.7 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 deprecation==2.1.0 dirtyjson==1.0.8 diskcache==5.6.3 distlib==0.3.8 distro==1.9.0 docutils==0.21.2 duckduckgo_search==6.1.12 elastic-transport==8.15.0 elasticsearch==8.13.2 environs==9.5.0 et-xmlfile==1.1.0 exceptiongroup==1.2.2 executing==2.1.0 fast-langdetect==0.2.1 fastapi==0.112.1 fastavro==1.9.7 fasttext-wheel==0.9.2 ffmpy==0.4.0 filelock==3.16.0 flake8==7.1.1 flatbuffers==24.3.25 fonttools==4.53.1 frozenlist==1.4.1 fsspec==2024.9.0 google-auth==2.34.0 googleapis-common-protos==1.65.0 googlesearch-python==1.2.5 gradio==4.39.0 gradio_client==1.1.1 greenlet==3.0.3 grpcio==1.66.1 h11==0.14.0 html2text==2024.2.26 httpcore==1.0.5 httptools==0.6.1 httpx==0.27.2 httpx-sse==0.4.0 huggingface-hub==0.24.6 humanfriendly==10.0 identify==2.6.0 idna==3.8 imagesize==1.4.1 importlib_metadata==8.4.0 importlib_resources==6.4.4 iniconfig==2.0.0 ipython==8.27.0 isodate==0.6.1 jedi==0.19.1 Jinja2==3.1.4 jiter==0.5.0 joblib==1.4.2 jsonpatch==1.33 jsonpointer==3.0.0 kiwisolver==1.4.7 -e git+ssh://[email protected]/Cinnamon/kotaemon.git@855f3df75fc94dc1a7cfc37afcad7c31792fb7e1#egg=kotaemon&subdirectory=libs/kotaemon -e git+ssh://[email protected]/Cinnamon/kotaemon.git@855f3df75fc94dc1a7cfc37afcad7c31792fb7e1#egg=ktem&subdirectory=libs/ktem kubernetes==30.1.0 lancedb==0.12.0 langchain==0.1.20 langchain-anthropic==0.1.13 langchain-community==0.0.38 langchain-core==0.1.52 langchain-openai==0.1.7 langchain-text-splitters==0.0.2 langsmith==0.1.116 linkify-it-py==2.0.3 llama-cloud==0.0.17 llama-hub==0.0.79.post1 llama-index==0.10.68 llama-index-agent-openai==0.2.9 llama-index-cli==0.1.13 llama-index-core==0.10.68.post1 llama-index-embeddings-openai==0.1.11 llama-index-indices-managed-llama-cloud==0.2.7 llama-index-legacy==0.9.48.post3 llama-index-llms-openai==0.1.31 llama-index-multi-modal-llms-openai==0.1.9 llama-index-program-openai==0.1.7 llama-index-question-gen-openai==0.1.3 llama-index-readers-file==0.1.33 llama-index-readers-llama-parse==0.1.6 llama-index-vector-stores-chroma==0.1.10 llama-index-vector-stores-lancedb==0.1.7 llama-index-vector-stores-milvus==0.1.23 llama-parse==0.4.9 lxml==5.3.0 Markdown==3.7 markdown-it-py==3.0.0 MarkupSafe==2.1.5 marshmallow==3.22.0 matplotlib==3.9.2 matplotlib-inline==0.1.7 mccabe==0.7.0 mdit-py-plugins==0.4.1 mdurl==0.1.2 milvus-lite==2.4.10 mmh3==4.1.0 monotonic==1.6 mpmath==1.3.0 multidict==6.0.5 mypy-extensions==1.0.0 nest-asyncio==1.6.0 networkx==3.3 nltk==3.9.1 nodeenv==1.9.1 numpy==1.26.4 oauthlib==3.2.2 onnxruntime==1.19.2 openai==1.44.0 openpyxl==3.1.5 opentelemetry-api==1.27.0 opentelemetry-exporter-otlp-proto-common==1.27.0 opentelemetry-exporter-otlp-proto-grpc==1.27.0 opentelemetry-instrumentation==0.48b0 opentelemetry-instrumentation-asgi==0.48b0 opentelemetry-instrumentation-fastapi==0.48b0 opentelemetry-proto==1.27.0 opentelemetry-sdk==1.27.0 opentelemetry-semantic-conventions==0.48b0 opentelemetry-util-http==0.48b0 orjson==3.10.7 overrides==7.7.0 packaging==23.2 pandas==2.2.2 parso==0.8.4 pathspec==0.12.1 pexpect==4.9.0 pillow==10.4.0 platformdirs==4.3.1 plotly==5.24.0 pluggy==1.5.0 posthog==3.6.3 pre-commit==3.8.0 prompt_toolkit==3.0.47 protobuf==4.25.4 psutil==6.0.0 ptyprocess==0.7.0 pure_eval==0.2.3 py==1.11.0 pyaml==23.12.0 pyarrow==17.0.0 pyasn1==0.6.0 pyasn1_modules==0.4.0 pybind11==2.13.5 pycodestyle==2.12.1 pydantic==2.9.0 pydantic_core==2.23.2 pydub==0.25.1 pyflakes==3.2.0 Pygments==2.18.0 pylance==0.16.0 pymilvus==2.4.6 PyMuPDF==1.24.10 PyMuPDFb==1.24.10 pyparsing==3.1.4 pypdf==4.2.0 PyPika==0.48.9 pyproject_hooks==1.1.0 pyreqwest_impersonate==0.5.3 pytest==8.3.2 pytest-mock==3.14.0 python-dateutil==2.9.0.post0 python-decouple==3.8 python-docx==1.1.2 python-dotenv==1.0.1 python-multipart==0.0.9 python-slugify==8.0.4 pytz==2024.1 PyYAML==6.0.2 ratelimiter==1.2.0.post0 regex==2024.7.24 requests==2.32.3 requests-oauthlib==2.0.0 retry==0.9.2 retrying==1.3.4 rich==13.8.0 robust-downloader==0.0.2 rsa==4.9 ruff==0.6.4 semantic-version==2.10.0 shellingham==1.5.4 six==1.16.0 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.6 Sphinx==8.0.2 sphinxcontrib-applehelp==2.0.0 sphinxcontrib-devhelp==2.0.0 sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 SQLAlchemy==2.0.34 sqlmodel==0.0.22 stack-data==0.6.3 starlette==0.38.4 striprtf==0.0.26 sympy==1.13.2 tabulate==0.9.0 tantivy==0.22.0 tenacity==8.2.3 text-unidecode==1.3 textual==0.79.1 theflow==0.8.6 tiktoken==0.7.0 tokenizers==0.19.1 tomli==2.0.1 tomlkit==0.12.0 tqdm==4.66.5 traitlets==5.14.3 trogon==0.5.0 typer==0.12.5 types-python-dateutil==2.9.0.20240906 types-requests==2.32.0.20240907 typing-inspect==0.9.0 typing_extensions==4.12.2 tzdata==2024.1 uc-micro-py==1.0.3 ujson==5.10.0 urllib3==2.2.2 uvicorn==0.30.6 uvloop==0.20.0 virtualenv==20.26.4 watchfiles==0.24.0 wcwidth==0.2.13 websocket-client==1.8.0 websockets==11.0.3 wikipedia==1.4.0 wrapt==1.16.0 yarl==1.10.0 zipp==3.20.1
Thank you , i will try it later
I am encountering a type hinting error in the LlamaIndex library, specifically in the file llama_index\core\indices\property_graph\transformations\schema_llm.py. The error occurs on a line defining a class attribute using TypeAlias:
possible_entities: Optional[TypeAlias] = None The error message states: "Plain typing.TypeAlias is not valid as type argument."
I am running Python 3.10 (64-bit) on Windows 10 Pro.
Steps to Reproduce:
- Cloned the project.
- Ran pip install to install the dependencies.
- Executed the command py app.py.
List of packages aiofiles 23.2.1 aiohappyeyeballs 2.4.0 aiohttp 3.10.5 aiosignal 1.3.1 annotated-types 0.7.0 anthropic 0.34.2 anyio 4.4.0 arrow 1.3.0 asgiref 3.8.1 async-timeout 4.0.3 attrs 24.2.0 backoff 2.2.1 bcrypt 4.2.0 beautifulsoup4 4.12.3 binaryornot 0.4.4 build 1.2.2 cachetools 5.5.0 certifi 2024.8.30 chardet 5.2.0 charset-normalizer 3.3.2 chroma-hnswlib 0.7.6 chromadb 0.5.5 click 8.1.7 cohere 5.3.5 colorama 0.4.6 coloredlogs 15.0.1 colorlog 6.8.2 contourpy 1.3.0 cookiecutter 2.6.0 cycler 0.12.1 dataclasses-json 0.6.7 decorator 5.1.1 defusedxml 0.7.1 Deprecated 1.2.14 deprecation 2.1.0 dirtyjson 1.0.8 diskcache 5.6.3 distro 1.9.0 environs 9.5.0 et-xmlfile 1.1.0 exceptiongroup 1.2.2 fast-langdetect 0.2.1 fastapi 0.112.1 fastavro 1.9.7 fasttext-wheel 0.9.2 ffmpy 0.4.0 filelock 3.16.0 flatbuffers 24.3.25 fonttools 4.53.1 frozenlist 1.4.1 fsspec 2024.9.0 google-auth 2.34.0 googleapis-common-protos 1.65.0 gradio 4.39.0 gradio_client 1.1.1 greenlet 3.0.3 grpcio 1.66.1 h11 0.14.0 html2text 2024.2.26 httpcore 1.0.5 httptools 0.6.1 httpx 0.27.2 httpx-sse 0.4.0 huggingface-hub 0.24.6 humanfriendly 10.0 idna 3.8 importlib_metadata 8.4.0 importlib_resources 6.4.4 Jinja2 3.1.4 jiter 0.5.0 joblib 1.4.2 jsonpatch 1.33 jsonpointer 3.0.0 kiwisolver 1.4.7 kotaemon 0.4.15 kotaemon-app 0.4.14 ktem 0.4.15 kubernetes 30.1.0 lancedb 0.12.0 langchain 0.1.20 langchain-anthropic 0.1.13 langchain-community 0.0.38 langchain-core 0.1.52 langchain-openai 0.1.7 langchain-text-splitters 0.0.2 langsmith 0.1.116 linkify-it-py 2.0.3 llama-cloud 0.0.17 llama-hub 0.0.79.post1 llama-index 0.10.68 llama-index-agent-openai 0.2.9 llama-index-cli 0.1.13 llama-index-core 0.10.68.post1 llama-index-embeddings-openai 0.1.11 llama-index-indices-managed-llama-cloud 0.2.7 llama-index-legacy 0.9.48.post3 llama-index-llms-openai 0.1.31 llama-index-multi-modal-llms-openai 0.1.9 llama-index-program-openai 0.1.7 llama-index-question-gen-openai 0.1.3 llama-index-readers-file 0.1.33 llama-index-readers-llama-parse 0.1.6 llama-index-vector-stores-chroma 0.1.10 llama-index-vector-stores-lancedb 0.1.7 llama-index-vector-stores-milvus 0.1.23 llama-parse 0.4.9 Markdown 3.7 markdown-it-py 3.0.0 MarkupSafe 2.1.5 marshmallow 3.22.0 matplotlib 3.9.2 mdit-py-plugins 0.4.1 mdurl 0.1.2 mmh3 4.1.0 monotonic 1.6 mpmath 1.3.0 multidict 6.0.5 mypy-extensions 1.0.0 nest-asyncio 1.6.0 networkx 3.3 nltk 3.9.1 numpy 1.26.4 oauthlib 3.2.2 onnxruntime 1.19.2 openai 1.44.0 openpyxl 3.1.5 opentelemetry-api 1.27.0 opentelemetry-exporter-otlp-proto-common 1.27.0 opentelemetry-exporter-otlp-proto-grpc 1.27.0 opentelemetry-instrumentation 0.48b0 opentelemetry-instrumentation-asgi 0.48b0 opentelemetry-instrumentation-fastapi 0.48b0 opentelemetry-proto 1.27.0 opentelemetry-sdk 1.27.0 opentelemetry-semantic-conventions 0.48b0 opentelemetry-util-http 0.48b0 orjson 3.10.7 overrides 7.7.0 packaging 23.2 pandas 2.2.2 pillow 10.4.0 pip 24.2 platformdirs 4.3.2 plotly 5.24.0 pluggy 1.5.0 posthog 3.6.4 protobuf 4.25.4 psutil 6.0.0 py 1.11.0 pyaml 23.12.0 pyarrow 17.0.0 pyasn1 0.6.0 pyasn1_modules 0.4.0 pybind11 2.13.5 pydantic 2.9.1 pydantic_core 2.23.3 pydub 0.25.1 Pygments 2.18.0 pylance 0.16.0 pymilvus 2.4.6 PyMuPDF 1.24.10 PyMuPDFb 1.24.10 pyparsing 3.1.4 pypdf 4.2.0 PyPika 0.48.9 pyproject_hooks 1.1.0 pyreadline3 3.4.1 python-dateutil 2.9.0.post0 python-decouple 3.8 python-dotenv 1.0.1 python-multipart 0.0.9 python-slugify 8.0.4 pytz 2024.1 PyYAML 6.0.2 ratelimiter 1.2.0.post0 regex 2024.7.24 requests 2.32.3 requests-oauthlib 2.0.0 retry 0.9.2 retrying 1.3.4 rich 13.8.0 robust-downloader 0.0.2 rsa 4.9 ruff 0.6.4 semantic-version 2.10.0 setuptools 74.1.2 shellingham 1.5.4 six 1.16.0 sniffio 1.3.1 soupsieve 2.6 SQLAlchemy 2.0.34 sqlmodel 0.0.22 starlette 0.38.5 striprtf 0.0.26 sympy 1.13.2 tantivy 0.22.0 tenacity 8.2.3 text-unidecode 1.3 textual 0.79.1 theflow 0.8.6 tiktoken 0.7.0 tokenizers 0.19.1 tomli 2.0.1 tomlkit 0.12.0 tqdm 4.66.5 trogon 0.5.0 typer 0.12.5 types-python-dateutil 2.9.0.20240906 types-requests 2.32.0.20240907 typing_extensions 4.12.2 typing-inspect 0.9.0 tzdata 2024.1 uc-micro-py 1.0.3 ujson 5.10.0 urllib3 2.2.2 uvicorn 0.30.6 watchfiles 0.24.0 websocket-client 1.8.0 websockets 11.0.3 wrapt 1.16.0 yarl 1.11.0 zipp 3.20.1
I had the same issue. It looks like it's caused by a version incompatibility between Python 3.10.0 and the llama-index library.
Updating the environment Python version to 3.10.14 solved the problem for me:
conda install python==3.10.14
Updating the environment Python version to 3.10.14 solved the problem for me:
Thanks @Canossi, my default version is 3.10.14. Didn't think that a change in the PATCH version could affect that much.
@hilticomp, can you provide your detailed python PATHC version of py3.10 (3.10.x ?), so we can investigate this issue.
Hi Team, I also tried the same with various of the versions but could not solve the same issue. I'm using python 3.10.0 & followed all the steps mentioned in readme & the debugging steps mentioned here. Can you help as what dependency needed & how to debug it universally. My colleague also tried with various versions & got success with 0.4.11.
I had the same issue, I'm able to run it using Python 3.10.14 Download the installer from https://github.com/adang1345/PythonWindows/blob/master/3.10.14/python-3.10.14-amd64-full.exe As the installer is not available on python Website