kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.36k stars 997 forks source link

TypeError when adjusting temp, speed, flow rate #1258

Closed Swarvey closed 2 years ago

Swarvey commented 2 years ago

This might not be the most common issue as I have found zero information everywhere else. Problem is as follows:

while clicking on / entering temperatures, flow rates, print speed etc, the log shows an error, referencing controls.py line 234

"TypeError: Slider.SetValue(): argument 1 has unexpected type 'float' "

Under Ubuntu 21, when this error showed up, the application would continue functioning and set the requested temp, speed, flow rate etc. Updated to Ubuntu 22 yesterday and now once the error message shows in the log, Printrun freezes and cannot be interacted with until either killed, or the print finishes.

Further information, after updating to Ubuntu 22, I had to rebuild and reinstall Printrun to get it operational again, as well as install/update to Python3.

To quote the Bloodhound Gang, I'll appreciate your input

volconst commented 2 years ago

@Swarvey , please test if PR #1262 fixes the error Wheels artifacts can be found at https://github.com/kliment/Printrun/actions/runs/2285967572#artifacts or checkout and run from source branch https://github.com/volconst/Printrun/tree/dbl-spinner

Swarvey commented 2 years ago

I can confirm this fixes the error in the log screen.

Printrun is still freezing on Ubuntu 22 but I can chalk that up to in-place-upgrading the OS