Skip to content

Commit

Permalink
fix windows install
Browse files Browse the repository at this point in the history
  • Loading branch information
sr99622 committed Feb 8, 2024
1 parent 8f0d8c2 commit e8a3ec9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions onvif-gui/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

import avio

VERSION = "1.2.11"
VERSION = "1.2.13"

class MainWindowSignals(QObject):
started = pyqtSignal(int)
Expand Down Expand Up @@ -491,12 +491,15 @@ def run():

sys.exit()

app = QApplication(sys.argv)
app.setStyle('Fusion')
window = MainWindow(clear_settings)
window.style()
window.show()
app.exec()
try:
app = QApplication(sys.argv)
app.setStyle('Fusion')
window = MainWindow(clear_settings)
window.style()
window.show()
app.exec()
except Exception as ex:
print("Error starting application: " + str(ex))

if __name__ == '__main__':
run()
4 changes: 2 additions & 2 deletions onvif-gui/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

[project]
name = "onvif-gui"
version = "1.2.11"
version = "1.2.13"
dynamic = ["gui-scripts"]
description = "A client gui for Onvif"
readme = "README.md"
Expand All @@ -38,7 +38,7 @@ classifiers = [
]

dependencies = [
"libonvif", "avio", "pyqt6==6.5.0", "numpy", "loguru", "opencv-python"
"libonvif==2.0.10", "avio==2.1.8", "pyqt6", "numpy", "loguru", "opencv-python"
]

[project.urls]
Expand Down

0 comments on commit e8a3ec9

Please sign in to comment.