TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'

If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed? It’s deployed.
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform? Community Cloud.
    b. Share the link to the public deployed app .
    https://sales-engag-tool.streamlit.app/
  3. Share the link to your app’s public GitHub repository (including a requirements file).

sorry the repository is private since my gmail integrations are part of the
repository files.

  1. Share the full text of the error message (not a screenshot).
    Pls see below the error message:

TypeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 589, in run_script
exec(code, module.dict)
File “/mount/src/streamlit-app-sales-engag/streamlit_app/app.py”, line 11, in
from create_engagement_json import generate_and_save_json as generate_and_save_engagement_json
File “/mount/src/streamlit-app-sales-engag/streamlit_app/create_engagement_json.py”, line 13, in
from langchain_openai import ChatOpenAI
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_openai/init.py”, line 1, in
from langchain_openai.chat_models import (
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_openai/chat_models/init.py”, line 1, in
from langchain_openai.chat_models.azure import AzureChatOpenAI
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_openai/chat_models/azure.py”, line 13, in
from langchain_openai.chat_models.base import BaseChatOpenAI
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_openai/chat_models/base.py”, line 32, in
from langchain_core.callbacks import (
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_core/callbacks/init.py”, line 22, in
from langchain_core.callbacks.manager import (
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_core/callbacks/manager.py”, line 29, in
from langsmith.run_helpers import get_run_tree_context
File “/home/adminuser/venv/lib/python3.12/site-packages/langsmith/run_helpers.py”, line 40, in
from langsmith import client as ls_client
File “/home/adminuser/venv/lib/python3.12/site-packages/langsmith/client.py”, line 52, in
from langsmith import env as ls_env
File “/home/adminuser/venv/lib/python3.12/site-packages/langsmith/env/init.py”, line 3, in
from langsmith.env.runtime_env import (
File "/home/adminuser/venv/lib/python3.12/site-packages/langsmith/env/runtime_env.py", line 10, in
from langsmith.utils import get_docker_compose_command
File “/home/adminuser/venv/lib/python3.12/site-packages/langsmith/utils.py”, line 31, in
from langsmith import schemas as ls_schemas
File “/home/adminuser/venv/lib/python3.12/site-packages/langsmith/schemas.py”, line 69, in
class Example(ExampleBase):
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/main.py”, line 286, in new
cls.try_update_forward_refs()
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/main.py”, line 807, in try_update_forward_refs
update_model_forward_refs(cls, cls.fields.values(), cls.config.json_encoders, localns, (NameError,))
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/typing.py”, line 554, in update_model_forward_refs
update_field_forward_refs(f, globalns=globalns, localns=localns)
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/typing.py”, line 520, in update_field_forward_refs
field.type
= evaluate_forwardref(field.type
, globalns, localns or None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/typing.py”, line 66, in evaluate_forwardref
return cast(Any, type
)._evaluate(globalns, localns, set())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I also checked the error logs (an extract below):

TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: ‘recursive_guard’

  1. Share the Streamlit and Python versions. - Streamlit app link shared above.

I tested the app on my local drive with the same environment as specified in the requirements.txt that my streamlit app is using. The app works fine on my local drive.

I have tried changing the pydantic, Langchain, Langsmith versions numbers but it doesn’t help.

Pls advise as to how I deploy this app on streamlit.

Hi @Nagarajan,

Thanks for sharing this question!

Can you share the contents of your requirements.txt file? This seems to be a dependency issue with Pydantic and not Streamlit.

Checkout this similar issue that was resolved in the Pydantic issues on GitHub.

Hi Tony,

Thanks for your reply. Pls see below the contents of my requirements.txt file.

I am also looking through the earlier case you shared.

I’'m using Python 3.12.2.

—contents of requirements.txt-----------

aiohttp==3.9.5
aiosignal==1.3.1
altair==5.3.0
annotated-types==0.7.0
anyio==4.4.0
asgiref==3.8.1
asttokens==2.4.1
attrs==23.2.0
backoff==2.2.1
bcrypt==4.1.3
beautifulsoup4==4.12.3
bleach==6.1.0
blinker==1.8.2
build==1.2.1
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
chroma-hnswlib==0.7.3
chromadb==0.5.3
click==8.1.7
colorama==0.4.6
coloredlogs==15.0.1
comm==0.2.2
dataclasses-json==0.6.7
debugpy==1.8.1
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.14
distlib==0.3.8
distro==1.9.0
dnspython==2.6.1
email-validator==2.2.0
executing==2.0.1
fastapi==0.111.0
fastapi-cli==0.0.4
fastjsonschema==2.20.0
filelock==3.13.1
flatbuffers==24.3.25
frozenlist==1.4.1
fsspec==2024.5.0
gitdb==4.0.11
GitPython==3.1.43
google-api-core==2.19.1
google-api-python-client==2.135.0
google-auth==2.28.2
google-auth-httplib2==0.2.0
google-auth-oauthlib==1.2.0
googleapis-common-protos==1.63.2
greenlet==3.0.3
grpcio==1.64.1
h11==0.14.0
httpcore==1.0.5
httplib2==0.22.0
httptools==0.6.1
httpx==0.27.0
huggingface-hub==0.23.4
humanfriendly==10.0
idna==3.7
importlib_metadata==7.1.0
importlib_resources==6.4.0
inflection==0.5.1
intel-openmp==2021.4.0
ipykernel==6.29.4
ipython==8.24.0
jedi==0.19.1
Jinja2==3.1.4
jsonpatch==1.33
jsonpointer==2.4
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyterlab_pygments==0.3.0
kubernetes==30.1.0
langchain==0.1.20
langchain-chroma==0.1.2
langchain-community==0.0.38
langchain-core==0.1.52
langchain-openai==0.1.6
langchain-text-splitters==0.0.2
langgraph==0.0.51
langsmith==0.1.83
llvmlite==0.42.0
markdown-it-py==3.0.0
MarkupSafe==2.1.5
marshmallow==3.21.3
matplotlib-inline==0.1.7
mdurl==0.1.2
mistune==3.0.2
mkl==2021.4.0
mmh3==4.1.0
monotonic==1.6
more-itertools==10.2.0
mpmath==1.3.0
multidict==6.0.5
mypy-extensions==1.0.0
mysql-connector-python==8.4.0
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest-asyncio==1.6.0
networkx==3.1
numba==0.59.1
numpy==1.26.4
oauthlib==3.2.2
onnxruntime==1.18.1
openai==1.34.0
opentelemetry-api==1.25.0
opentelemetry-exporter-otlp-proto-common==1.25.0
opentelemetry-exporter-otlp-proto-grpc==1.25.0
opentelemetry-instrumentation==0.46b0
opentelemetry-instrumentation-asgi==0.46b0
opentelemetry-instrumentation-fastapi==0.46b0
opentelemetry-proto==1.25.0
opentelemetry-sdk==1.25.0
opentelemetry-semantic-conventions==0.46b0
opentelemetry-util-http==0.46b0
orjson==3.10.1
overrides==7.7.0
packaging==23.2
pandas==2.2.2
pandocfilters==1.5.1
parso==0.8.4
pillow==10.3.0
pip==24.1.1
platformdirs==4.2.0
posthog==3.5.0
prompt-toolkit==3.0.43
proto-plus==1.24.0
protobuf==4.25.3
psutil==5.9.8
pure-eval==0.2.2
pyairtable==2.3.3
pyarrow==16.1.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycryptodome==3.20.0
pydantic==2.7.4
pydantic_core==2.18.4
pydeck==0.9.1
pydub==0.25.1
Pygments==2.18.0
pyparsing==3.1.2
PyPika==0.48.9
pyproject_hooks==1.1.0
pyreadline3==3.4.1
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.9
pytube==15.0.0
pytz==2024.1
PyYAML==6.0.1
pyzmq==26.0.3
referencing==0.35.1
regex==2024.4.16
requests==2.31.0
requests-oauthlib==2.0.0
rich==13.7.1
rpds-py==0.18.1
rsa==4.9
setuptools==70.0.0
shellingham==1.5.4
six==1.16.0
smmap==5.0.1
sniffio==1.3.1
soupsieve==2.5
SQLAlchemy==2.0.31
stack-data==0.6.3
starlette==0.37.2
streamlit==1.36.0
sympy==1.12
tbb==2021.12.0
tenacity==8.2.3
tiktoken==0.5.2
tinycss2==1.3.0
tokenizers==0.19.1
toml==0.10.2
toolz==0.12.1
torch==2.3.0
tornado==6.4
tqdm==4.66.4
traitlets==5.14.3
typer==0.12.3
typing_extensions==4.11.0
typing-inspect==0.9.0
tzdata==2024.1
ujson==5.10.0
uritemplate==4.1.1
urllib3==2.2.1
uuid6==2024.1.12
uvicorn==0.30.1
vectorshift==0.0.60
virtualenv==20.25.1
watchdog==4.0.1
watchfiles==0.22.0
wcwidth==0.2.13
webencodings==0.5.1
websocket-client==1.8.0
websockets==12.0
wrapt==1.16.0
yarl==1.9.4
zipp==3.19.2
zohocrmsdk6_0==5.0.0

Hi @tonykip ,

The Issue got resolved when I created a runtime.txt file to set the python package to 3.12.3.

However when I deployed it again, it gave me an error Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >=3.35.

ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.38.0 Requires-Python >=3.7,<3.11; 0.38.1 Requires-Python >=3.7,<3.11; 0.5.12 Requires-Python >=3.7,<3.12; 0.5.13 Requires-Python >=3.7,<3.12; 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 0.55.0 Requires-Python >=3.7,<3.11; 0.55.0rc1 Requires-Python >=3.7,<3.11; 0.55.1 Requires-Python >=3.7,<3.11; 0.55.2 Requires-Python >=3.7,<3.11; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement pysqlite3-binary==0.5.3 (from versions: none)
ERROR: No matching distribution found for pysqlite3-binary==0.5.3

The above issue could not be resolved because I need to set Python version to 3.12.3.

so I have to use a docker in which with Pythonversion 3.12 and libsqlite3-dev. I don’t think there is a way to deploy this without using a Docker. It would be great if a better solution is evolved.

It is hard to understand what you are doing here. pysqlite3-binary==0.5.3 can be installed in streamlit cloud with python 3.12. If you can’t install it, it must be something specific to your repository. I don’t know what it can be, but I bet it is unrelated to your gmail integrations, whatever you mean by that.

The issue took me some time to get my head around. Pydantic in Python versions 3.6 or 3.7 needs an argument ‘recursive guard’. To avoid this I had to set my Python version to 3.12. But ChromaDB requires sqlite3 >=3.35 which needs a Python version less than 3.11 as per the error message above. so basically there is no viable way ro resolve this dependency conflict on streamlit cloud but to use a docker. to override the python version also needs using a Docker, Pls correct me if I missed something,

Irrelevant, since both versions have already reached their end of life and you cannot use them in streamlit cloud, no matter what.

No, any version >= 3.8 should do, according to your former claim. But I think aiming for 3.12 is advisable.

Right.

That is not true and I can’t spot any error messages saying that in your posts.

It is not clear exactly what dependency conflict you are experiencing. As I said, pysqlite3-binary can be installed in streamlit cloud without issues.

Nagarajan: Pydantic in Python versions 3.6 or 3.7 needs an argument ‘recursive guard’.

Goyo: Irrelevant, since both versions have already reached their end of life and you cannot use them in streamlit cloud, no matter what.

Nagarajan: Sorry for the confusion I meant Python 3.13/3.12.4+ made recursive_guard a kwarg so had to set Python to 3.12

File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/typing.py”, line 66, in evaluate_forwardref
# Python 3.13/3.12.4+ made recursive_guard a kwarg, so name it explicitly to avoid:

Nagarajan: To avoid this I had to set my Python version to 3.12

Goyo: No, any version >= 3.8 should do, according to your former claim. But I think aiming for 3.12 is advisable.

Nagarajan: ChromaDB requires sqlite3 >=3.35

Goyo: Right.

Nagarajan: which needs a Python version less than 3.11 as per the error message above

Goyo: That is not true and I can’t spot any error messages saying that in your posts.

Nagarajan: Let me clarify. sqlite3 >=3.35 needs a Python version 3.12.4 or above but I had to use 3.12.3 due to the Pydantic recursive guard error.

So I tried installing pysqlite3-binary==0.5.3 but that needs a Python version 3.11 or below.

ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.38.0 Requires-Python >=3.7,<3.11; 0.38.1 Requires-Python >=3.7,<3.11; 0.5.12 Requires-Python >=3.7,<3.12; 0.5.13 Requires-Python >=3.7,<3.12; 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 0.55.0 Requires-Python >=3.7,<3.11; 0.55.0rc1 Requires-Python >=3.7,<3.11; 0.55.1 Requires-Python >=3.7,<3.11; 0.55.2 Requires-Python >=3.7,<3.11; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement pysqlite3-binary==0.5.3 (from versions: none)
ERROR: No matching distribution found for pysqlite3-binary==0.5.3

Nagarajan: there is no viable way ro resolve this dependency conflict on streamlit cloud

Goyo: It is not clear exactly what dependency conflict you are experiencing. As I said, pysqlite3-binary can be installed in streamlit cloud without issues.

Nagarajan: Pls read my replies today from above to your comments to arrive at the dependency conflict. It would be great if there is a way to resolve this. It wuld be much easier for me
to deploy to Streamlit cloud straightaway.

Another note - the email integration code specifically needs to read the credentials from a file on the project directory. So even I pass the credentials via a .env file, it still needs to create a file
in the project directory. Am happy to fork the repository and delete the file and make the repository public if it helps.

No. I kow that because I have been using sqlite >=3.35 with python 3.10 and python 3.11.

No. I know that because I have installed it in python 3.12.

I am unable to arrive to that dependency conflict. I can install pysqlite-binary in python 3.12 in streamlit cloud without issues. If you are having issues, something in your repository or your setup is causing them.

I tried deploying again. Pls see my full logs.

[ UTC ] Logs for sales-engag-tool.streamlit.app/

────────────────────────────────────────────────────────────────────────────────────────

[07:58:17] :desktop_computer: Provisioning machine…

[07:58:17] :control_knobs: Preparing system…

[07:58:17] :chains: Spinning up manager process…

[07:58:10] :rocket: Starting up repository: ‘streamlit-app-sales-engag’, branch: ‘main’, main module: ‘streamlit_app/app.py’

[07:58:10] :octopus: Cloning repository…

[07:58:12] :octopus: Cloning into ‘/mount/src/streamlit-app-sales-engag’…
Warning: Permanently added the ED25519 host key for IP address ‘140.82.116.4’ to the list of known hosts.

[07:58:12] :octopus: Cloned repository!

[07:58:12] :octopus: Pulling code changes from Github…

[07:58:13] :package: Processing dependencies…

[07:58:13] :package: Apt dependencies were installed from /mount/src/streamlit-app-sales-engag/packages.txt using apt-get.

Hit:1 ://deb.debian.org/debian bullseye InRelease

Get:2://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]

Get:3 Index of /debian bullseye-updates InRelease [44.1 kB]

Get:4 https://packages.microsoft.com/debian/11/prod bullseye InRelease [3650 B]

Get:5 Index of /debian-security bullseye-security/main amd64 Packages [279 kB]

Fetched 375 kB in 0s (1245 kB/s)

Reading package lists…[2024-07-06 07:58:14.875132]

Reading package lists…[2024-07-06 07:58:15.287177]

Building dependency tree…[2024-07-06 07:58:15.412955]

Reading state information…[2024-07-06 07:58:15.413236]

Suggested packages:

sqlite3-doc

The following NEW packages will be installed:

libsqlite3-dev

0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.

Need to get 963 kB of archives.

After this operation, 2620 kB of additional disk space will be used.

Get:1 Index of /debian bullseye/main amd64 libsqlite3-dev amd64 3.34.1-3 [963 kB]

debconf: delaying package configuration, since apt-utils is not installed

Fetched 963 kB in 0s (13.8 MB/s)

Selecting previously unselected package libsqlite3-dev:amd64.

(Reading database … 22037 files and directories currently installed.)

Preparing to unpack …/libsqlite3-dev_3.34.1-3_amd64.deb …

Unpacking libsqlite3-dev:amd64 (3.34.1-3) …

Setting up libsqlite3-dev:amd64 (3.34.1-3) …

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.

Resolved 219 packages in 1.58s

Downloaded 219 packages in 42.11s

Installed 219 packages in 399ms

  • aiohttp==3.9.5

  • aiosignal==1.3.1

  • altair==5.3.0

  • annotated-types==0.7.0

  • anyio==4.4.0

  • asgiref==3.8.1

  • asttokens==2.4.1

  • attrs==23.2.0

  • backoff==2.2.1

  • bcrypt==4.1.3

  • beautifulsoup4==4.12.3

  • bleach==6.1.0

  • blinker==1.8.2

  • build==1.2.1

  • cachetools[2024-07-06 07:59:01.061816] ==5.3.3

  • certifi==2024.2.2

  • charset-normalizer==3.3.2

  • chroma-hnswlib==0.7.3

  • chromadb==0.4.24

  • click==8.1.7

  • colorama==0.4.6

  • coloredlogs==15.0.1

  • comm==0.2.2

  • dataclasses-json==0.6.7

  • debugpy==1.8.1

  • decorator==5.1.1

  • defusedxml==0.7.1

  • deprecated==1.2.14

  • distlib==0.3.8

  • distro==1.9.0

  • dnspython==2.6.1

[2024-07-06 07:59:01.062342] + email-validator==2.2.0

  • executing==2.0.1

  • fastapi==0.111.0

  • fastapi-cli==0.0.4

  • fastjsonschema==2.20.0[2024-07-06 07:59:01.062460]

  • filelock==3.13.1

  • flatbuffers==24.3.25

  • frozenlist==1.4.1

  • fsspec==2024.5.0

  • gitdb[2024-07-06 07:59:01.062585] ==4.0.11

  • gitpython==3.1.43

  • google-api-core==2.19.1

  • google-api-python-client==2.135.0

  • google-auth==2.28.2

  • google-auth-httplib2==0.2.0[2024-07-06 07:59:01.062706]

  • google-auth-oauthlib==1.2.0

  • googleapis-common-protos==1.63.2

  • greenlet==3.0.3

  • grpcio==1.64.1

  • h11==0.14.0[2024-07-06 07:59:01.062856]

  • httpcore==1.0.5

  • httplib2==0.22.0

  • httptools==0.6.1

  • httpx==0.27.0

  • huggingface-hub==0.23.4

  • humanfriendly==10.0

  • idna==3.7

  • importlib-metadata==7.1.0

  • importlib-resources==6.4.0

+[2024-07-06 07:59:01.063090] inflection==0.5.1

  • intel-openmp==2021.4.0

  • ipykernel==6.29.4

  • ipython==8.24.0

  • jedi==0.19.1[2024-07-06 07:59:01.063211]

  • jinja2==3.1.4

  • jsonpatch==1.33

  • jsonpointer==2.4

  • jsonschema==4.22.0

  • jsonschema-specifications==2023.12.1

  • jupyter-client==8.6.1

  • jupyter-core==5.7.2

  • jupyterlab-pygments==0.3.0

  • kubernetes[2024-07-06 07:59:01.063446] ==30.1.0

  • langchain==0.1.20

  • langchain-chroma==0.1.2

  • langchain-community==0.0.38

  • langchain-core==0.1.52

+[2024-07-06 07:59:01.063608] langchain-openai==0.1.6

  • langchain-text-splitters==0.0.2

  • langgraph==0.0.51

  • langsmith==0.1.83

  • llvmlite==0.42.0[2024-07-06 07:59:01.063790]

  • markdown-it-py==3.0.0

  • markupsafe==2.1.5

  • marshmallow==3.21.3

  • matplotlib-inline==0.1.7

  • mdurl==0.1.2

  • mistune==3.0.2

  • mkl==2021.4.0

  • mmh3==4.1.0

  • monotonic==1.6

  • more-itertools==10.2.0

  • mpmath==1.3.0

  • multidict==6.0.5

  • mypy-extensions==1.0.0

  • mysql-connector-python==8.4.0

[2024-07-06 07:59:01.064102] + nbclient==0.10.0

  • nbconvert==7.16.4

  • nbformat==5.10.4

  • nest-asyncio==1.6.0

  • networkx==3.1

  • numba==0.59.1

  • numpy==1.26.4

  • nvidia-cublas-cu12==12.1.3.1

  • nvidia-cuda-cupti-cu12==12.1.105

  • nvidia-cuda-nvrtc-cu12==12.1.105[2024-07-06 07:59:01.064232]

  • nvidia-cuda-runtime-cu12==12.1.105

  • nvidia-cudnn-cu12==8.9.2.26

  • nvidia-cufft-cu12==11.0.2.54

  • nvidia-curand-cu12==10.3.2.106

  • nvidia-cusolver-cu12==11.4.5.107

  • nvidia-cusparse-cu12==12.1.0.106

  • nvidia-nccl-cu12==2.20.5

  • nvidia-nvjitlink-cu12==12.5.82

  • nvidia-nvtx-cu12==12.1.105

  • oauthlib==3.2.2

  • onnxruntime==1.18.1

  • openai==1.34.0

  • opentelemetry-api==1.25.0

  • opentelemetry-exporter-otlp-proto-common==1.25.0

  • [2024-07-06 07:59:01.064466] opentelemetry-exporter-otlp-proto-grpc==1.25.0

  • opentelemetry-instrumentation==0.46b0

  • opentelemetry-instrumentation-asgi==0.46b0

  • opentelemetry-instrumentation-fastapi==0.46b0

  • opentelemetry-proto==1.25.0

  • opentelemetry-sdk==1.25.0

  • opentelemetry-semantic-conventions==0.46b0

  • opentelemetry-util-http==0.46b0

  • orjson==3.10.1

  • overrides==7.7.0

  • packaging==23.2

  • pandas==2.2.2

  • pandocfilters==1.5.1

  • parso==0.8.4

  • pexpect==4.9.0

  • pillow==10.3.0

  • pip==24.0
  • pip[2024-07-06 07:59:01.064700] ==24.1.1

  • platformdirs==4.2.0

  • posthog==3.5.0

  • prompt-toolkit==3.0.43

  • proto-plus==1.24.0

  • protobuf==4.25.3

  • psutil==5.9.8

  • [2024-07-06 07:59:01.064842] ptyprocess==0.7.0

  • pulsar-client==3.5.0

  • pure-eval==0.2.2

  • pyairtable==2.3.3

  • pyarrow==16.1.0

  • pyasn1==0.6.0

  • pyasn1-modules==0.4.0

  • pycryptodome[2024-07-06 07:59:01.065019] ==3.20.0

  • pydantic==2.7.4

  • pydantic-core==2.18.4

  • pydeck==0.9.1

  • pydub==0.25.1

  • pygments==2.18.0

  • pyparsing==3.1.2

  • pypika==0.48.9

  • pyproject-hooks==1.1.0

  • pyreadline3==3.4.1

+[2024-07-06 07:59:01.065207] python-dateutil==2.9.0.post0

  • python-dotenv==1.0.1

  • python-multipart==0.0.9

  • pytube==15.0.0

  • pytz==2024.1

  • pyyaml==6.0.1

  • pyzmq==26.0.3

  • referencing==0.35.1

  • regex==2024.4.16

  • [2024-07-06 07:59:01.065351] requests==2.31.0

  • requests-oauthlib==2.0.0

  • rich==13.7.1

  • rpds-py==0.18.1

  • rsa==4.9

  • setuptools==70.0.0

  • shellingham==1.5.4

  • six==1.16.0

  • smmap==5.0.1

  • sniffio[2024-07-06 07:59:01.065498] ==1.3.1

  • soupsieve==2.5

  • sqlalchemy==2.0.31

  • stack-data==0.6.3

  • starlette==0.37.2

  • streamlit==1.36.0

  • sympy==1.12

  • tbb==2021.12.0

  • tenacity==8.2.3

  • tiktoken==0.5.2

  • tinycss2==1.3.0

  • tokenizers==0.19.1

  • toml==0.10.2

  • toolz==0.12.1

  • torch==2.3.0

  • tornado==6.4

  • tqdm==4.66.4

  • traitlets==5.14.3

  • [2024-07-06 07:59:01.065777] typer==0.12.3

  • typing-extensions==4.11.0

  • typing-inspect==0.9.0

  • tzdata==2024.1

  • ujson==5.10.0

  • uritemplate==4.1.1

  • urllib3==2.2.1

  • uuid6==2024.1.12

  • uvicorn==0.30.1

  • uvloop==0.19.0

  • vectorshift==0.0.60

  • virtualenv==20.25.1

  • watchdog==4.0.1

  • watchfiles==0.22.0

  • wcwidth==0.2.13

  • webencodings==0.5.1

  • websocket-client==1.8.0

  • websockets==12.0

  • wrapt==1.16.0

  • yarl==1.9.4

  • zipp==3.19.2

  • zohocrmsdk6-0==5.0.0

Checking if Streamlit is installed

Found Streamlit version 1.36.0 in the environment

────────────────────────────────────────────────────────────────────────────────────────

[07:59:03] :snake: Python dependencies were installed from /mount/src/streamlit-app-sales-engag/requirements.txt using uv.

Check if streamlit is installed

Streamlit is already installed

[07:59:04] :package: Processed dependencies!

────────────────────── Traceback (most recent call last) ───────────────────────

/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptru

nner/script_runner.py:589 in _run_script

/mount/src/streamlit-app-sales-engag/streamlit_app/app.py:13 in

 10 from transcription import transcribe_audio                              

 11 from datetime import datetime                                           

 12 from create_engagement_json import generate_and_save_json as generate_  

❱ 13 from create_SO_template_json import generate_and_save_json as generate

 14 from utils.airtable_retrieve_operations import fetch_all_records, get_  

 15 from insert_SO_template import insert_sales_order, fetch_sales_order_r  

 16 from create_draft_email import create_draft_email, authenticate_gmail_  

/mount/src/streamlit-app-sales-engag/streamlit_app/create_SO_template_json.p

y:14 in

 11 import pytz                                                             

 12 import streamlit as st                                                  

 13 from langchain_openai import ChatOpenAI, OpenAIEmbeddings               

❱ 14 from langchain_chroma import Chroma

 15 from langchain_core.documents import Document                           

 16 from langchain_core.prompts import PromptTemplate                       

 17 from langchain_core.tools import tool                                   

/home/adminuser/venv/lib/python3.12/site-packages/langchain_chroma/init.

py:5 in

 2                                                                          

 3 It contains the Chroma class for handling various tasks.                 

 4 """                                                                      

❱ 5 from langchain_chroma.vectorstores import Chroma

 6                                                                          

 7 __all__ = [                                                              

 8 │   "Chroma",                                                            

/home/adminuser/venv/lib/python3.12/site-packages/langchain_chroma/vectorsto

res.py:23 in

 20 │   Union,                                                              

 21 )                                                                       

 22                                                                         

❱ 23 import chromadb

 24 import chromadb.config                                                  

 25 import numpy as np                                                      

 26 from langchain_core.documents import Document                           

/home/adminuser/venv/lib/python3.12/site-packages/chromadb/init.py:79 in

 76 │   │   │   __import__("pysqlite3")                                     

 77 │   │   │   sys.modules["sqlite3"] = sys.modules.pop("pysqlite3")       

 78 │   │   else:                                                           

❱ 79 │ │ │ raise RuntimeError(

 80 │   │   │   │   "\033[91mYour system has an unsupported version of sql  

 81 │   │   │   │   │   requires sqlite3 >= 3.35.0.\033[0m\n"               

 82 │   │   │   │   "\033[94mPlease visit \                                 

────────────────────────────────────────────────────────────────────────────────

RuntimeError: e[91mYour system has an unsupported version of sqlite3. Chroma

requires sqlite3 >= 3.35.0.e[0m

e[94mPlease visit

//docs.trychroma.com/troubleshooting#sqlite to learn how

to upgrade.e[0m

main
nag-24/streamlit-app-sales-engag/main/streamlit_app/app.py

end of logs

From the logs, it’s clear that libsqlite3-dev version 3.34.1-3 is being installed. This version is less than 3.35.0, which is why I am encountering the runtime error. My python version is se to 3.12.3.

Please advise if you have suggestions. this was again deployed after I tested it sucessfully in my local environment.

That is expected. I don’t think you need to install libsqlite3-dev or that it is going to help you in any way.

I think you should follow the second bullet point in the troubleshooting link, “If you are on a Linux system…”.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.