Closed duylp closed 1 year ago
Hi @duylp thank you for the feedback! Could you update to the latest qtpy
and check again? I think we are missing bumping the constraint for qtpy
to be at least >=2.0.0 at https://github.com/spyder-ide/qtawesome/blob/master/setup.py#L35
Hi @dalthviz, thanks for solution, that should work. Reading from the changelog, I don't see any features aside from this depend on PYSIDE6
. Would it be better to check if PYSIDE6
exists rather than pinning qtpy>=2.0.0
?
In our usage, qtpy
is pinned to be 1.x.x
so we're currently pinning qtawesome
.
Thanks for the info @duylp ! I see, so maybe you are still using Qt4? Checking maybe we could change the validation using qtpy.PYSIDE2
or qtpy.PYSIDE6
at https://github.com/spyder-ide/qtawesome/blob/1623f2a7dc5b4564b3f3e9d26d5fa1b7e4b59b20/qtawesome/iconic_font.py#L535
to use qtpy.PYSIDE_VERSION
so:
if PYSIDE_VERSION:
What do you think @ccordoba12 ? In that way we should not need to constrain qtpy
or add try-catch
logic, right?
Also @duylp could you check if the change I'm suggesting works in your setup with qtpy
<=1.x ? Thank you!
What do you think @ccordoba12 ? In that way we should not need to constrain qtpy or add try-catch logic, right?
Yeah, sounds good to me.
Thanks, I've tested it and your solution works for me.
A recent change made
qtawesome
depend onPYSIDE6
, which is not necessary in my opinion.A simple
try/catch
would fix this.