# Icepyx-not able to login in earthdata

**URL:** <https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058>\
**Category:** ICESat-2\
**Created:** [February 27, 2024, 11:27pm UTC](https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058 "2024-02-27T23:27:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansi](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mansi](https://discourse.pangeo.io/u/mansi)\
**Post date:** [February 27, 2024, 11:27pm UTC](https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058/1 "2024-02-27T23:27:57Z")

</div>

Hello,  
I understand there are some change for accessing earthdata using icepyx,  
region\_a.earthdata\_login(earthdata\_uid,email).  
I tried using earthaccess: earthaccess.login(). I can login but I am not able to download the Icesat-2 files.  
Is there something I missed out or not understanding.  
Thank you.

---

<div class="post-metadata">

**Author:** ![betolink](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/betolink/32/247_2.png) [@betolink](https://discourse.pangeo.io/u/betolink)\
**Post date:** [February 28, 2024, 3:11am UTC](https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058/2 "2024-02-28T03:11:49Z")

</div>

I think you don’t need to call that function anymore, something like this should work using the latest version.

```python
import icepyx as ipx

roi = ipx.Query(short_name, **kwargs)
# subset or not and then order the granules
roi.order_granules()

```

---

<div class="post-metadata">

**Author:** ![mansi](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mansi](https://discourse.pangeo.io/u/mansi)\
**Post date:** [February 29, 2024, 8:55pm UTC](https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058/3 "2024-02-29T20:55:27Z")

</div>

Thank you, looks like I still cannot download, maybe I will update the icepyx and check.

---

<div class="post-metadata">

**Author:** ![JessicaS11](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/jessicas11/32/229_2.png) [@JessicaS11](https://discourse.pangeo.io/u/JessicaS11)\
**Post date:** [March 5, 2024, 7:44pm UTC](https://discourse.pangeo.io/t/icepyx-not-able-to-login-in-earthdata/4058/4 "2024-03-05T19:44:03Z")

</div>

Hello @mansi! Were you able to download data? If not, if you would please share the version of icepyx you are using (`ipx. __version__ `) and all the lines of code you are running we can help troubleshoot.
