bastibe / transplant

Transplant is an easy way of calling Matlab from Python
https://transplant.readthedocs.io
Other
110 stars 26 forks source link

Transplant with Python2 #42

Closed tsdev closed 7 years ago

tsdev commented 7 years ago

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 commented 7 years ago

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

tsdev commented 7 years ago

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

bastibe commented 7 years ago

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 commented 7 years ago

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