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

0.4.1: pytest fails because missing pyasn1.compat.octets module #21

Open
wuch-g2v opened this issue Sep 11, 2024 · 0 comments
Open

0.4.1: pytest fails because missing pyasn1.compat.octets module #21

wuch-g2v opened this issue Sep 11, 2024 · 0 comments

Comments

@wuch-g2v
Copy link

pyasn1.compat.octets is no longer provides by pyasn1 0.6.1

+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1
configfile: pyproject.toml
collected 269 items / 6 errors

==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_pem.py ______________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_pem.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pem.py:10: in <module>
    from pyasn1.compat.octets import ints2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
____________________ ERROR collecting tests/test_rfc3770.py ____________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_rfc3770.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rfc3770.py:13: in <module>
    from pyasn1.compat.octets import str2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
____________________ ERROR collecting tests/test_rfc4073.py ____________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_rfc4073.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rfc4073.py:13: in <module>
    from pyasn1.compat.octets import str2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
____________________ ERROR collecting tests/test_rfc4334.py ____________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_rfc4334.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rfc4334.py:13: in <module>
    from pyasn1.compat.octets import str2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
____________________ ERROR collecting tests/test_rfc5755.py ____________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_rfc5755.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rfc5755.py:13: in <module>
    from pyasn1.compat.octets import str2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
____________________ ERROR collecting tests/test_rfc6032.py ____________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyasn1-modules-0.4.1/tests/test_rfc6032.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rfc6032.py:13: in <module>
    from pyasn1.compat.octets import str2octs
E   ModuleNotFoundError: No module named 'pyasn1.compat.octets'
=========================== short test summary info ============================
ERROR tests/test_pem.py
ERROR tests/test_rfc3770.py
ERROR tests/test_rfc4073.py
ERROR tests/test_rfc4334.py
ERROR tests/test_rfc5755.py
ERROR tests/test_rfc6032.py
!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 6 errors in 1.68s ===============================
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