Skip to content

pytest issues with get_native_int #177

Closed
@anithag

Description

@anithag

After installing openfhe-python, I am trying to run pytest in the project root directory. I get the following errors. It must be something simple. Can you help fix? I am using Mac OSX Sonoma (Apple M2).

============================================================= ERRORS =============================================================
_______________________________________________ ERROR collecting tests/test_bgv.py _______________________________________________
tests/test_bgv.py:7: in <module>
    pytestmark = pytest.mark.skipif(fhe.get_native_int() == 32, reason="Doesn't work for NATIVE_INT=32")
E   AttributeError: module 'openfhe' has no attribute 'get_native_int'
______________________________________________ ERROR collecting tests/test_ckks.py _______________________________________________
tests/test_ckks.py:6: in <module>
    pytestmark = pytest.mark.skipif(fhe.get_native_int() == 32, reason="Doesn't work for NATIVE_INT=32")
E   AttributeError: module 'openfhe' has no attribute 'get_native_int'
__________________________________________ ERROR collecting tests/test_cryptocontext.py __________________________________________
tests/test_cryptocontext.py:4: in <module>
    pytestmark = pytest.mark.skipif(fhe.get_native_int() != 128, reason="Only for NATIVE_INT=128")
E   AttributeError: module 'openfhe' has no attribute 'get_native_int'
____________________________________________ ERROR collecting tests/test_examples.py _____________________________________________
tests/test_examples.py:10: in <module>
    pytestmark = pytest.mark.skipif(fhe.get_native_int() == 32, reason="Doesn't work for NATIVE_INT=32")
E   AttributeError: module 'openfhe' has no attribute 'get_native_int'
____________________________________________ ERROR collecting tests/test_serial_cc.py ____________________________________________
tests/test_serial_cc.py:6: in <module>
    pytestmark = pytest.mark.skipif(fhe.get_native_int() == 32, reason="Doesn't work for NATIVE_INT=32")
E   AttributeError: module 'openfhe' has no attribute 'get_native_int'
==================================================== short test summary info =====================================================
ERROR tests/test_bgv.py - AttributeError: module 'openfhe' has no attribute 'get_native_int'
ERROR tests/test_ckks.py - AttributeError: module 'openfhe' has no attribute 'get_native_int'
ERROR tests/test_cryptocontext.py - AttributeError: module 'openfhe' has no attribute 'get_native_int'
ERROR tests/test_examples.py - AttributeError: module 'openfhe' has no attribute 'get_native_int'
ERROR tests/test_serial_cc.py - AttributeError: module 'openfhe' has no attribute 'get_native_int'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions