farizrahman4u/recurrentshop

engine.py: indentation error in line 42 and import * only allowed at module level in line 41

skeydan opened this issue · 5 comments

Hi,

I've just updated recurrentshop to work with keras 2 (to keras-2.0.3 recurrentshop-1.0.0) and now on

import recurrentshop I get an indentation error at line 42 of engine.py.

When I correct the indentation the next error is

File "/home/key/software/anaconda3/envs/tf3.5/lib/python3.5/site-packages/recurrentshop/engine.py", line 41 def _get_cells(): ^ SyntaxError: import * only allowed at module level

Could you please have a look?
Thx!

@abhaikollara Can you test on python3?

Yup, getting the same error here

What about now?

Works fine now

Cool, thanks.