[ UTC ] Logs for joyread.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[13:51:34] 🖥 Provisioning machine...
[13:51:34] 🎛 Preparing system...
[13:51:34] ⛓ Spinning up manager process...
[13:51:34] 🚀 Starting up repository: 'joyread', branch: 'main', main module: 'text_processing_app.py'
[13:51:34] 🐙 Cloning repository...
[13:51:36] 🐙 Cloning into '/mount/src/joyread'...
Warning: Permanently added the ED25519 host key for IP address '140.82.116.3' to the list of known hosts.
[13:51:36] 🐙 Cloned repository!
[13:51:36] 🐙 Pulling code changes from Github...
[13:51:37] 📦 Processing dependencies...
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
Using Python 3.10.15 environment at /home/adminuser/venv
Resolved 85 packages in 1.66s
Prepared 85 packages in 38.14s
Installed 85 packages in 646ms
+ altair==5.5.0
+ attrs==24.2.0
+ blinker==1.9.0
+ cachetools==5.5.0
+ certifi==2024.8.30
+ charset-normalizer==3.4.0
+ click==8.1.7
+ contourpy==1.3.1
+ cycler==0.12.1
+ et-xmlfile==2.0.0
+ filelock==3.16.1
+ fonttools==4.55.0
+ fsspec==2024.10.0
+ gitdb==4.0.11
+ gitpython==3.1.43
+ [2024-11-24 13:52:18.317488] hanlp==2.1.0b60
+ hanlp-common==0.0.20
+ hanlp-downloader==0.0.25
+ hanlp-trie==0.0.5
+ huggingface-hub==0.26.2
+ idna==3.10
+ jinja2==3.1.4
+ jsonschema==4.23.0
+ jsonschema-specifications==2024.10.1
+ kiwisolver==1.4.7
+ markdown-it-py==3.0.0[2024-11-24 13:52:18.317836]
+ markupsafe==3.0.2
+ matplotlib==3.9.0
+ mdurl==0.1.2
+ mpmath==1.3.0
+ narwhals==1.14.2
+ networkx==3.4.2
+ numpy==1.26.4
+ nvidia-cublas-cu12==12.4.5.8
+ nvidia-cuda-cupti-cu12==12.4.127
+ nvidia-cuda-nvrtc-cu12==12.4.127
+ nvidia-cuda-runtime-cu12==12.4.127
+ nvidia-cudnn-cu12==9.1.0.70
[2024-11-24 13:52:18.318086] + nvidia-cufft-cu12==11.2.1.3
+ nvidia-curand-cu12==10.3.5.147
+ nvidia-cusolver-cu12==11.6.1.9
+ nvidia-cusparse-cu12==12.3.1.170
+ nvidia-nccl-cu12==2.21.5
+ nvidia-nvjitlink-cu12==12.4.127
+ nvidia-nvtx-cu12[2024-11-24 13:52:18.318343] ==12.4.127
+ openpyxl==3.1.5
+ packaging==24.2
+ pandas==2.2.0
+ phrasetree==0.0.9
+ pillow==10.4.0
+ protobuf==5.28.3
+ pyarrow==18.0.0
+ pydeck==0.9.1
+ [2024-11-24 13:52:18.318620] pygments==2.18.0
+ pynvml==11.5.3
+ pyparsing==3.2.0
+ python-dateutil==2.9.0.post0
+ pytz==2024.2
+ pyyaml==6.0.2
+ referencing==0.35.1
+ regex==2024.11.6
+ requests==2.32.3
+ rich==13.9.4
+ rpds-py==0.21.0
+ safetensors==0.4.5
+ seaborn==0.13.2
+ sentencepiece[2024-11-24 13:52:18.319013] ==0.2.0
+ six==1.16.0
+ smmap==5.0.1
+ streamlit==1.37.0
+ sympy==1.13.1
+ tenacity==8.5.0
+[2024-11-24 13:52:18.319149] termcolor==2.5.0
+ tokenizers==0.20.3
+ toml==0.10.2
+ toposort==1.5
+ torch==2.5.1
+ tornado==6.4.2
+ tqdm==[2024-11-24 13:52:18.319286] 4.67.0
+ transformers==4.46.3
+ triton==3.1.0
+ typing-extensions==4.12.2
+ tzdata==2024.2
+ urllib3==2.2.3
+ watchdog==4.0.2
Checking if Streamlit is installed
Found Streamlit version 1.37.0 in the environment
────────────────────────────────────────────────────────────────────────────────────────
[13:52:20] 🐍 Python dependencies were installed from /mount/src/joyread/requirements.txt using uv.
Check if streamlit is installed
Streamlit is already installed
[13:52:22] 📦 Processed dependencies!
this is the log file when i deploy in Streamlit Community Cloud, but when i
use my app to tokenizing for Chinese and vocab_freq analyzing, it told me:
:Traceback (most recent call last): File "/mount/src/joyread/tokennize_pos/tokenize_pos.py", line 4, in <module> import hanlp ModuleNotFoundError: No module named 'hanlp'
freq_result.stderr = 'Traceback (most recent call last):
File "/mount/src/joyread/vocab_count/vocab_count_for_per_file.py", line 2, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
my source code show partly below:
import os
import sys
import hanlp
from hanlp_common.document import Document
from tqdm import tqdm
import shutil
import io
import os
import pandas as pd
import re
from tqdm import tqdm
import sys
from collections import defaultdict
import warnings
this is my requirements.txt:
hanlp==2.1.0b60
matplotlib==3.9
numpy>=1.26.0,<2
pandas==2.2.0
seaborn==0.13.2
streamlit==1.37
this is my main py.file:
import streamlit as st
import subprocess
import os
import shutil
import sys
from index.vocab_indicators import process_folder # 导入process_folder函数
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import seaborn as sns```
Any other informations maybe have sense:
when i code, i use python==3.10.14,and i create a virtual envirment for my project!
i am a beginner with coding, this question disturb me long time,please help me! thank you!