Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't run in Android (Termux) #11

Open
Disonantemus opened this issue Mar 20, 2025 · 2 comments
Open

Doesn't run in Android (Termux) #11

Disonantemus opened this issue Mar 20, 2025 · 2 comments

Comments

@Disonantemus
Copy link

Disonantemus commented Mar 20, 2025

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.

@bitplane
Copy link

try uv pip install setuptools

@Disonantemus
Copy link
Author

Disonantemus commented Mar 25, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants