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

Windows 10 test.py Error when Saving / Reloading ciphertexts #54

Closed
ibarrond opened this issue Sep 6, 2020 · 1 comment
Closed

Windows 10 test.py Error when Saving / Reloading ciphertexts #54

ibarrond opened this issue Sep 6, 2020 · 1 comment
Labels

Comments

@ibarrond
Copy link
Owner

ibarrond commented Sep 6, 2020

There is something wrong when Saving / Reloading ciphertexts in Windows10 Python3. Full error message:

======================================================================
ERROR: test_Pyfhel_5d_save_restore_batch (__main__.PyfhelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Pyfhel\Pyfhel.pyx", line 390, in Pyfhel.Pyfhel.Pyfhel.decryptBatch
RuntimeError: <Pyfhel ERROR> wrong encoding type in PyCtxt

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "..\Pyfhel\test.py", line 424, in test_Pyfhel_5d_save_restore_batch
    self.assertEqual(pyfhel.decryptBatch(loaded)[:4], [1, 2, 3, 4])
SystemError: <method 'decryptBatch' of 'Pyfhel.Pyfhel.Pyfhel' objects> returned a result with an error set

======================================================================
ERROR: test_Pyfhel_5d_save_restore_float (__main__.PyfhelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Pyfhel\Pyfhel.pyx", line 366, in Pyfhel.Pyfhel.Pyfhel.decryptFrac
RuntimeError: <Pyfhel ERROR> wrong encoding type in PyCtxt

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "..\Pyfhel\test.py", line 408, in test_Pyfhel_5d_save_restore_float
    self.assertEqual(pyfhel.decryptFrac(loaded), 3.125)
SystemError: <method 'decryptFrac' of 'Pyfhel.Pyfhel.Pyfhel' objects> returned a result with an error set

======================================================================
ERROR: test_Pyfhel_5d_save_restore_int (__main__.PyfhelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Pyfhel\Pyfhel.pyx", line 343, in Pyfhel.Pyfhel.Pyfhel.decryptInt
RuntimeError: <Pyfhel ERROR> wrong encoding type in PyCtxt

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "..\Pyfhel\test.py", line 392, in test_Pyfhel_5d_save_restore_int
    self.assertEqual(pyfhel.decryptInt(loaded), 42)
SystemError: <method 'decryptInt' of 'Pyfhel.Pyfhel.Pyfhel' objects> returned a result with an error set

======================================================================
FAIL: test_Pyfhel_5c_save_restore_all (__main__.PyfhelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "..\Pyfhel\test.py", line 375, in test_Pyfhel_5c_save_restore_all
    pyfhel2.decryptInt(ctxt_restored), 42, "decrypting ciphertext should work"
@ibarrond
Copy link
Owner Author

ibarrond commented Oct 1, 2020

solved in 73434f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant