Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

syntax exception when importing #4

Closed
jaylmiller opened this issue Sep 25, 2018 · 2 comments
Closed

syntax exception when importing #4

jaylmiller opened this issue Sep 25, 2018 · 2 comments

Comments

@jaylmiller
Copy link

after installing nufhe and the other dependencies, I get this exception when i try to import nufhe

SyntaxException: (SyntaxError) invalid syntax (<unknown>, line 4) ('i32 = dtypes.ctype(numpy.int32)\n\ndef lsh(label, sh') in file '/Users/jay/anaconda/lib/python3.5/site-packages/nufhe/transform/ntt.mako' at line: 21 char: 1

any tips?

@jaylmiller
Copy link
Author

I've figured out that the reason for this issue is because the new 'f-string' syntax is being used in the file ntt.mako, which is only supported in python 3.6+.

Consider not using the f-string syntax, or specify that one needs python 3.6+, since in #2 you say that python 3.5+ is sufficient.

@fjarri
Copy link
Contributor

fjarri commented Sep 26, 2018

Thanks for noticing, I based the Py3.5 estimate on the usage of type hints, but forgot about the f-strings.

Fixed in commit 4615127 (botched the commit message, so no auto-close).

@fjarri fjarri closed this as completed Sep 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants