## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Jan 22 00:08
• Jan 21 23:07
andrew-klaassen opened #52
• Jan 19 14:33
luntan365 starred pyqt/python-qt5
• Jan 18 23:35
xiaoyue starred pyblish/pyblish-qml
• Jan 18 00:50
mefalo starred pyblish/pyblish-qml
• Jan 14 07:03
mottosso commented #353
• Jan 13 21:23
hellohornet opened #353
• Jan 09 06:36
xtvjxk123456 starred pyblish/pyblish-napoleon
• Jan 09 06:36
xtvjxk123456 starred pyblish/pyblish-magenta
• Jan 07 10:15

mottosso on 1.8.3

• Jan 07 10:14

mottosso on master

convert tuple ctx.obj["plugin_p… Convert all multi-arguments fro… Update version.py and 1 more (compare)

• Jan 07 10:14
mottosso closed #357
• Jan 07 10:14
mottosso synchronize #357
• Jan 07 09:30
davidlatwe commented #357
• Jan 07 08:49
iLLiCiTiT commented #357
• Jan 07 07:34
mottosso commented #357
• Jan 07 07:32
mottosso synchronize #357
• Jan 07 06:59
davidlatwe commented #357
• Jan 06 20:05
mrf345 starred pyqt/python-qt5
• Jan 06 13:28
iLLiCiTiT commented #357
Marcus Ottosson
@mottosso
It's all good
Roy Nieterau
@BigRoy
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "P:\pipeline\2.1_dev\git\avalon-core\avalon\tools\publish\__init__.py", line 16, in show
return _discover_gui()(parent)
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\__init__.py", line 9, in show
from . import host
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\host.py", line 684, in <module>
host = QtHost()
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\host.py", line 272, in __init__
from .vendor.Qt import QtWidgets, QtCore, QtGui
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1557, in <module>
_install()
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1509, in _install
available[name]()
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1037, in _pyside2
_reassign_misplaced_members("PySide2")
File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\vendor\Qt.py", line 922, in _reassign_misplaced_members
dst_value = getattr(getattr(Qt, "_" + src_module), src_member)
AttributeError: 'module' object has no attribute 'QStringListModel'
Getting this interesting error in Houdini 18 when trying to launch Pyblish QML. :)

https://github.com/mottosso/Qt.py/pull/302#issue-228675357

QStringListModel was moved from QtGui to QtCore in Qt5. PySide2 kept it in QtGui for a while, but have now also moved it to QtCore. (See https://bugreports.qt.io/browse/PYSIDE-614.)

Roy Nieterau
@BigRoy
Fixed by updating the vendorized Qt.py in Pyblish QML :heart:
Roy Nieterau
@BigRoy
Now a completely different bug with Pyblish QML. An artist had it suddenly close/crash in Maya 2019.2 when publishing Alembics. This is the error message:
#
# Traceback (most recent call last):
#   File "C:\Program Files\Autodesk\Maya2019\bin\python27.zip\threading.py", line 801, in __bootstrap_inner
#     self.run()
#   File "C:\Program Files\Autodesk\Maya2019\bin\python27.zip\threading.py", line 754, in run
#     self.__target(*self.__args, **self.__kwargs)
#   File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\ipc\server.py", line 283, in _listen
#     result = wrapper(func, *args)  # block..
#   File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\host.py", line 41, in _wrapper
#     raise e
#   File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\host.py", line 528, in threaded_wrapper
#     return wrapper(func, *args, **kwargs)
#   File "P:\pipeline\2.1_dev\git\avalon-setup\git\pyblish-qml\pyblish_qml\host.py", line 36, in _wrapper
# Traceback (most recent call last):
# Error: file: C:/Program Files/Autodesk/Maya2019/scripts/others/createMayaSoftwareCommonGlobalsTab.mel line 2037: RuntimeError: file C:\solidangle\mtoadeploy\2019\scripts\mtoa\ui\globals\common.py line 2208: Object 'preMelSwGrp' not found. #
No clue where this might originate from.
Roy Nieterau
@BigRoy
Reading the error message again it almost seems that some command by mtoa (Maya to Arnold) is making the call to executeInMainThread fail.
Marcus Ottosson
@mottosso
Unsure, what is the plug-in doing?
Roy Nieterau
@BigRoy
No idea why it failed in this case - it was on an animator's machine. He's not doing any Arnold work. I'll keep an eye out whether it happens again.
Marcus Ottosson
@mottosso
It's got a lot of callbacks into the scene, odds are one of them is causing issues
David Lai
@davidlatwe
Pyblish QML got this error while launching in Maya 2020
  File "C:\Users\david\Dropbox\github\AVALON\pyblish-qml\pyblish_qml\host.py", line 290, in __init__
from .vendor.Qt import QtWidgets, QtCore, QtGui
File "C:\Users\david\Dropbox\github\AVALON\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1557, in <module>
_install()
File "C:\Users\david\Dropbox\github\AVALON\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1509, in _install
available[name]()
File "C:\Users\david\Dropbox\github\AVALON\pyblish-qml\pyblish_qml\vendor\Qt.py", line 1037, in _pyside2
_reassign_misplaced_members("PySide2")
File "C:\Users\david\Dropbox\github\AVALON\pyblish-qml\pyblish_qml\vendor\Qt.py", line 922, in _reassign_misplaced_members
dst_value = getattr(getattr(Qt, "_" + src_module), src_member)
AttributeError: 'module' object has no attribute 'QStringListModel'
Updating vendorized Qt.py fixed this.
Marcus Ottosson
@mottosso
Nice!
Roy Nieterau
@BigRoy
Ah, yes. Forgot to set up a PR!
David Lai
@davidlatwe
Haha, just submitted one :P
Jasper van Nieuwenhuizen
@jasperges
I was wondering: is there a specific reason that Pyblish QML needs PyQt5? Qt.py is included, but at some places import PyQt5 is used. Would PySide2 also work?
Marcus Ottosson
@mottosso
Yes, PySide2 has had incomplete support for QML
Unsure about how it looks today, it was a while since I've checked
Jasper van Nieuwenhuizen
@jasperges
Okay, thanks for the clarification. If I have some time I will check if it's still needed.
Marcus Ottosson
@mottosso
If it does, porting it to Qt5.py would be great, and if Maya/Houdini/etc allows it, it means we could leverage mayapy to run the background process, and skip the whole Python 3/PyQt5 installation steps. It would be marvellous
Qt.py was included because there are some minor Qt-related interactions with some of the hosts, like Maya
E.g. the splash screen
Roy Nieterau
@BigRoy
@andre.anjos_gitlab are you currently using Pyblish with C4D in production? :D Are things running smoothly?
Andre Anjos
@andre.anjos_gitlab
@BigRoy Hi Roy! Yes I am! I have a few things to sort but it has been released and is an amazing success on our team. So thanks for that!
I'm currently having more issues with connecting Trello via REST, which is not related with Pyblish, but would be an intersting use case for anyone else.
I just saw you mention me in the avalon room, so will reply there :)
Roy Nieterau
@BigRoy
Recently saw a full "shot tracking pipeline" build in Trello. But then later couldn't find it anymore. What kind of issues are you facing?
Andre Anjos
@andre.anjos_gitlab

Recently saw a full "shot tracking pipeline" build in Trello. But then later couldn't find it anymore. What kind of issues are you facing?

It's to do with max retries with the requests library. It's a weird one! I've tested this extensively and I always connected to Trello without any issues at all, but once the team started using it, it becomes a problem. I've asked for some help here: https://community.developer.atlassian.com/t/max-retries-exceeded-violation-of-ssl-protocol-rest-api/34156
Got an answer and probbaly need to implement a throttling solution.
Not sure if anyone as experienced this?

Roy Nieterau
@BigRoy

Yup, it came by somewhere on Tech-Artists slack.. but couldn't find it last time. I'll ask if anyone else remembers.

Roy Nieterau
@BigRoy
How many queries are you doing? And how are they written? Or are you in a very big studio and 100s of requests is a regular thing to do in 10 seconds?
Andre Anjos
@andre.anjos_gitlab

Yup, it came by somewhere on Tech-Artists slack.. but couldn't find it last time. I'll ask if anyone else remembers.

Thank you! Will have a look as well :)

Andre Anjos
@andre.anjos_gitlab

How many queries are you doing? And how are they written? Or are you in a very big studio and 100s of requests is a regular thing to do in 10 seconds?

Not many! From what I can understand when it fails, it fails on the first query to request a board, which is only one request. It's very unlikely that we have people regularly requesting things at the same time or even at the crazy rate, as we are only 8 animators. When testing it, I automated 100 requests to be made and it never failed.

Roy Nieterau
@BigRoy
Hmm, sounds like odd behavior. Hard to tell without knowing what the code is doing. Maybe you're doing it once per instance and you're doing 10s of instances from a scene? No idea :D
Andre Anjos
@andre.anjos_gitlab
Yeah! It could be! I don't have a clue as well at the moment. Thanks anyway! I appreciate your help :)
Andre Anjos
@andre.anjos_gitlab

Hi all, I'm currently having a very strange issue with only a couple of users on the team... All of the setup is the same and everyone is importing the necessary modules from same server directory.

file://.../Software/UK/Cinema 4D Plugins/modules/pyblish_qml/qml/app.qml:15:1: Type StackView unavailable
11:51
file://.../Software/UK/Cinema 4D Plugins/modules/PyQt5/Qt/qml/QtQuick/Controls/StackView.qml:515:5: Type StackViewDelegate unavailable
11:51
file://.../Software/UK/Cinema 4D Plugins/modules/PyQt5/Qt/qml/QtQuick/Controls/StackViewDelegate.qml:82:40: Type StackViewTransition unavailable
11:52
file://.../Software/UK/Cinema 4D Plugins/modules/PyQt5/Qt/qml/QtQuick/Controls/qmldir: plugin cannot be loaded for module "....Software.UK.Cinema 4D Plugins.modules.PyQt5.Qt.qml.QtQuick.Controls": Module namespace 'QtQuick.Controls' does not match import URI '..gbbl1itvmadm1.Software.UK.Cinema 4D Plugins.modules.PyQt5.Qt.qml.QtQuick.Controls'

As anyone had this issue before?

The environment paths are also setup the same for everyone.
I've removed the server name and replaced it by "..."
Marcus Ottosson
@mottosso
Could it be related to UNC paths? Have you tried mapping the directory to a drive, e.g. X:\?
Seems like a QML/Qt bug, might be worth asking on their forums too
Andre Anjos
@andre.anjos_gitlab
Hmmm... Good point! I will have a look now and come back to you.
Thank you very much @mottosso :)
Andre Anjos
@andre.anjos_gitlab
Unfortunately mapping the directory still had the same issues. Will post to forums. :)
Roy Nieterau
@BigRoy
Shouldn't these links be working inside Pyblish QML?
class Plugin(pyblish.api.InstancePlugin):
"""Docstring...

More details:
https://graphics.pixar.com/usd/docs/api/class_ar_resolver_context.html

"""
That's basically the source code.
Seems like a long time that it got implemented: https://github.com/pyblish/pyblish-qml/pull/147#issuecomment-169612931
Toke Jepsen
@tokejepsen
Looks like its broken :(
Roy Nieterau
@BigRoy