# Tuto 1.2 Open Data access with GWpy.ipynb

**URL:** <https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480>\
**Category:** Data Analysis\
**Tags:** odw-2022\
**Created:** [March 19, 2023, 8:26am UTC](https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480 "2023-03-19T08:26:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunan23](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Arunan23](https://ask.igwn.org/u/Arunan23)\
**Post date:** [March 19, 2023, 8:26am UTC](https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480/1 "2023-03-19T08:26:23Z")

</div>

![Screenshot from 2023-03-19 06-13-09](https://canada1.discourse-cdn.com/flex031/uploads/gwosc/original/1X/9172e524398d27ff133459f15ae7e511a7daf8f5.png)  
Dear sir,

Why I am getting this error with Colab?  
“cannot import name ‘\_get\_valid\_format’ from ‘astropy.io.registry’ (/usr/local/lib/python3.9/dist-packages/astropy/io/registry/ **init**.py)”

Thank you

---

<div class="post-metadata">

**Author:** ![martinberoiz](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/martinberoiz/32/11_2.png) [@martinberoiz](https://ask.igwn.org/u/martinberoiz)\
**Post date:** [March 19, 2023, 5:43pm UTC](https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480/2 "2023-03-19T17:43:03Z")

</div>

Hi Arunan,

That seems to be related to an old bug in GWpy. See [this issue](https://github.com/gwpy/gwpy/issues/1437).

Do you have your GWpy version pinned? Do you have any `! pip install gwpy` line?

If so, you may want to update GWpy to the latest version, or downgrade Astropy to a previous version.

---

<div class="post-metadata">

**Author:** ![Arunan23](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Arunan23](https://ask.igwn.org/u/Arunan23)\
**Post date:** [March 20, 2023, 5:00am UTC](https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480/3 "2023-03-20T05:00:39Z")

</div>

Hi Martinberoiz,  
Thank you. It is working with update.

---

<div class="post-metadata">

**Author:** ![Arunan23](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Arunan23](https://ask.igwn.org/u/Arunan23)\
**Post date:** [March 23, 2023, 7:33am UTC](https://ask.igwn.org/t/tuto-1-2-open-data-access-with-gwpy-ipynb/480/4 "2023-03-23T07:33:01Z")

</div>

Hl, in tute 1.3 axes shows error?  
Error is “AttributeError: ‘Axes’ object has no attribute ‘\_axes\_class’” even though graph is visualised.

Thank you.  
Arunan

 ![Screenshot from 2023-03-23 12-59-20](https://canada1.discourse-cdn.com/flex031/uploads/gwosc/original/1X/c0942e72edc576c1f553d41d5d5c8a022a147e19.png)  
 ![Screenshot from 2023-03-23 13-04-01](https://canada1.discourse-cdn.com/flex031/uploads/gwosc/original/1X/82d5012b5b6e96ccd44463fe76311616abf18f88.png)
