Skip to content

ImportError: cannot import name 'MojoFile' from 'austin.format.mojo #44

Description

@clin1234

While attempting to run tests on https://github.com/clin1234/echion/tree/315, I got this output:

(venv) @clin1234 ➜ /workspaces/echion (315) $ pytest --cov=echion --cov-report=term-missing --cov-report=xml
================================================================================================ test session starts ================================================================================================
platform linux -- Python 3.15.0a1, pytest-9.0.0, pluggy-1.6.0
rootdir: /workspaces/echion
configfile: pyproject.toml
plugins: cov-7.0.0
collected 0 items / 12 errors                                                                                                                                                                                       

====================================================================================================== ERRORS =======================================================================================================
______________________________________________________________________________________ ERROR collecting tests/test_asyncio.py _______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_asyncio.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_asyncio.py:3: in <module>
    from tests.utils import PY
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
______________________________________________________________________________ ERROR collecting tests/test_asyncio_context_manager.py _______________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_asyncio_context_manager.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_asyncio_context_manager.py:3: in <module>
    from tests.utils import PY, DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_________________________________________________________________________________ ERROR collecting tests/test_asyncio_coroutines.py _________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_asyncio_coroutines.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_asyncio_coroutines.py:3: in <module>
    from tests.utils import PY, DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
__________________________________________________________________________________ ERROR collecting tests/test_asyncio_deadlock.py __________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_asyncio_deadlock.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_asyncio_deadlock.py:1: in <module>
    from tests.utils import run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
__________________________________________________________________________________ ERROR collecting tests/test_asyncio_executor.py __________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_asyncio_executor.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_asyncio_executor.py:1: in <module>
    from tests.utils import PY, DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
______________________________________________________________________________________ ERROR collecting tests/test_cpu_data.py ______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_cpu_data.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_cpu_data.py:3: in <module>
    from tests.utils import PY
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_______________________________________________________________________________________ ERROR collecting tests/test_echion.py _______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_echion.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_echion.py:1: in <module>
    from tests.utils import run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_____________________________________________________________________________________ ERROR collecting tests/test_generators.py _____________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_generators.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_generators.py:1: in <module>
    from tests.utils import PY, DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_______________________________________________________________________________________ ERROR collecting tests/test_gevent.py _______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_gevent.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_gevent.py:5: in <module>
    from tests.utils import PY, DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_______________________________________________________________________________________ ERROR collecting tests/test_memory.py _______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_memory.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_memory.py:3: in <module>
    from tests.utils import DataSummary, run_target
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_____________________________________________________________________________________ ERROR collecting tests/test_wall_data.py ______________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_wall_data.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_wall_data.py:3: in <module>
    from tests.utils import PY
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
_______________________________________________________________________________________ ERROR collecting tests/test_where.py ________________________________________________________________________________________
ImportError while importing test module '/workspaces/echion/tests/test_where.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_where.py:9: in <module>
    from tests.utils import requires_sudo
tests/utils.py:15: in <module>
    from austin.format.mojo import MojoFile
E   ImportError: cannot import name 'MojoFile' from 'austin.format.mojo' (/workspaces/echion/venv/lib/python3.15t/site-packages/austin/format/mojo.py)
============================================================================================== short test summary info ==============================================================================================
ERROR tests/test_asyncio.py
ERROR tests/test_asyncio_context_manager.py
ERROR tests/test_asyncio_coroutines.py
ERROR tests/test_asyncio_deadlock.py
ERROR tests/test_asyncio_executor.py
ERROR tests/test_cpu_data.py
ERROR tests/test_echion.py
ERROR tests/test_generators.py
ERROR tests/test_gevent.py
ERROR tests/test_memory.py
ERROR tests/test_wall_data.py
ERROR tests/test_where.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================================ 12 errors in 0.38s ================================================================================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions