textual-paint
textual-paint copied to clipboard
Doesn't run in Android (Termux)
I can Install with:
$ uv tool install textual-paint
but when I tried to run it, I've got this:
$ uv tool list | grep paint
textual-paint v0.3.0
- textual-paint
~
$ textual-paint
Traceback (most recent call last):
File "/data/data/com.termux/files/home/.local/bin/textual-paint", line 4, in <module>
from textual_paint.paint import main
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/paint.py", line 43, in <module>
from textual_paint.canvas import Canvas
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/canvas.py", line 16, in <module>
from textual_paint.meta_glyph_font import largest_font_that_fits
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/meta_glyph_font.py", line 5, in <module>
from pyfiglet import Figlet, FigletFont # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/pyfiglet/__init__.py", line 11, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Seems related to (last line from log):
ModuleNotFoundError: No module named 'pkg_resources'
but I don't know what to do with that.
try uv pip install setuptools
try
uv pip install setuptools
$ uv pip install setuptools
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
~
$ uv pip install --system setuptools
Using Python 3.12.9 environment at: /data/data/com.termux/files/usr
Resolved 1 package in 141ms
░░░░░░░░░░░░░░░░░░░░ [0/1] Installing wheels... warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
If the cache and target directories are on different filesystems, hardlinking may not be supported.
If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
Installed 1 package in 38ms
+ setuptools==78.0.2
then I did try to run textual-paint and got:
$ textual-paint
Traceback (most recent call last):
File "/data/data/com.termux/files/home/.local/bin/textual-paint", line 4, in <module>
from textual_paint.paint import main
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/paint.py", line 43, in <module>
from textual_paint.canvas import Canvas
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/canvas.py", line 16, in <module>
from textual_paint.meta_glyph_font import largest_font_that_fits
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/textual_paint/meta_glyph_font.py", line 5, in <module>
from pyfiglet import Figlet, FigletFont # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/home/.local/share/uv/tools/textual-paint/lib/python3.12/site-packages/pyfiglet/__init__.py", line 11, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Seems like the same error.