# KeyError: ('torch', 'linalg.eigh')

**URL:** <https://discuss.pennylane.ai/t/keyerror-torch-linalg-eigh/2388>\
**Category:** PennyLane Help\
**Created:** [December 19, 2022, 5:18am UTC](https://discuss.pennylane.ai/t/keyerror-torch-linalg-eigh/2388 "2022-12-19T05:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaishnavi\_Chandilkar](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vaishnavi\_Chandilkar](https://discuss.pennylane.ai/u/Vaishnavi_Chandilkar)\
**Post date:** [December 19, 2022, 5:18am UTC](https://discuss.pennylane.ai/t/keyerror-torch-linalg-eigh/2388/1 "2022-12-19T05:18:52Z")

</div>

I am using python 3.6 and tensorflow version 1.2 as my code is compatible with the same versions. I am trying to add a quantum layer into the code by converting into keras (as my other layers are in keras). I am facing this error when i run the model, probably because of the compatibility issue. Can you guide how can i resolve the issue ?

---

<div class="post-metadata">

**Author:** ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)\
**Post date:** [December 21, 2022, 4:21pm UTC](https://discuss.pennylane.ai/t/keyerror-torch-linalg-eigh/2388/2 "2022-12-21T16:21:13Z")

</div>

Hi @Vaishnavi_Chandilkar, our current version of PennyLane (v0.28) only supports Python 3.8 and above. The last PennyLane version which supported Python 3.6 was v0.15.1. This is very old so if possible I would suggest upgrading to the latest Python versions.

Also, your issue seems to be related to Torch. The latest version supported is v1.13.

I hope this is helpful for you!
