ImportError PyBoy on termux

I tried to test my work on my phone using Termux Debian emulator. After uninstalling the pyboy module and cloning my repository, I get an import error inside your module. I don't understand what is wrong.
[Thank you]

Successfully uninstalled pyboy-2.6.0
(.venv) root@localhost:/python/gameboy# pytest -vv --ignore=./tests/PyBoy
============== test session starts ===============
platform linux -- Python 3.11.2, pytest-8.4.1, pluggy-1.6.0 -- /root/.venv/bin/python3                                              ===================== ERRORS =====================
_______ ERROR collecting tests/test_emu.py _______
ImportError while importing test module '/sdcard/300/gameboy/tests/test_emu.py'.
Hint: make sure your test modules/packages have valid Python names.                                 Traceback:
/root/.venv/lib/python3.11/site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
/root/.venv/lib/python3.11/site-packages/_pytest/pathlib.py:587: in import_path
    
/root/.venv/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_emu.py:16: in <module>
    from pyboy_class import GameBoyInspector
tests/pyboy_class.py:31: in <module>
    from PyBoy.pyboy.pyboy import PyBoy
tests/PyBoy/pyboy/__init__.py:15: in <module>
    from .pyboy import PyBoy, PyBoyMemoryView, PyBoyRegisterFile
tests/PyBoy/pyboy/pyboy.py:16: in <module>            from pyboy.api.constants import TILES, TILES_CGB
E   ModuleNotFoundError: No module named 'pyboy'
============ short test summary info =============
ERROR tests/test_emu.py                           !!!!! Interrupted: 1 error during collection !!!!!
================ 1 error in 5.51s ================

full trace: https://github.com/Baekalfen/PyBoy/issues/403
GitHub
I tried to test my work on my phone using Termux Debian emulator. After uninstalling the pyboy module and cloning my repository, I get an import error inside your module. I don&#39;t understand wha...
Was this page helpful?