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

Import Error in python2.7: Attempted relative import in non-package #42

Open
beyondwait opened this issue Jan 27, 2017 · 1 comment
Open

Comments

@beyondwait
Copy link

import oandapy
File "C:\Python27\Lib\site-packages\oandapy\oandapy.py", line 3, in
Traceback (most recent call last):
File "", line 1, in
from .exceptions import BadEnvironment, OandaError
ValueError: Attempted relative import in non-package

@hootnot
Copy link
Contributor

hootnot commented Jan 27, 2017

@beyondwait
Hi, I've create PR #43 from which I think it should solve your import issues.

I can't test it myself since I do not use windows. Using python 2.7 on linux this issue does not occur.

Please check it out.

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

2 participants