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 "export.py", line 84, in<module>main()
File "export.py", line 56, in main
view = views.pop()
AttributeError: 'filter' object has no attribute 'pop'
Activity
andrewbcooper commentedon Jan 8, 2020
I had the same issue and found this on Stackoverflow. Are you using Python 3.x? If so, edit the code to be:
views = filter(lambda x: x.id == args.resource_id,
TSC.Pager(server.views.get))
views = list(views)
view = views.pop()
https://stackoverflow.com/questions/34820657/filter-object-has-no-attribute-pop
JoeyKwok commentedon Aug 18, 2020
Mine returns 'IndexError: pop from empty list', using python 3.6 corrected with list.
I am using view.id as report_ID. Am I using the correct one?
bcantoni commentedon Sep 1, 2020
Confirmed this is still a bug in the sample. There are 2 issues here:
jacalata commentedon Jun 7, 2022
The updated samples should cover this nicely.