Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Nuke #301

Closed
mottosso opened this issue Sep 26, 2018 · 7 comments · Fixed by #354
Closed

Doesn't work with Nuke #301

mottosso opened this issue Sep 26, 2018 · 7 comments · Fixed by #354
Labels

Comments

@mottosso
Copy link
Member

As reported by Jakub over in the chat, there's something preventing Pyblish QML from working with Nuke.

@mottosso mottosso added the bug label Sep 26, 2018
@jakubjezek001
Copy link

import os
for key, value in os.environ.items():
    if "PYBLISH_QML_PYTHON_EXECUTABLE" in key:
        print(key,value)
# Result: ('PYBLISH_QML_PYTHON_EXECUTABLE', 'C:\\Users\\Public\\avalon_env\\python.exe')
Traceback (most recent call last):
  File "C:\Users\Public\avalon_env\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Public\avalon_env\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\hubert\CODE\github\avalon-environment\bin\avalon-setup\git\pyblish-qml\pyblish_qml\__main__.py", line 6, in <module>
    from . import app
  File "C:\Users\hubert\CODE\github\avalon-environment\bin\avalon-setup\git\pyblish-qml\pyblish_qml\app.py", line 12, in <module>
    from PyQt5 import QtCore, QtGui, QtQuick, QtTest
ImportError: DLL load failed: The specified procedure could not be found.
for key, value in os.environ.items():
    if "PYBLISH_QML_PYQT5" in key:
        print(key,value)
# Result: ('PYBLISH_QML_PYQT5', 'C:\\Users\\Public\\avalon_env\\Lib\\site-packages\\PyQt5')

Tests:

  • Nuke fully licenced didnt work for the same reason > ImportError: DLL load failed:... so non-commertial wasn't an issue..
  • vanilla Python3.6.5, PyQt5==5.7.1 - didnt work and the error is the same as from conda env.. ^
  • vanilla Python2.7.15, python-qt - started but the window didnt load fully and perhaps crashed internally. No logging so don't really know what happened..

I presume it is some Nuke's internal incompatibility issue with outside python3 PyQt5 but that is just a guess.

@darkvertex
Copy link
Contributor

What Nuke version? I've opened the Pyblish QML GUI in Nuke no problem in Linux in the past.

@jakubjezek001
Copy link

Hi @darkvertex thanks for question. Its windows 11.2v3. Would you mind to share your config?

@darkvertex
Copy link
Contributor

It's studio stuff using Rez packages that I can't really share, sorry, but it should be possible to accomplish a working pyblish-qml with a conda environment with only Python 2.7, PyQt5, pyblish-base and pyblish-qml and using the PYBLISH_QML_PYTHON_EXECUTABLE env var in Nuke to point to this environment before you use or import the GUI.

It can be a shellscript/.bat that sets the good environment and passes the args straight to the python executable, it doesn't necessarily have to be a path to python.exe itself.

@mottosso
Copy link
Member Author

@jezscha Have you experienced the issue on a different computer or user? Could it be something pre-existing in your particular environment? E.g. multiple Qt installs?

@jakubjezek001
Copy link

@darkvertex I understand. But anyway thanks for the comprehension. In our setting we wish to stick to Python3.6.5, PyQt5==5.7.1 for all integrations if it would be possible. I understand Pyblish-qml in Nuke can be accomplished in Python2.7 and I have already experienced it myself.

@mottosso I have been testing it on two machines which one of them was vanilla and no paths existed in env-vars. Also the second has been cleaned from all traces in env-vars and files and register. I am going to test it on other tomorrow so lets see.

@BigRoy
Copy link
Member

BigRoy commented Jan 9, 2019

@jezscha were you able to make progress with this the way you wanted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants