civisanalytics / civis-python

Civis API Python Client
BSD 3-Clause "New" or "Revised" License
34 stars 26 forks source link

`civis` is not compatible with `requests > 2.12` #351

Closed elsander closed 4 years ago

elsander commented 4 years ago

Retrying API calls using requests > 2.12.x produces the following error: unsupported operand type(s) for -=: 'AggressiveRetry' and 'int'

As a short term solution, we can pin requests in the requirements. Longer term, we will want to determine why this is happening and how to address it.

One possibility is that requests changed their Retry class such that the civis-python class AggressiveRetry isn’t fully compatible with it. However, there are very few differences.

elsander commented 4 years ago

Closing as we were not able to replicate this issue.