Jump to content

TypeError: float() argument must be a string or a real number, not 'SettingFunction'


ollyk2

Recommended Posts

Posted · TypeError: float() argument must be a string or a real number, not 'SettingFunction'

Hi folks, so I have just installed Cura, to replace the Flashforge software that I am finding rather poor in performance.

I installed a profile for the Flashforge Creator 3 Pro from a file on thingiverse, just had to change print bed dimensions...

When I come to managing PLA type out of the PLA menu the software crashes, with the error

 

TypeError: float() argument must be a string or a real number, not 'SettingFunction'


The full listing is below...

Traceback

Traceback (most recent call last):
  File "UM\Settings\Models\ContainerPropertyProvider.py", line 84, in setKey
    self._update()
  File "UM\Settings\Models\ContainerPropertyProvider.py", line 148, in _update
    new_properties[property_name] = self._getPropertyValue(property_name)
  File "UM\Settings\Models\ContainerPropertyProvider.py", line 167, in _getPropertyValue
    property_value = SettingDefinition.settingValueToString(setting_type, property_value)
  File "UM\Settings\SettingDefinition.py", line 619, in settingValueToString
    return convert_function(value)
  File "UM\Settings\SettingDefinition.py", line 757, in <lambda>
    "float": {"from": lambda v: str(round(float(v), 4)) if v is not None else "", "to": toFloatConversion, "validator": Validator},
TypeError: float() argument must be a string or a real number, not 'SettingFunction'

Logs
 

Thread 0x000028bc (most recent call first):
  File "C:\Program Files\Ultimaker Cura 5.1.0\share\cura\plugins\USBPrinting\USBPrinterOutputDeviceManager.py", line 88 in _updateThread
  File "threading.py", line 946 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00002e2c (most recent call first):
  File "threading.py", line 324 in wait
  File "zeroconf\__init__.py", line 2534 in wait
  File "zeroconf\__init__.py", line 1715 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00000390 (most recent call first):
  File "threading.py", line 324 in wait
  File "threading.py", line 600 in wait
  File "C:\Program Files\Ultimaker Cura 5.1.0\share\cura\plugins\UM3NetworkPrinting\src\Network\ZeroConfClient.py", line 81 in _handleOnServiceChangedRequests
  File "threading.py", line 946 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00002dc4 (most recent call first):
  File "zeroconf\__init__.py", line 1369 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00002f7c (most recent call first):
  File "C:\Program Files\Ultimaker Cura 5.1.0\share\cura\plugins\RemovableDriveOutputDevice\RemovableDrivePlugin.py", line 61 in _updateThread
  File "threading.py", line 946 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00001298 (most recent call first):
  File "UM\Backend\Backend.py", line 165 in _storeStderrToLogThread
  File "threading.py", line 946 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00002a74 (most recent call first):
  File "UM\Backend\Backend.py", line 153 in _storeOutputToLogThread
  File "threading.py", line 946 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x000018f0 (most recent call first):
  File "threading.py", line 320 in wait
  File "threading.py", line 460 in acquire
  File "UM\JobQueue.py", line 98 in _nextJob
  File "UM\JobQueue.py", line 124 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x000020f4 (most recent call first):
  File "threading.py", line 320 in wait
  File "threading.py", line 460 in acquire
  File "UM\JobQueue.py", line 98 in _nextJob
  File "UM\JobQueue.py", line 124 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x00002cec (most recent call first):
  File "threading.py", line 320 in wait
  File "threading.py", line 460 in acquire
  File "UM\JobQueue.py", line 98 in _nextJob
  File "UM\JobQueue.py", line 124 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Thread 0x000008b4 (most recent call first):
  File "threading.py", line 320 in wait
  File "threading.py", line 460 in acquire
  File "UM\JobQueue.py", line 98 in _nextJob
  File "UM\JobQueue.py", line 124 in run
  File "threading.py", line 1009 in _bootstrap_inner
  File "threading.py", line 966 in _bootstrap

Current thread 0x00002e9c (most recent call first):
  File "cura\CrashHandler.py", line 397 in _logInfoWidget
  File "cura\CrashHandler.py", line 182 in _createDialog
  File "cura\CrashHandler.py", line 86 in __init__
  File "cura_app.py", line 165 in exceptHook
  File "UM\Qt\QtApplication.py", line 414 in exec
  File "cura\CuraApplication.py", line 888 in run
  File "cura_app.py", line 239 in <module>



Can anyone please help ?

Thanks

  • Link to post
    Share on other sites

    Posted · TypeError: float() argument must be a string or a real number, not 'SettingFunction'

    Sounds to me there’s a problem in that profile on thingiverse. But since you forgot to post a link to it, I can’t really tell you what causes the crash.

  • Link to post
    Share on other sites

    Posted · TypeError: float() argument must be a string or a real number, not 'SettingFunction'

    I don't even get to a particular profile though! This comes up when I select profile manager and without selecting any profile! Anyway, my printer has more problems with this software atm!

    I will just leave the PLA type as generic for now

  • Link to post
    Share on other sites

    • 2 weeks later...
    Posted · TypeError: float() argument must be a string or a real number, not 'SettingFunction'

    Hey guys, I'm in the same situation as @ollyk2. I also use Cura instead of Flashprint with the "profile" from thingivers and everytime I try to manage my materials I get the same error message like ollyk2. This is the "profile"/instruction by ArteFlux I used to generate gcode in Cura suitable for the Creator 3 printer:

    https://www.thingiverse.com/thing:4574596

    I'm actually not good in programming, but I guess there is a problem within the SettingsDefinitions.py file in line 757.

      File "UM\Settings\SettingDefinition.py", line 757, in <lambda>
        "float": {"from": lambda v: str(round(float(v), 4)) if v is not None else "", "to": toFloatConversion, "validator": Validator},
    TypeError: float() argument must be a string or a real number, not 'SettingFunction'

    Maybe someone can help.

    Thanks!

  • Link to post
    Share on other sites

    Posted · TypeError: float() argument must be a string or a real number, not 'SettingFunction'
    20 hours ago, Olaf_der_Hobbit said:

    This is the "profile"/instruction by ArteFlux

    Like I said before, the problem is with the "profile"/instructions.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...