-
Notifications
You must be signed in to change notification settings - Fork 217
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
TypeError: unsupported operand type(s) for &: 'WindowType' and 'ApplicationAttribute' #600
Comments
I've not tested it, but b62b038 should hopefully solve the issue. |
Well, that's literally what I did 😇 |
I ran into this same issue today, using Manjaro 22.1.0. I had not used Syncplay since the previous Saturday. |
I think on my Gentoo system, after updating from python 3.10 to python 3.11 I got a similar error:
Everything was working fine before that. I think after reinstalling the requirements it might've pulled a new version of PySide as well. Right now it's running PySide2-5.15.2. |
If you change the line: syncplay/syncplay/ui/GuiConfiguration.py Line 1430 in af0d000
self.setWindowFlags(self.windowFlags() & Qt.WindowType.WindowCloseButtonHint & ~Qt.WindowType.WindowContextHelpButtonHint) does it fix things? You may also have to change the line: Line 142 in b62b038
self.setWindowFlags(Qt.WindowType.Dialog | Qt.WindowType.WindowTitleHint | Qt.WindowType.WindowCloseButtonHint | Qt.WindowType.CustomizeWindowHint)
If that doesn't work, does commenting out these line result in Syncplay and the configuration window working adequately? |
Nope, the same error appears. Don't bother, because I just noticed this in the PySide2 package page:
Source: https://pypi.org/project/PySide2/ @YamiDoesDev What Python version is your system running? Your issue might be related to this. Edit: Yep, just tested, changing to python3.10 fixed my issue. My exact current working Python version is: 3.10.10 Edit2: In my case with or without the commit b62b038 it works fine as long as I'm using Python 3.10. |
@powerjungle Currently I run python 3.10.10, but it could have been a lower version a month ago. Did this bug really become that big? Like, commenting out that one parameter already fixed it for me back then... |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Syncplay would open the room and possibly a video as well.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and platform:
Additional context
The path: Syncplay/syncplay/blob/master/syncplay/ui/gui.py#L2109)
I don't have much of an understanding about qt-python myself. On one hand, it seems no not like the
&
operator. Changing it to|
did not help either. If I change the operator into a comma, following error will be printed instead:A possible workaround for me was to just comment out the second parameter. At least it loaded the room as intented.
The text was updated successfully, but these errors were encountered: