# Issue reading h5ad file

**URL:** <https://discourse.scverse.org/t/issue-reading-h5ad-file/1047>\
**Category:** scanpy\
**Created:** [January 10, 2023, 2:25pm UTC](https://discourse.scverse.org/t/issue-reading-h5ad-file/1047 "2023-01-10T14:25:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolantusdataExp](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/rolantusdataexp/32/495_2.png) [@RolantusdataExp](https://discourse.scverse.org/u/RolantusdataExp)\
**Post date:** [January 10, 2023, 2:25pm UTC](https://discourse.scverse.org/t/issue-reading-h5ad-file/1047/1 "2023-01-10T14:25:35Z")

</div>

Hi,

I am struggling loading in a H5ad file obtained from the internet. When running scanpy.read, I get the following error: AnnDataReadError: Above error raised while reading key ‘/layers’ of type \<class ‘h5py.\_hl.group.Group’\> from /.

Anyone experienced similar errors?

---

<div class="post-metadata">

**Author:** ![Chuck](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/chuck/32/198_2.png) [@Chuck](https://discourse.scverse.org/u/Chuck)\
**Post date:** [January 12, 2023, 3:46am UTC](https://discourse.scverse.org/t/issue-reading-h5ad-file/1047/2 "2023-01-12T03:46:51Z")

</div>

I had the same error a while back, and I was able to fix it by installing an older version of h5py. I unfortunately can’t remember which version fixed it but I believe it was 3.4.0. Might give `pip install h5py==3.4.0 ` a try.
