PySonar icon indicating copy to clipboard operation
PySonar copied to clipboard

Failed to run demo notebook

Open kidinamoto01 opened this issue 7 years ago • 3 comments

Hello there, I run into some errors when running cells in Notebook. File "/Users/anaconda/lib/python2.7/site-packages/phe/command_line.py", line 117 print(serialised, file=output) ^ SyntaxError: invalid syntax Is there anyone who had similar mistake?

kidinamoto01 avatar Aug 13 '17 16:08 kidinamoto01

Not sure if I can help you out but could you please provide:

  1. code version (git status/git log)
  2. which cell in the notebook has this error

That should help us trying to reproduce :)

anoff avatar Aug 13 '17 19:08 anoff

hey, @anoff I got this error when running the first cell, and I just check out the code yesterday, so it should be on the master branch.

kidinamoto01 avatar Aug 14 '17 01:08 kidinamoto01

Hi @kidinamoto01! I've had this error before. This is a Python versioning issue relating to the phe dependency. It doesn't stop you from installing it into python 2.7 but it doesn't seem to work unless you're using Python 3.

iamtrask avatar Aug 18 '17 08:08 iamtrask