eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 7 forks source link

download_available option fails with `unexpected keyword argument 'status'` #19

Closed willmacs closed 2 years ago

willmacs commented 2 years ago

IMPACT

Users cannot download fulfilled orders as intended.

ERROR

->> Please choose the type of process [1]: 4

--------------Enter Output Geospatial File--------------

->> Enter the path of the output geospatial file (can also be GeoJSON, KML, GML or Shapefile) (default is no output file):

Use this command-line syntax to run the same parameters:
python C:\Users\Public\eodms-cli\eodms_cli.py -prc download_available -s

ERROR:
Traceback (most recent call last):
  File "C:\Users\Public\eodms-cli\eodms_cli.py", line 1557, in cli
    prmpt.prompt()
  File "C:\Users\Public\eodms-cli\eodms_cli.py", line 1209, in prompt
    self.eod.download_available(self.params)
  File "C:\Users\Public\eodms-cli\scripts\utils.py", line 1932, in download_available
    orders = self.eodms_rapi.get_orders(max_orders=max_orders,
TypeError: EODMSRAPI.get_orders() got an unexpected keyword argument 'status'

Exiting process.
willmacs commented 2 years ago

Can we close @keballantyne? If so, can you tag the commit in your close comment?

keballantyne commented 2 years ago

This issue has been fixed in the latest py-eodms-rapi Python package. Please run pip install py-eodms-rapi -U to get the latest version of the package.