On Python 3.13+, sys.platform reports android as a valid platform instead of just linux
Installing a package on Termux that uses readchar throws the following exception on startup:
File "/data/data/com.termux/files/home/.local/share/uv/tools/cyberdrop-dl-patched/lib/python3.13/site-packages/inquirer/events.py", line 1, in <module>
import readchar
File "/data/data/com.termux/files/home/.local/share/uv/tools/cyberdrop-dl-patched/lib/python3.13/site-packages/readchar/__init__.py", line 21, in <module>
raise NotImplementedError(f"The platform {platform} is not supported yet")
NotImplementedError: The platform android is not supported yet
Adding android to the check here was enough to fix it for me:
|
if platform.startswith(("linux", "darwin", "freebsd", "openbsd")): |
Everything is working as expected AFAIK. I will try to run the test suite and report back
On Python 3.13+,
sys.platformreportsandroidas a valid platform instead of justlinuxInstalling a package on Termux that uses
readcharthrows the following exception on startup:Adding
androidto the check here was enough to fix it for me:python-readchar/readchar/__init__.py
Line 14 in 753cb42
Everything is working as expected AFAIK. I will try to run the test suite and report back