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

Make it works with Python 3.5 #1

Open
M5oul opened this issue Sep 22, 2016 · 2 comments
Open

Make it works with Python 3.5 #1

M5oul opened this issue Sep 22, 2016 · 2 comments

Comments

@M5oul
Copy link

M5oul commented Sep 22, 2016

Hi @tracycool, this lib looks awesome.
I could make it works with python 2.7 but not with python 3.5.

There is some issue importing:

python3 cmd.py 
Traceback (most recent call last):
  File "cmd.py", line 1, in <module>
    from easycommandline import program
  File "easycommandline/examples/easycommandline/__init__.py", line 1, in <module>
    from easycommandline import program
ImportError: cannot import name 'program'

I tried to modify __init__.py and easycommandline.py imports headers.
I don't really understand why eval() function is used for at the end of easycommandline.py file.

Do you think it's easy to port this code to Python 3?
Will you do it?
Do there is other python3 lib like this one?
I couldn't found other great ones like this one.
I found that strange that no one ever report that issue.

Thanks.

@M5oul
Copy link
Author

M5oul commented Sep 22, 2016

Anyway, I found an other great lib to manage commands and options which handle Python 3.5:

I let open the ticket in case someone have same issue.

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
@M5oul and others