Closed wnisern closed 4 years ago
That sounds like you're using a python version before 3.3 -- if you type python --version
, what does it return?
Often times a system ends up with a python2
and a python3
, and the python
will point to one or the other. You can try python3 omwllf.py
, or you can just make sure that omwllf.py
is executable and run it directly (./omwllf.py
, for example) -- it should invoke with the python3 on the system if it exists.
But it does need version 3.3 or later.
Defaulting to python3 fixed this issue for me. Make sure to update the /usr/bin/python alias, not just your shell's default.
Closing this as likely solved
running into the below when I try to run ...
`wills-imac:omwllf-master willisern$ python omwllf.py
File "omwllf.py", line 131 yield record SyntaxError: 'return' with argument inside generator`