Export Incident Description and Notes

Facing issues while executing scripts to export incident description and notes using pygerduty.
I am following article- https://chrisgagne.com/1812/export-descriptions-notes-pagerduty/
Has anyone faced below errors or any idea how to proceed further?

$ python incidents.py 2020-07-21 2020-07-23
Traceback (most recent call last):
  File "incidents.py", line 37, in <module>
    for incident in pager.incidents.list(since=startdate, until=enddate):
  File "/Users/s.purushothaman/Library/Python/2.7/lib/python/site-packages/pygerduty/__init__.py", line 113, in list
    this_paginated_result = self._list_no_pagination(**these_kwargs)
  File "/Users/s.purushothaman/Library/Python/2.7/lib/python/site-packages/pygerduty/__init__.py", line 95, in _list_no_pagination
    return self._list_response(response)
  File "/Users/s.purushothaman/Library/Python/2.7/lib/python/site-packages/pygerduty/__init__.py", line 80, in _list_response
    entities.append(self.container(self, **entity))
TypeError: __init__() got multiple values for keyword argument 'self'

Hello Sujitha,

Thanks for reaching out on Community. For this, we would recommend reaching out to dropbox as they wrote pygerduty. You can however get a similar report from our incidents endpoint - albeit it won’t be in CSV format.


1 Like