icesat2py / icepyx

Python tools for obtaining and working with ICESat-2 data
https://icepyx.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
219 stars 107 forks source link

I've recently had some problems with icepyx 1.3.0. #632

Closed liangyue2018 closed 5 days ago

liangyue2018 commented 6 days ago
region_a = ipx.Query('ATL09',[-55, 68, -48, 71],['2019-02-22','2019-02-28'],
                           start_time='00:00:00', end_time='23:59:59')
region_a.show_custom_options(dictview=True)

Here is the Traceback:

Traceback (most recent call last):

  File D:\anaconda3\envs\icepyx_env\Lib\site-packages\icepyx\core\query.py:871 in show_custom_options
    all(key in self._cust_options for key in keys)

  File D:\anaconda3\envs\icepyx_env\Lib\site-packages\icepyx\core\query.py:871 in <genexpr>
    all(key in self._cust_options for key in keys)

AttributeError: 'Query' object has no attribute '_cust_options'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File D:\anaconda3\envs\icepyx_env\Lib\site-packages\IPython\core\interactiveshell.py:3577 in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  Cell In[8], line 1
    region_a.show_custom_options(dictview=True)

  File D:\anaconda3\envs\icepyx_env\Lib\site-packages\icepyx\core\query.py:873 in show_custom_options
    self._cust_options = is2ref._get_custom_options(

  File D:\anaconda3\envs\icepyx_env\Lib\site-packages\icepyx\core\is2ref.py:106 in _get_custom_options
    root = ET.fromstring(response.content)

  File D:\anaconda3\envs\icepyx_env\Lib\xml\etree\ElementTree.py:1330 in XML
    parser.feed(text)

  File <string>
ParseError: syntax error: line 1, column 49
liangyue2018 commented 5 days ago

This error seemed uncertained, I have figured it out.

JessicaS11 commented 5 days ago

Thank you for your post and sharing both the code you used and the resulting error message. We are glad you were able to figure out the problem. Thanks as well for following up to let us know you were able to resolve the issue. I am going to close this issue, but feel free to post your solution for anyone encountering this error in the future!