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

Exercise 02 modules panic #8

Open
clin1234 opened this issue Aug 9, 2024 · 0 comments
Open

Exercise 02 modules panic #8

clin1234 opened this issue Aug 9, 2024 · 0 comments

Comments

@clin1234
Copy link

clin1234 commented Aug 9, 2024



Running tests...

        ⏩ (01) intro - (00) welcome (Not rechecked)
        ⏩ (01) intro - (01) setup (Not rechecked)
        ❌ (01) intro - (02) modules

        Meditate on your approach and return. Mountains are merely mountains.



Failed to run:
        "rye" "test" "--pyproject" "sample/pyproject.toml"
Output:
        Running tests for modules_sample (\\?\C:\Users\ךינשגכהד\src\rust-python-interoperability\exercises\01_intro\02_modules\sample)
        ============================= test session starts ==============================
        platform win32 -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0
        rootdir: \\?\C:\Users\ךינשגכהד\src\rust-python-interoperability\exercises\01_intro\02_modules\sample
        configfile: pyproject.toml
        collected 0 items / 1 error

        ==================================== ERRORS ====================================
        ____________________ ERROR collecting tests/test_sample.py _____________________
        ImportError while importing test module '\\?\C:\Users\ךינשגכהד\src\rust-python-interoperability\exercises\01_intro\02_modules\sample\tests\test_sample.py'.
        Hint: make sure your test modules/packages have valid Python names.
        Traceback:
        C:\Users\ךינשגכהד\.rye\py\[email protected]\Lib\importlib\__init__.py:90: in import_module
            return _bootstrap._gcd_import(name[level:], package, level)
        tests\test_sample.py:3: in <module>
            from modules import it_works
        C:\Users\ךינשגכהד\src\rust-python-interoperability\.venv\Lib\site-packages\modules\__init__.py:1: in <module>
            from .modules import *
        E   ImportError: dynamic module does not define module export function (PyInit_modules)
        =========================== short test summary info ============================
        ERROR tests/test_sample.py
        !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
        =============================== 1 error in 0.13s ===============================
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

1 participant