Jump to content

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


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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...