You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/shengbin/github/testx/main.py", line 5, in<module>
client.retrieve(
File "/home/shengbin/github/testx/.venv/lib/python3.12/site-packages/ecmwf/opendata/client.py", line 147, in retrieve
result.size = download(
^^^^^^^^^
File "/home/shengbin/github/testx/.venv/lib/python3.12/site-packages/multiurl/downloader.py", line 111, in download
return Downloader(url, **kwargs).download(target)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shengbin/github/testx/.venv/lib/python3.12/site-packages/multiurl/base.py", line 126, in download
desc=self.title(),
^^^^^^^^^^^^
File "/home/shengbin/github/testx/.venv/lib/python3.12/site-packages/multiurl/http.py", line 126, in title
return params["filename"]
~~~~~~^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
And my pip venv only install ecmwf-opendate, and it's the same error for my other production code. It seems about ecmwf opendata server internal error, but it raised the TypeError. The more odd thing is the code mentioned above still can work yesterday.
The text was updated successfully, but these errors were encountered:
andir
added a commit
to andir/multiurl
that referenced
this issue
Nov 9, 2024
This should resolveecmwf#21 which should also solve
ecmwf/ecmwf-opendata#54.
The parsing function returns a dictionary, not a tuple. If we
tuple-unpack a dictionary, that will give us the keys of the *first
two* dictionary entries. If there are more than two entries it would
raise a ValueError (too many values to unpack).
demo code is used from code
it returns whatever I changed my code:
And my
pip
venv only install ecmwf-opendate, and it's the same error for my other production code. It seems about ecmwf opendata server internal error, but it raised the TypeError. The more odd thing is the code mentioned above still can work yesterday.The text was updated successfully, but these errors were encountered: