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.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...