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.5 compatibility #43

Open
rfarouni opened this issue Aug 27, 2016 · 3 comments
Open

Python 3.5 compatibility #43

rfarouni opened this issue Aug 27, 2016 · 3 comments

Comments

@rfarouni
Copy link

Hi,

Can I run parmesan using Python 3.5? Although I am able to run Lasagne, I get this error when I try to run the example

python examples/iw_vae.py -eq_samples 1 -iw_samples 1 -lr 0.001 -nhidden 500 -nlatent 100 -nonlin_dec very_leaky_rectify -nonlin_enc rectify -batch_size 250 -anneal_lr_epoch 2000
  File "examples/iw_vae.py", line 118
    print "Using real valued MNIST dataset to binomial sample dataset after every epoch "
                                                                                     ^
SyntaxError: Missing parentheses in call to 'print'

I realize that I need to add the parenthesis for the print function to make the code compatible with Python 3, but are there many other modifications that need to be made to the code to make it run ?

System configuration: Ubuntu 16.04, GeForce GTX 960, Cuda 8.1, CuDDN 5.1, Lasagne 0.2.dev1, Theano 0.8.2.

Thanks

@casperkaae
Copy link
Owner

Hi @rfarouni

The main branch is not python3 compatible. There is a @ferrine have done some work on converting it to python3 here https://github.com/ferrine/parmesan/tree/py2py3, but i'm not completely sure what the status is. Pull requests are more than welcome :)

@ferrine
Copy link

ferrine commented Aug 27, 2016

@rfarouni I had no free resources to run all examples, I was just waiting the moment when some work is done and then aborted the process. You can try out examples from my brunch, It would be great

@rfarouni
Copy link
Author

Hi @casperkaae @ferrine

I have forked the main branch and made it Python 3.5 compatible. I tested some of the examples- but not all - on the following system configuration: Ubuntu 16.04, CUDA 8.0, CuDNN v5.1, Theano 0.8.2, Lasagne 0.2.

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