noah-peeters / ChimpStackr

free, multi-platform focus stacking software
GNU General Public License v3.0
84 stars 9 forks source link

MacOS Crashes on QT Fonts #52

Open michaelpeeters opened 2 years ago

michaelpeeters commented 2 years ago

Describe the bug macos crashes

logs

cd ChimpStackr.app/Contents/MacOS
 ./ChimpStackr 
Traceback (most recent call last):
  File "src/run.py", line 58, in <module>
  File "src/run.py", line 41, in main
  File "src/MainWindow/MainWindow.py", line 54, in __init__
  File "src/MainWindow/SettingsWidget.py", line 90, in __init__
  File "src/MainWindow/SettingsWidget.py", line 65, in __init__
  File "src/MainWindow/SettingsWidget.py", line 75, in config_updated
  File "qt_material/__init__.py", line 108, in apply_stylesheet
  File "qt_material/__init__.py", line 101, in add_fonts
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/wz/jjfy6f7d1vg3swvd_k27l1gr0000gn/T/_MEI1yXx51/qt_material/fonts'
[14205] Failed to execute script 'run' due to unhandled exception: [Errno 2] No such file or directory: '/var/folders/wz/jjfy6f7d1vg3swvd_k27l1gr0000gn/T/_MEI1yXx51/qt_material/fonts'
[14205] Traceback:
Traceback (most recent call last):
  File "src/run.py", line 58, in <module>
  File "src/run.py", line 41, in main
  File "src/MainWindow/MainWindow.py", line 54, in __init__
  File "src/MainWindow/SettingsWidget.py", line 90, in __init__
  File "src/MainWindow/SettingsWidget.py", line 65, in __init__
  File "src/MainWindow/SettingsWidget.py", line 75, in config_updated
  File "qt_material/__init__.py", line 108, in apply_stylesheet
  File "qt_material/__init__.py", line 101, in add_fonts
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/wz/jjfy6f7d1vg3swvd_k27l1gr0000gn/T/_MEI1yXx51/qt_material/fonts'
michaelpeeters commented 2 years ago

might be related: https://github.com/UN-GCPDS/qt-material/issues/10 ?

michaelpeeters commented 2 years ago

worked locally:

pyinstaller --icon=snap/gui/icon.png -F -w -n ChimpStackr src/run.py
115 INFO: PyInstaller: 4.10
115 INFO: Python: 3.9.10
131 INFO: Platform: macOS-11.6.4-x86_64-i386-64bit

might be related to the version of python or PyInstaller?

noah-peeters commented 2 years ago

Should be fixed in v0.0.20 by using the new qt-material v2.12 (only tested on Windows).