fieldOfView / Cura-CustomJobPrefix

A Cura plugin that lets the user set a custom print job prefix
GNU Affero General Public License v3.0
24 stars 5 forks source link

Cura 3.5.1 crashes when opening dialogue #4

Closed Ghostkeeper closed 5 years ago

Ghostkeeper commented 5 years ago

This plug-in makes Cura 3.5.1 crash when opening the dialogue to change the prefix. Reproduce steps:

  1. Go to Extensions -> Custom printjob prefix -> Set prefix.

Cura then crashes with the following error in the log:

2019-11-08 16:09:17,845 - ERROR - [MainThread] UM.Qt.QtApplication.createQmlComponent [507]: file:///home/cherubim/.local/share/cura/3.5/plugins/CustomJobPrefix/CustomJobPrefix/PrefixDialog.qml:10:1: module "Cura" version 1.1 is not installed
2019-11-08 16:09:17,849 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [65]: An uncaught error has occurred!
2019-11-08 16:09:17,851 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]: Traceback (most recent call last):
2019-11-08 16:09:17,853 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/build/3.5/build/inst/lib/python3.5/site-packages/UM/Qt/Bindings/ExtensionModel.py", line 51, in subMenuTriggered
2019-11-08 16:09:17,855 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/build/3.5/build/inst/lib/python3.5/site-packages/UM/Extension.py", line 38, in activateMenuItem
2019-11-08 16:09:17,856 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/home/cherubim/.local/share/cura/3.5/plugins/CustomJobPrefix/CustomJobPrefix/CustomJobPrefix.py", line 46, in showNameDialog
2019-11-08 16:09:17,858 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:     self._create_profile_window.show()
2019-11-08 16:09:17,860 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]: AttributeError: 'NoneType' object has no attribute 'show'

I think you might need to import a lower version of Cura in your QML?