Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: dictionary keys changed during iteration #129

Open
yangleir opened this issue Aug 6, 2022 · 1 comment
Open

RuntimeError: dictionary keys changed during iteration #129

yangleir opened this issue Aug 6, 2022 · 1 comment

Comments

@yangleir
Copy link

yangleir commented Aug 6, 2022

Hi,

Could you please check this error message?

Code:

from satsearch import Search

search = Search(bbox=[-110, 39.5, -105, 40.5])
print('bbox search: %s items' % search.found())

search = Search(datetime='2018-02-12T00:00:00Z/2018-03-18T12:31:12Z')

Error:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [23], in <cell line: 6>()
      3 search = Search(bbox=[-110, 39.5, -105, 40.5])
      4 print('bbox search: %s items' % search.found())
----> 6 search = Search(datetime='2018-02-12T00:00:00Z/2018-03-18T12:31:12Z')

File /srv/conda/envs/notebook/lib/python3.9/site-packages/satsearch/search.py:26, in Search.__init__(self, **kwargs)
     24 """ Initialize a Search object with parameters """
     25 self.kwargs = kwargs
---> 26 for k in self.kwargs:
     27     if k == 'datetime':
     28         self.kwargs['time'] = self.kwargs['datetime']

RuntimeError: dictionary keys changed during iteration

Thanks
Lei

@njanakiev
Copy link

I had the same issue, but it worked for me after upgrading to sat-search==0.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants