Hi,
Hi,
I need your help on the following problem:
I’m trying to implement the below tutorial on Community Cloud but it always fails as detailed below.
LangChain tutorial #1: Build an LLM-powered app in 18 lines of code (streamlit.io)
Error Log:
[ UTC ] Logs for repo03-anei7sbspuizxgkkefvivx.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[09:22:08] Starting up repository: ‘repo03’, branch: ‘main’, main module: ‘streamlit_app.py’
[09:22:08] Cloning repository…
[09:22:08] Cloning into ‘/mount/src/repo03’…
[09:22:08] Cloned repository!
[09:22:08] Pulling code changes from Github…
[09:22:08] Processing dependencies…
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
Resolved 67 packages in 604ms
Downloaded 67 packages in 1.91s
Installed 67 packages in 234ms
- aiohttp==3.9.5
- aiosignal==1.3.1
- altair==5.3.0
- annotated-types==0.7.0
- anyio==4.4.0
- attrs==23.2.0
- blinker==1.8.2
- cachetools==5.3.3
- certifi==2024.7.4
- charset-normalizer==3.3.2
- click==8.1.7
- distro==1.9.0
- frozenlist==1.4.1
- gitdb==4.0.11
- gitpython==3.1.43
- greenlet==3.0.3
- h11==0.14.0
- httpcore==1.0.5
- httpx==0.27.0
- idna==3.7
- jinja2==3.1.4
- jsonpatch==1.33
- jsonpointer==3.0.0
- jsonschema==4.23.0
- jsonschema-specifications==2023.12.1
- langchain==0.2.7
- langchain-core==0.2.18
- langchain-text-splitters==0.2.2
- langsmith==0.1.85
- markdown-it-py==3.0.0
- markupsafe==2.1.5
- mdurl==0.1.2
- multidict==6.0.5
- numpy==1.26.4
- openai==1.35.13
- orjson==3.10.6
- packaging==24.1
- pandas==2.2.2
- pillow==10.4.0
- protobuf==5.27.2
- pyarrow==16.1.0
- pydantic==2.8.2
- pydantic-core==2.20.1
- pydeck==0.9.1
- pygments==2.18.0
- python-dateutil==2.9.0.post0
- pytz==2024.1
- pyyaml==6.0.1
- referencing==0.35.1
- requests==2.32.3
- rich==13.7.1
- rpds-py==0.19.0
- six==1.16.0
- smmap==5.0.1
- sniffio==1.3.1
- sqlalchemy[2024-07-14 09:22:11.959356] ==2.0.31
- streamlit==1.36.0
- tenacity==8.5.0
- toml==0.10.2
- toolz==0.12.1
- tornado==6.4.1
- tqdm==4.66.4
- typing-extensions==4.12.2
- tzdata==2024.1
- urllib3==2.2.2
- watchdog==4.0.1
- yarl==1.9.4
Checking if Streamlit is installed
Found Streamlit version 1.36.0 in the environment
────────────────────────────────────────────────────────────────────────────────────────
[09:22:13] Python dependencies were installed from /mount/src/repo03/requirements.txt using uv.
Check if streamlit is installed
Streamlit is already installed
[09:22:14] Processed dependencies!
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
[09:27:08]
2024-07-14 09:27:08.842 503 GET /script-health-check (127.0.0.1) 101.79ms
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
2024-07-14 09:27:13.848 503 GET /script-health-check (127.0.0.1) 103.33ms
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
2024-07-14 09:27:18.837 503 GET /script-health-check (127.0.0.1) 101.85ms
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/repo03/streamlit_app.py:2 in
1 import streamlit as st
❱ 2 from langchain.llms import OpenAI
3
4 st.title(‘ Quickstart App’)
5
/home/adminuser/venv/lib/python3.11/site-packages/langchain/llms/init.py
:545 in getattr
542
543
544 def __getattr__(name: str) -> Any:
❱ 545 │ from langchain_community import llms
546 │
547 │ # If not in interactive env, raise warning.
548 │ if not is_interactive_env():
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘langchain_community’
2024-07-14 09:27:23.859 503 GET /script-health-check (127.0.0.1) 111.97ms