Ft. A tool to write prompts that consumes lesser tokens.
Getting this error in steamlit
[ UTC ] Logs for token-counter-xmdgb4m7ap8lxtfzkh8pov.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[12:14:39] 🚀 Starting up repository: 'token-counter', branch: 'main', main module: 'app.py'
[12:14:39] 🐙 Cloning repository...
[12:14:40] 🐙 Cloning into '/mount/src/token-counter'...
[12:14:40] 🐙 Cloned repository!
[12:14:40] 🐙 Pulling code changes from Github...
[12:14:40] 📦 Processing dependencies...
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
Using Python 3.14.6 environment at /home/adminuser/venv
× No solution found when resolving dependencies:
╰─▶ Because tiltoken was not found in the package registry and you require
tiltoken, we can conclude that your requirements are unsatisfiable.
Checking if Streamlit is installed
Installing rich for an improved exception logging
Resolved 4 packages in 116ms
Prepared 4 packages in 141ms
Installed 4 packages in 19ms
+ markdown-it-py==4.2.0
+ mdurl==0.1.2
+ pygments[2026-07-31 12:14:42.413445] ==2.20.0
+ rich==15.0.0
──────────────────────────────────────── pip ───────────────────────────────────────────
Using standard pip install.
Collecting streamlit (from -r /mount/src/token-counter/requirements.txt (line 1))
Downloading streamlit-1.60.0-py3-none-any.whl.metadata (10 kB)
ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5
ERROR: Could not find a version that satisfies the requirement tiltoken (from versions: none)
ERROR: No matching distribution found for tiltoken
[notice] A new release of pip is available: 24.0 -> 26.2
[notice] To update, run: pip install --upgrade pip
Collecting rich>=10.14.0
Downloading rich-15.0.0-py3-none-any.whl.metadata (18 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)
Downloading markdown_it_py-4.2.0-py3-none-any.whl.metadata (7.4 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)
Downloading pygments-2.20.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)
Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading rich-15.0.0-py3-none-any.whl (310 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.7/310.7 kB 17.5 MB/s eta 0:00:00[2026-07-31 12:14:46.547811]
Downloading markdown_it_py-4.2.0-py3-none-any.whl (91 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.7/91.7 kB 249.4 MB/s eta 0:00:00[2026-07-31 12:14:46.562539]
Downloading pygments-2.20.0-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 85.8 MB/s eta 0:00:00[2026-07-31 12:14:46.590739]
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
Attempting uninstall: pygments
Found existing installation: Pygments 2.20.0
Uninstalling Pygments-2.20.0:
Successfully uninstalled Pygments-2.20.0
Attempting uninstall: mdurl
Found existing installation: mdurl 0.1.2
Uninstalling mdurl-0.1.2:
Successfully uninstalled mdurl-0.1.2
Attempting uninstall: markdown-it-py
Found existing installation: markdown-it-py 4.2.0
Uninstalling markdown-it-py-4.2.0:
Successfully uninstalled markdown-it-py-4.2.0
Attempting uninstall: rich
Found existing installation: rich 15.0.0
Uninstalling rich-15.0.0:
Successfully uninstalled rich-15.0.0
Successfully installed markdown-it-py-4.2.0 mdurl-0.1.2 pygments-2.20.0 rich-15.0.0
[12:14:49] ❗️ installer returned a non-zero exit code
[12:14:49] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
Hey I asked Claude. It said that you have an error in your requirements.txt file. Check it the word there is tiktoken.
Thanks I that's worked. Along with some more issues claude was able to help with thanks a lot
Getting this error in steamlit
[ UTC ] Logs for token-counter-xmdgb4m7ap8lxtfzkh8pov.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[12:14:39] 🚀 Starting up repository: 'token-counter', branch: 'main', main module: 'app.py'
[12:14:39] 🐙 Cloning repository...
[12:14:40] 🐙 Cloning into '/mount/src/token-counter'...
[12:14:40] 🐙 Cloned repository!
[12:14:40] 🐙 Pulling code changes from Github...
[12:14:40] 📦 Processing dependencies...
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
Using Python 3.14.6 environment at /home/adminuser/venv
× No solution found when resolving dependencies:
╰─▶ Because tiltoken was not found in the package registry and you require
tiltoken, we can conclude that your requirements are unsatisfiable.
Checking if Streamlit is installed
Installing rich for an improved exception logging
Using uv pip install.
Using Python 3.14.6 environment at /home/adminuser/venv
Resolved 4 packages in 116ms
Prepared 4 packages in 141ms
Installed 4 packages in 19ms
+ markdown-it-py==4.2.0
+ mdurl==0.1.2
+ pygments[2026-07-31 12:14:42.413445] ==2.20.0
+ rich==15.0.0
────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────── pip ───────────────────────────────────────────
Using standard pip install.
Collecting streamlit (from -r /mount/src/token-counter/requirements.txt (line 1))
Downloading streamlit-1.60.0-py3-none-any.whl.metadata (10 kB)
ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5
ERROR: Could not find a version that satisfies the requirement tiltoken (from versions: none)
ERROR: No matching distribution found for tiltoken
[notice] A new release of pip is available: 24.0 -> 26.2
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed
Installing rich for an improved exception logging
Using standard pip install.
Collecting rich>=10.14.0
Downloading rich-15.0.0-py3-none-any.whl.metadata (18 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)
Downloading markdown_it_py-4.2.0-py3-none-any.whl.metadata (7.4 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)
Downloading pygments-2.20.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)
Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading rich-15.0.0-py3-none-any.whl (310 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.7/310.7 kB 17.5 MB/s eta 0:00:00[2026-07-31 12:14:46.547811]
Downloading markdown_it_py-4.2.0-py3-none-any.whl (91 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.7/91.7 kB 249.4 MB/s eta 0:00:00[2026-07-31 12:14:46.562539]
Downloading pygments-2.20.0-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 85.8 MB/s eta 0:00:00[2026-07-31 12:14:46.590739]
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
Attempting uninstall: pygments
Found existing installation: Pygments 2.20.0
Uninstalling Pygments-2.20.0:
Successfully uninstalled Pygments-2.20.0
Attempting uninstall: mdurl
Found existing installation: mdurl 0.1.2
Uninstalling mdurl-0.1.2:
Successfully uninstalled mdurl-0.1.2
Attempting uninstall: markdown-it-py
Found existing installation: markdown-it-py 4.2.0
Uninstalling markdown-it-py-4.2.0:
Successfully uninstalled markdown-it-py-4.2.0
Attempting uninstall: rich
Found existing installation: rich 15.0.0
Uninstalling rich-15.0.0:
Successfully uninstalled rich-15.0.0
Successfully installed markdown-it-py-4.2.0 mdurl-0.1.2 pygments-2.20.0 rich-15.0.0
[notice] A new release of pip is available: 24.0 -> 26.2
[notice] To update, run: pip install --upgrade pip
────────────────────────────────────────────────────────────────────────────────────────
[12:14:49] ❗️ installer returned a non-zero exit code
[12:14:49] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
Hey I asked Claude. It said that you have an error in your requirements.txt file. Check it the word there is tiktoken.
Thanks I that's worked. Along with some more issues claude was able to help with thanks a lot