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

Transplant with Python2 #42

Closed
tsdev opened this issue Jul 26, 2017 · 4 comments
Closed

Transplant with Python2 #42

tsdev opened this issue Jul 26, 2017 · 4 comments

Comments

@tsdev
Copy link

tsdev commented Jul 26, 2017

I tried to import transplant on Python 2.7.13 but I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/tothsa/.pyenv/versions/2.7.13/lib/python2.7/site-packages/transplant/__init__.py", line 1, in <module>
    from .transplant_master import Matlab, TransplantError, MatlabStruct
  File "/Users/tothsa/.pyenv/versions/2.7.13/lib/python2.7/site-packages/transplant/transplant_master.py", line 124
    print(line.decode(), end='')
                            ^
SyntaxError: invalid syntax

Is transplant planned to run on Python 2.7?

@bastibe
Copy link
Owner

bastibe commented Jul 26, 2017

No, transplant is not supposed to run on Python 2.7.

@tsdev
Copy link
Author

tsdev commented Jul 26, 2017

Ok, thanks. It might be good to note that in the documentation.

@bastibe
Copy link
Owner

bastibe commented Jul 26, 2017

I added a note to the README. A better solution would specify the python version in setup.py, so that you couldn't even install Transplant on Python 2.7, but I can't figure out how to do that.

@bastibe
Copy link
Owner

bastibe commented Jul 26, 2017

As of the latest version, Transplant should neither run nor install on Python 2.7.

@bastibe bastibe closed this as completed Jul 26, 2017
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