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

record_count broken in Python 3 #47

Open
tomwwagstaff-product opened this issue Oct 12, 2018 · 1 comment
Open

record_count broken in Python 3 #47

tomwwagstaff-product opened this issue Oct 12, 2018 · 1 comment

Comments

@tomwwagstaff-product
Copy link

So I'm trying i.record_count("events") and I'm getting this error back:

AttributeError: 'HTTPMessage' object has no attribute 'headers'

The issue is line 632 in insightly.py:
return result.info().headers

which according to this post is deprecated in Python 3:

Python 3 Note First, there is nothing like response.info().headers, do a dict(response.info())

However, that doesn't work and despite Googling around, I can't find an alternative formulation that does...

@tomwwagstaff-product
Copy link
Author

tomwwagstaff-product commented Oct 16, 2018

Fixed this issue in this fork. Goes without saying this is offered up without any sort of guarantee, I take no responsibility for use/misuse etc.

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

1 participant