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

Problems importing CPLELearningModel #6

Open
mamonu opened this issue Aug 8, 2017 · 3 comments
Open

Problems importing CPLELearningModel #6

mamonu opened this issue Aug 8, 2017 · 3 comments

Comments

@mamonu
Copy link

mamonu commented Aug 8, 2017

when doing

from frameworks.CPLELearning import CPLELearningModel

I get

File "/home/MYUSERNAME/anaconda3/lib/python3.6/site-packages/semisup_learn-0.0.1-py3.6.egg/frameworks/CPLELearning.py", line 119 except Exception, e: ^ SyntaxError: invalid syntax

I am using python 3.6 and have installed the module by

python setup.py install

@inoue0426
Copy link

inoue0426 commented Aug 15, 2017

I caught on the same problem.
Maybe, this library only supports Python 2 series ...

@wgmg165
Copy link

wgmg165 commented Aug 16, 2017

you can solve it by replace the line 119 'except Exception, e:' by 'except Exception as e:' . I have got the same problem when I used it in windows platform.

@mamonu
Copy link
Author

mamonu commented Aug 16, 2017

I will. Thanks. I just wish the person that wrote the code corrects that as well so people can enjoy his hard work! Anyway i will try to correct all python 2-isms and report back

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

3 participants