fieldOfView / Cura-OctoPrintPlugin

Cura plugin which enables printing directly to OctoPrint and monitoring the process
GNU Affero General Public License v3.0
484 stars 74 forks source link

Blank configuration dialog when pressing "Connect OctoPrint" #269

Closed nicolas-ivering closed 2 years ago

nicolas-ivering commented 2 years ago

Version: 3.7.0-DEV

Cura version: 5 beta

When pressing the button "Connect OctoPrint" in the printers configuration the resulting window is empty. The lines below are from the cura log.

2022-04-22 22:15:04,886 - WARNING - [MainThread] UM.Qt.QtApplication.onQmlWarning [431]: file:///C:/Users/power/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:657:5: Type ManualInstanceDialog unavailable 2022-04-22 22:15:04,886 - WARNING - [MainThread] UM.Qt.QtApplication.onQmlWarning [431]: file:///C:/Users/power/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/ManualInstanceDialog.qml:175:24: RegExpValidator is not a type

fieldOfView commented 2 years ago

Thanks for the report, I'll get that fixed.

nicolas-ivering commented 2 years ago

I tried some myself and created https://github.com/fieldOfView/Cura-OctoPrintPlugin/pull/270. There is probably more work to be done but maybe it will save you some typing. At least it works now on my installation.

jneilliii commented 2 years ago

270 did resolve the issue of a blank window, but I get the following error when trying to request an API key.

Traceback (most recent call last):
  File "C:\Users\jneil\AppData\Roaming\cura\5.0\plugins\OctoPrintPlugin\OctoPrintPlugin\DiscoverOctoPrintAction.py", line 605, in _onRequestFinished
    reply.header(QNetworkRequest.LocationHeader)
AttributeError: type object 'QNetworkRequest' has no attribute 'LocationHeader'
fieldOfView commented 2 years ago

I have pushed a new prerelease of the OctoPrint Connection plugin here: https://github.com/fieldOfView/Cura-OctoPrintPlugin/releases/tag/v3.7.0-DEV

Should be less prone to crashing, but the print monitor does not seem to work just yet.

jneilliii commented 2 years ago

confirmed, latest version fixed my error.

Thisismydigitalself commented 2 years ago

Thank you so much Aldo for your quick fix. OP v3.7.0-DEV_Cura5.0 works for me. Keep up the good work.

Ingo-Knito commented 2 years ago

Works great for me too. Thanks for this great work!

Thisismydigitalself commented 2 years ago

All seems to work OK. i am missing a pop up button to allow me to open my octoprint webpage from within Cura like with 4.13