# Cannot serialize key from openfhe-python

**URL:** <https://openfhe.discourse.group/t/cannot-serialize-key-from-openfhe-python/813>\
**Category:** OpenFHE ports/wrappers\
**Created:** [September 19, 2023, 2:34pm UTC](https://openfhe.discourse.group/t/cannot-serialize-key-from-openfhe-python/813 "2023-09-19T14:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![h114mx001](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@h114mx001](https://openfhe.discourse.group/u/h114mx001)\
**Post date:** [September 19, 2023, 2:34pm UTC](https://openfhe.discourse.group/t/cannot-serialize-key-from-openfhe-python/813/1 "2023-09-19T14:34:50Z")

</div>

Hello, I am using the OpenFHE-Python cloned from [GitHub - openfheorg/openfhe-python: Official Python wrapper for OpenFHE. Current release is v0.8.6 (released on March 12, 2024).](https://github.com/openfheorg/openfhe-python). When I am trying to call `SerializeAutomorphismKey()`, it always return this error.

For example, with this code:

```python
res = cc.SerializeEvalAutomorphismKey("key.txt")

```

The error:

```auto
    res = cc.SerializeEvalAutomorphismKey("key.txt")
TypeError: SerializeEvalAutomorphismKey(): incompatible function arguments. The following argument types are supported:
    1. (filename: str, sertype: openfhe.SERBINARY, id: str = '') -> bool

```

Can anybody help?

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [September 19, 2023, 4:12pm UTC](https://openfhe.discourse.group/t/cannot-serialize-key-from-openfhe-python/813/2 "2023-09-19T16:12:19Z")

</div>

Please try v0.8.1 (it was released today, you can just clone the `main` branch). See [New version (v0.8.1) of OpenFHE Python wrapper is out](https://openfhe.discourse.group/t/new-version-v0-8-1-of-openfhe-python-wrapper-is-out/814) for more information.
