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

Can't import modules correctly #41

Open
lostVkng opened this issue Dec 19, 2012 · 2 comments
Open

Can't import modules correctly #41

lostVkng opened this issue Dec 19, 2012 · 2 comments

Comments

@lostVkng
Copy link

There is something inncorrect with the importing of modules,

python3.2
from oauth_hook import OAuthHook

leads to

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/requests_oauth-0.4.1-py3.2.egg/oauth_hook/__init__.py", line 1, in <module>
    from hook import OAuthHook
ImportError: No module named hook

I tried moving the hook code to the init.py but then the same error comes up with auth.py and just creates more issues.

Also note: I tried it in python3.3 and same issue

    from oauth_hook import OAuthHook
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/oauth_hook/__init__.py", line 1, in <module>
    from hook import OAuthHook
ImportError: No module named 'hook'
@yash-chowdhary
Copy link

I also faced this issue. Is there a solution?

@sana-farooqui
Copy link

It only works with Python2

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