Skip to content

ValueError: could not convert string to float: #18

Description

@fpgasdr

Hi just generate some gcode with cura 4.7 in ubuntu with setting proposed in instrucctions but still get the next error when running from command line the python script "python addGradientInfillCLI.py -i FQQS_foilmast.gcode"

File "addGradientInfill.py", line 125, in getXY
return Point2D(float(elementX), float(elementY))
ValueError: could not convert string to float:

seems the parsing is reading some string instead of numbers but don't know why it could be.

Any ideas?.

python used was python 3.7 but tried with python 2.7 but get another error:

File "addGradientInfillCLI.py", line 35
def arg_to_infill_type(arg: str) -> InfillType:
^
SyntaxError: invalid syntax

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions