Skip to content

'return' with argument inside generator #353

@hellohornet

Description

@hellohornet

Whenever I run pyblish_qml.show() either from maya or python2 -m pyblish_qml --demo I successfully load the QML server, then am met with

File "P:\util\maya\Maya2020\experimental\lib\Python27\lib\runpy.py", line 162, in _run_module_as_main
Traceback (most recent call last):
SyntaxError: 'return' with argument inside generator
yield result
File "P:\util\maya\Maya2020\experimental\pyblish_qml\control.py", line 378
from . import util, compat, control, settings, ipc
File "P:\util\maya\Maya2020\experimental\pyblish_qml\app.py", line 15, in <module>
from . import app
File "P:\util\maya\Maya2020\experimental\pyblish_qml\__main__.py", line 6, in <module>
exec code in run_globals
File "P:\util\maya\Maya2020\experimental\lib\Python27\lib\runpy.py", line 72, in _run_code
"__main__", fname, loader, pkg_name)

It is my understanding that this is behavior that works in python3 but not 2.7, which is a necessity for Maya. Do I need to check out a different branch for 2.7 support ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions