TUDelft-CNS-ATM / bluesky

The open source air traffic simulator
GNU General Public License v3.0
365 stars 244 forks source link

Unable to use `open` on Mac #462

Closed Ellislee1 closed 1 year ago

Ellislee1 commented 1 year ago

I tried loading a scenario from the GUI on a mac using the file>open and caused the program to crash with the following error:

Qt gui fatal error: Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/bluesky/ui/qtgl/mainwindow.py", line 416, in show_file_dialog
    response = QFileDialog.getOpenFileName(self, 'Open file', scenpath, 'Scenario files (*.scn)')
TypeError: getOpenFileName(parent: typing.Optional[QWidget] = None, caption: str = '', directory: str = '', filter: str = '', initialFilter: str = '', options: QFileDialog.Option = QFileDialog.Options()): argument 3 has unexpected type 'bool'
zsh: abort      bluesky
jooste commented 1 year ago

Thanks, this was a bug where the Qt menu action signal passed an unexpected boolean! Fixed in cdd367e.