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
Getting TypeError when trying to Webhook.find() #150
Comments
Haven't looked into this yet, however I do want to say that 2.1.5 is not the latest release. There was a 2.1.6 release within the last month, however it is not updated on PyPI- you will need to install it using the GitHub address: within requirements.txt using pip |
A better option for requirements.txt is
There's no need for the -e switch, and better to target the tag than a meaningless rev. |
Thanks funkybob for the correction, I'll update my own procedures with this as well |
I am also experiencing this issue on 2.1.8. Simply doing: products = shopify.Product.get() Results in:
|
|
@flux627, My fault. I'm still getting the exact same error though. Even when assigning
|
I think it's possible that this module does not support Python 3.4. Try it in 2.7 and see if you still get the same error. |
I had this issue when I did not activate the session prior to making the .find() call
|
I'm not able to replicate this in Python 2.7.9 or 3.5.1. As suggested by the other commenter, make sure your session is initialized first. If anyone is able to replicate this, please feel free to re-open it. |
Just updated to latest everything:
py3.5
ShopifyAPI (2.1.5)
pyactiveresource (2.1.2)
And the following code:
Raise the following exception:
Some basic print debug shows the value of
path
at that point is b''.If I modify the offending code to use
path.encode('utf-8')
it succeeds, but fails later at:So either this is byte/string failure in pyactiveresource, or ShopifyAPI isn't setting values on its Webhook resource that the other lib needs.
The text was updated successfully, but these errors were encountered: