async is a keyword in Python 3.7 and can not be used as an argument name. See https://www.python.org/dev/peps/pep-0492/#deprecation-plans.
Using Python 3.7.0a3:
X:\Python37>python.exe -m pymol
Error: unable to initalize the pymol.cmd module
Traceback (most recent call last):
File "X:\Python37\lib\site-packages\pymol\cmd.py", line 226, in <module>
from . import editor
File "X:\Python37\lib\site-packages\pymol\editor.py", line 406
dir=1,hydro=-1,ss=0,async=-1,quiet=1,_self=cmd):
^
SyntaxError: invalid syntax
Thanks Christoph!
fixed in rev 4184.
Renamed all
asyncvariables toasync_(trailing underscore). Backwards compatibility of function keyword arguments is handled with**kwargs.Works for me. Thank you.