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

python 3 support? #5

Open
dz0gchen opened this issue Dec 13, 2017 · 4 comments
Open

python 3 support? #5

dz0gchen opened this issue Dec 13, 2017 · 4 comments

Comments

@dz0gchen
Copy link

No description provided.

@flavianh
Copy link
Member

It's supposed to be tested against python34. Do you have issues with it?

See https://github.com/Trax-air/ddexreader/blob/master/tox.ini

@dz0gchen
Copy link
Author

dz0gchen commented Dec 13, 2017

pip install git+https://github.com/Trax-air/ddexreader
pip install -r ...requirements.txt
.....................................

from ddexreader.ddexreader import open_ddex, ddex_to_dict

xml_path = '/path/to/my/ddex_file.xml'
ddex = open_ddex(xml_path)
ddex_dict = ddex_to_dict(ddex)

File "/home/.../venv/lib/python3.5/site-packages/ddexreader/ddexreader.py", line 2, in
import ern312
ImportError: No module named 'ern312'

.....................................
from . import ern312
from . import ern32
from . import ern33
from . import ern34
from . import ern341
from . import ern35
from . import ern351
from . import ern36

File "/home/.../venv/lib/python3.5/site-packages/ddexreader/ern312/init.py", line 1, in
from binding import *
ImportError: No module named 'binding'

https://pypi.python.org/pypi/ddexreader
https://prnt.sc/hmyop3

@flavianh
Copy link
Member

If you make a pull request to support python 35, I'll be happy to merge it

@dz0gchen
Copy link
Author

For version compatibility, you must use relative paths: from .import
example:
from .ddexreader import *

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