Jump to content

Cura G-code Save Error - Unsupported Operand Types


Recommended Posts

Posted · Cura G-code Save Error - Unsupported Operand Types

Dear Cura Support Team,

I am writing to report an issue I’ve encountered while using your software. When attempting to save a sliced object as G-code, I receive the following error message:

 

unsupported operand type(s) for +: 'float' and 'NoneType'

This error prevents me from successfully saving the G-code file, which is a critical step in my 3D printing workflow.

Steps to Reproduce:

  1. Open the STL file in Cura.
  2. Adjust the necessary print settings.
  3. Slice the model.
  4. Attempt to save the G-code file.

Expected Result: The G-code file should save without any errors.

Actual Result: The error message appears, and the file does not save.

I have already tried the following troubleshooting steps without success:

  • Ensuring all settings are correct and do not contain unusual values.
  • Checking if the issue is model-specific or related to a particular setting.
  • Updating Cura to the latest version.
  • Resetting configuration files and reinstalling Cura.

I am currently using Cura version 5.7.0, and my operating system is Windows11. I would appreciate any guidance or assistance you can provide to resolve this issue.

Thank you for your attention to this matter.

Best regards, Peter Loeb

cura.log

  • Link to post
    Share on other sites

    Posted · Cura G-code Save Error - Unsupported Operand Types

    It seems to be caused by the z-offset plugin. I think that it will work if you disable it.

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura G-code Save Error - Unsupported Operand Types

    @nallath that would explain these lines in the log:

    2024-04-05 09:21:21,108 - ERROR - [MainThread] UM.Qt.Bindings.OutputDeviceManagerProxy._writeToDevice [163]:   File "C:\Users\peter\AppData\Roaming\cura\5.7\plugins\ZOffsetPlugin\ZOffsetPlugin\ZOffsetPlugin.py", line 144, in _filterGcode
    2024-04-05 09:21:21,108 - ERROR - [MainThread] UM.Qt.Bindings.OutputDeviceManagerProxy._writeToDevice [163]:     adjusted_z = round(float(result.group(2)) + z_offset_value, 5)
    2024-04-05 09:21:21,109 - ERROR - [MainThread] UM.Qt.Bindings.OutputDeviceManagerProxy._writeToDevice [163]: TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'

     

  • Link to post
    Share on other sites

    Posted · Cura G-code Save Error - Unsupported Operand Types

    Hy Team,

    I wanted to express my sincere gratitude for your helpful advice regarding the deactivation of the Z-offset plugin. Your guidance was incredibly beneficial and resolved the issues I was facing.

     

    Thank you for taking the time to assist me; your support is greatly appreciated.

     

    Best Regadrs Peter

  • 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
        • 20 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...