Hi,
I’m trying to implement Pyblish in Unreal editor since python has joined Unreal. All the Pyblish base modules work great. Now I’m stuck on the UI.
First of all I tried Pyblish lite in Unreal editor and it loads well (Finger crossed). The problem is on Pyblish_qml. Just having a very basic plugin and trying to launch the application, I see the main window pops up with no widgets inside and being freezing for while then go disappeared.
Screenshot bellow
For more information about my environment set up:
- The unreal versio: 4.26.1
- Python version is 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]
- PYQT_VERSION = 331524
- PYQT_VERSION_STR = 5.15.4
- The pyblish itself is on 1.8.7
According or the requirement of Pyblish qml list on https://github.com/pyblish/pyblish-qml.
requires an external Python (2 or 3) install with PyQt 5.6+ available.
Python 3.5 any platform
Seems that PyQt version meet the requirement while Python 3.7 is higher than recommended. But not sure if this difference is crucial to run Pyblish qml.
I’ve also tried to register other python executables and PyQt5 modules but still launch from Unreal console.
api.register_python_executable(“C:/Python27/python.exe”)
api.register_pyqt5(“C:/pyblish/venv/Lib/site-packages/PyQt5”)
No luck with that either. No window pops up at all and the out log is like this.
LogPython: Already installed, uninstalling…
LogPython: Pyblish QML shutdown successful.
LogPython: Traceback (most recent call last):
LogPython: File “C:\Python27\lib\runpy.py”, line 174, in _run_module_as_main
LogPython: “main”, fname, loader, pkg_name)
LogPython: File “C:\Python27\lib\runpy.py”, line 72, in run_code
LogPython: exec code in run_globals
LogPython: File "C:\Python27\lib\site-packages\pyblish_qml_main.py", line 6, in
LogPython: from . import app
LogPython: File “C:\Python27\lib\site-packages\pyblish_qml\app.py”, line 12, in
LogPython: from . import util, compat, control, settings, ipc
LogPython: File “C:\Python27\lib\site-packages\pyblish_qml\control.py”, line 380
LogPython: yield result
LogPython: SyntaxError: ‘return’ with argument inside generator
LogPython: Using Python @ ‘C:/Python27/python.exe’
LogPython: Using PyQt5 @ ‘C:/pyblish/venv/Lib/site-packages/PyQt5’
LogPython: Targets: default
I understand that Pyblish lite was developed to maximum the capacity which is exactly Unreal is doing with QML. However the feature that I can check the details of each valiation item is too nice to ignore. I didn’t see too many other topics in forum about this yet. But still want to take a chance if anybody else happen to experience the same problem or has any idea of the issue at least?
Any support would be appreciated!