jmelesky / omwllf

OpenMW leveled list fixer
ISC License
38 stars 9 forks source link

'return' with argument inside generator` #6

Closed wnisern closed 4 years ago

wnisern commented 5 years ago

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`

jmelesky commented 5 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.

sgodbold commented 4 years ago

Defaulting to python3 fixed this issue for me. Make sure to update the /usr/bin/python alias, not just your shell's default.

jmelesky commented 4 years ago

Closing this as likely solved