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

AttributeError: type object 'QMessageBox' has no attribute 'Question'. #2

Closed
ergonap opened this issue Apr 14, 2024 · 3 comments · Fixed by #3
Closed

AttributeError: type object 'QMessageBox' has no attribute 'Question'. #2

ergonap opened this issue Apr 14, 2024 · 3 comments · Fixed by #3

Comments

@ergonap
Copy link

ergonap commented Apr 14, 2024

Could this be my install? I have nothing to go off, I'm not the most knowledgeable linux person, but...I tried to set up like this. Fresh python3 and pip install of pyqt6. Full AMD setup, Ubuntu 22.04.

image
I downloaded the windows benchmark and unzipped it to /home/bsmt/Desktop/FFXIV which is where the .exe resides.
However, what I'm seeing in console is:

python3 ffxiv-benchmark.py Traceback (most recent call last): File "/home/bsmt/Desktop/FFXIV/ffxiv-benchmark.py", line 677, in launch_benchmark self.launch(self.build_cmdline(False)) File "/home/bsmt/Desktop/FFXIV/ffxiv-benchmark.py", line 700, in launch msg.setIcon(QMessageBox.Question) AttributeError: type object 'QMessageBox' has no attribute 'Question'. Did you mean: 'question'? Traceback (most recent call last): File "/home/bsmt/Desktop/FFXIV/ffxiv-benchmark.py", line 682, in launch_character_creation self.launch(cmdline) File "/home/bsmt/Desktop/FFXIV/ffxiv-benchmark.py", line 700, in launch msg.setIcon(QMessageBox.Question) AttributeError: type object 'QMessageBox' has no attribute 'Question'. Did you mean: 'question'?

@4ltc0de
Copy link

4ltc0de commented Apr 14, 2024

Looks to be an issue with the update to PyQt6, so any references in the script should be changed from

  • QMessageBox.Question to QMessageBox.Icon.Question
  • QMessageBox.Warning to QMessageBox.Icon.Warning
  • QMessageBox.Critical to QMessageBox.Icon.Critical
  • QMessageBox.Yes to QMessageBox.StandardButton.Yes
  • QMessageBox.No to QMessageBox.StandardButton.No
  • QMessageBox.Ok to QMessageBox.StandardButton.Ok

@mihawk90
Copy link
Contributor

mihawk90 commented Apr 14, 2024

mihawk90 added a commit to mihawk90/ffxiv-benchmark-launcher that referenced this issue Apr 14, 2024
@ergonap
Copy link
Author

ergonap commented Apr 15, 2024

tested; can confirm I can get it to run with @mihawk90 's patch

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

Successfully merging a pull request may close this issue.

3 participants