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
The QueryResult class in the dataquery module defines a method __iter__. Calling this method unconditionally fails with AttributeError, due to calling a historical dict method viewitems that existed in Python 2.
Traceback (most recent call last):
File "/data/gholl/checkouts/protocode/mwe/pybufrkit-attributeerror.py", line 7, in <module>iter(query_result)
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/pybufrkit/dataquery.py", line 313, in __iter__returniter(self.results.viewitems())
^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'collections.OrderedDict' object has no attribute 'viewitems'
I'm using pybufrkit 0.2.19.
The text was updated successfully, but these errors were encountered:
The
QueryResult
class in thedataquery
module defines a method__iter__
. Calling this method unconditionally fails withAttributeError
, due to calling a historical dict methodviewitems
that existed in Python 2.To reproduce:
Using Python 3.11, this fails with:
I'm using pybufrkit 0.2.19.
The text was updated successfully, but these errors were encountered: