getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
218 stars 49 forks source link

Creator tools fails to load on Python 3+ #468

Closed BigRoy closed 4 years ago

BigRoy commented 4 years ago

Issue

What happened?

When trying to load the creator tool it fails to run because of the following error:

TypeError: setPropertyName(self, Union[QByteArray, bytes, bytearray]): argument 1 has unexpected type 'str'

However, when fixing that code by turning it into setPropertyName(b"value") with the b prefix then it resulted in a crash because of an additonal bug.

TypeError: unable to convert a Python 'NoneType' object to a C++ 'QColor' instance

It fails because of this line introduced with #448. It's easily resolved by initializing the value with a valid QColor as proposed on Gitter

To Reproduce

Additional context