Cura: TypeError: type SettingFunction doesn't define __round__ method

Created on 7 Feb 2018  路  14Comments  路  Source: Ultimaker/Cura

Application Version
3.2

Platform
Windows

Steps to Reproduce
Select Monoprice Select Mini V1 as printer

Actual Results
App crash with TypeError: type SettingFunction doesn't define __round__ method in the log

I had no issue with 3.2 beta

Settings FixeSolved Bug

Most helpful comment

The problem is not "value" or "default_value". The problem is that what comes after it should be a string in the case of "value" and a number in the case of "default_value".

correct:
"value": "1.75"
or
"default_value": 1.75

incorrect:
"value": 1.75
or
"default_value": "1.75"

All 14 comments

Confirmed, thank you for reporting it! Devs see CURA-4923

See https://community.ultimaker.com/topic/21397-issue-with-cura-32-and-monoprice-select-mini-v2/?tab=comments#comment-199273

In the definition, value is set to a number (should be a python-interpretable string)

I searched through all printer definitions and in malyan_m200.def.json, peopoly_moai.def.json, renkforce_rf100.def.json a "value" is used instead of a "default_value" for "material_diameter".

CURA-4928, working on it and it will be fixed in a bugfix release

The problem is not "value" or "default_value". The problem is that what comes after it should be a string in the case of "value" and a number in the case of "default_value".

correct:
"value": "1.75"
or
"default_value": 1.75

incorrect:
"value": 1.75
or
"default_value": "1.75"

Thanks, adding quotes to my custom definition file fixed the issue.

We're changing it to default_value as most of the definitions use that. Thanks @fieldOfView for the valuable tip!

My 'definitions' folder is empty
screen shot 2018-02-07 at 6 21 15 pm

Am I missing something here?

Is there a hotfix I can do, or should I download the beta?

We made a test version, it includes some bug fixes and a possible fix for the garbled texts. We have tested this version, but not extensively.
The download location is from my personal could storage, since we don't have another way to distribute 'daily' builds (yet).
Could you try Cura 3.2.1: https://stack.mybacklog.info/s/MgLnKXLL0P9ro4M ?

Above fix worked for me. I downloaded Appesteijn's img and overwrote my 'Resource' folder with his and was able to add the printer without crashing. Haven't printed anything yet though.

I can also confirm that the 3.2.1 test-version fixes the bug. In my case for the Renkforce RF100 printer who crashed with the official 3.2.0 version.

Aw, the file is no longer available.

Seems to be fixed now in these definitions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rudowinger picture rudowinger  路  3Comments

konvoj picture konvoj  路  3Comments

jellewie picture jellewie  路  3Comments

JRRN picture JRRN  路  3Comments

probonopd picture probonopd  路  3Comments