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

AttributeError: 'Request' object has no attribute '_enc_params' #34

Open
amalakar opened this issue Jul 11, 2012 · 2 comments
Open

AttributeError: 'Request' object has no attribute '_enc_params' #34

amalakar opened this issue Jul 11, 2012 · 2 comments

Comments

@amalakar
Copy link

Hi,

I use the request-oauth library in a netflix webservice client library that I have written (pyflix2). One of the users in Windows has found that the oauth hook is throwing the following error:

Traceback (most recent call last):
  File "C:\Users\guthrie\AppData\Roaming\Python\Python27\site-packages\requests\hooks.py", line 47, in dispatch_hook
    hook_data = hook(hook_data) or hook_data
  File "C:\Users\guthrie\AppData\Roaming\Python\Python27\site-packages\oauth_hook\hook.py", line 207, in __call__
    if request._enc_params:
AttributeError: 'Request' object has no attribute '_enc_params'

I don't have windows environment to reproduce the bug, hoping that the error message would give you some pointer.

Original comment: amalakar/pyflix2#5 (comment)

Thanks,
Arup

@maraujop
Copy link
Owner

Hi Arup,

Most likely the problem is that he is using a new version of requests with an old version of requests-oauth. This bug here is already solved long time ago. There is probably a versions mismatch in Windows.

Cheers,
Miguel

@grguthrie
Copy link

Thanks,
I have requests-0.13.2 & requests_oauth-0.4.1 (both from activeState python).

requests-0.13.2-py2.7.egg-info
requests_oauth-0.4.1-py2.7.egg-info

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

3 participants