Jump to content
Ultimaker Community of 3D Printing Experts

Recommended Posts

Posted · Slicing error

Hi,

I always get the following error when slicing (different objects)

"Something went wrong during slicing"

Log:

File \\st-kai01\users\Alex.Kaiser\Ultimaker\Motorsense.stl is being chain exported.

Carve procedure took 6 seconds.

Preface procedure took 4 seconds.

Inset procedure took 46 seconds.

Fill procedure took 3 minutes 23 seconds.

Speed procedure took 5 seconds.

Raft procedure took 14 seconds.

Traceback (most recent call last):

File "app_main.py", line 51, in run_toplevel

File "C:\Program Files (x86)\Cura_12.07\Cura\cura.py", line 77, in

main()

File "C:\Program Files (x86)\Cura_12.07\Cura\cura.py", line 71, in main

sliceRun.runSlice(args)

File "C:\Program Files (x86)\Cura_12.07\Cura\util\sliceRun.py", line 81, in runSlice

skeinforge_craft.writeOutput(fileName)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

return pluginModule.writeOutput(fileName, shouldAnalyze)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

text = craftModule.getCraftedText(fileName, text)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 85, in getCraftedText

return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 95, in getCraftedTextFromText

return SkirtSkein().getCraftedGcode(gcodeText, repository)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 224, in getCraftedGcode

self.parseLine(line)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 294, in parseLine

self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

return getDoubleAfterFirstLetter( splitLine[indexOfF] )

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

return float(word[1 :])

ValueError: invalid literal for float()

Error only occurs on Win7 x64 - not on my Win7 x86

Can anyone help me?

best regards

Alex

  • Link to post
    Share on other sites
    Posted · Slicing error

    Sorry for my late reply.

    The problem still exists. I copied the fully functional cura_rc4 directory from my Win7 x86 notebook to my Win7 x64 PC. When I'm slicing the same part I get the "ValueError: invalid literal for float()" error

    ?

    best regards

    Alex

  • Link to post
    Share on other sites
    Posted · Slicing error

    Did you try putting in a newer version of PyPy as I suggested in my previous post?

  • Link to post
    Share on other sites
    Posted · Slicing error

    Yes, I tried serveral versions out of the nightly builds

    Alex

  • Link to post
    Share on other sites
    Posted · Slicing error

    Ok. Odd.

    How comfortable would you feel with hacking some debug prints into the code?

  • Link to post
    Share on other sites
    Posted · Slicing error

    very comfortable ;)

  • Link to post
    Share on other sites
    Posted · Slicing error

    Cool.

    As the bug happens in "skirt.py", in the function "parseLine". Could you add a debug print statement there? A simple "print line" on line 285 should do it. You need proper indentation (2 tabs in front) or else it won't work and give even more errors.

    This will produce a shitload of output, but the final print line before the error might give some light on this problem.

  • Link to post
    Share on other sites
    Posted · Slicing error

    Hi Daid,

    here the debug log. I have seen the same error also in raft.py

    G1 X97.5269 Y102.7257 Z35.0 F6000.0

    G1 X97.8403 Y102.9781 Z35.0 F6000.0

    G1 X94.0237 Y106.7946 Z35.0 F6000.0

    G1 X94.3268 Y107.0572 Z35.0 F6000.0

    G1 X98.1793 Y103.2047 Z35.0 F6000.0

    G1 X98.5651 Y103.3846 Z35.0 F6000.0

    G1 X94.6516 Y107.2981 Z35.0 F6000.0

    G1 X94.9772 Y107.5382 Z35.0 F6000.0

    G1 X98.9718 Y103.5436 Z35.0 F6000.0

    G1 X99.4436 Y103.6374 Z35.0 F6000.0

    G1 X95.3309 Y107.7502 Z35.0 F6000.0

    G1 X95.6846 Y107.9622 Z35.0 F6000.0

    G1 X99.9708 Y103.676 Z35.0 F6000.0

    G1 X100.5796 Y103.6328 Z35.0 F6000.0

    G1 X96.0648 Y108.1476 Z35.0 F6000.0

    G1 X96.4488 Y108.3293 Z35.0 F6000.0

    G1 X101.3643 Y103.4138 Z35.0 F6000.0

    M103

    ()

    ()

    ()

    ()

    ()

    M103

    M113 S0.0

    Skirt procedure took 24 seconds.

    Comb procedure took 3 seconds.

    Traceback (most recent call last):

    File "app_main.py", line 51, in run_toplevel

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 77, in

    main()

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 71, in main

    sliceRun.runSlice(args)

    File "C:\Program Files (x86)\Cura_RC4\Cura\util\sliceRun.py", line 81, in runSlice

    skeinforge_craft.writeOutput(fileName)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

    return pluginModule.writeOutput(fileName, shouldAnalyze)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

    gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

    text = craftModule.getCraftedText(fileName, text)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 116, in getCraftedText

    return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 126, in getCraftedTextFromText

    return CoolSkein().getCraftedGcode(gcodeText, repository)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 275, in getCraftedGcode

    self.parseLine(line)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 379, in parseLine

    layerTime = self.getLayerTime()

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 291, in getLayerTime

    feedRateMinute = gcodec.getFeedRateMinute(feedRateMinute, splitLine)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

    return getDoubleAfterFirstLetter( splitLine[indexOfF] )

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

    return float(word[1 :])

    ValueError: invalid literal for float()

    Best regards

    Alex

  • Link to post
    Share on other sites
    Posted · Slicing error

    It always happens in different modules:

    cool.py, dwindle.py ...

  • Link to post
    Share on other sites
    Posted · Slicing error

    That sounds more like a problem with pypy then the actual python code. Could you try renaming the pypy directory, this should make Cura switch back to python for slicing.

  • Link to post
    Share on other sites
    Posted · Slicing error

    I have done a lot of test-slices now.

    What I can say:

    *) Python is OK

    *) The "invalid literal for float()" exceptions occure in different modules.

    *) As you can see below there is always a "special" charakter included in the string-value

    alex

    File C:\TEMP\Motorsense2.stl is being chain exported.

    Carve procedure took 5 seconds.

    Preface procedure took 3 seconds.

    Inset procedure took 57 seconds.

    Fill procedure took 3 minutes 17 seconds.

    Speed procedure took 6 seconds.

    Raft procedure took 16 seconds.

    Traceback (most recent call last):

    File "app_main.py", line 51, in run_toplevel

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 77, in

    main()

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 71, in main

    sliceRun.runSlice(args)

    File "C:\Program Files (x86)\Cura_RC4\Cura\util\sliceRun.py", line 81, in runSlice

    skeinforge_craft.writeOutput(fileName)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

    return pluginModule.writeOutput(fileName, shouldAnalyze)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

    gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

    text = craftModule.getCraftedText(fileName, text)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 85, in getCraftedText

    return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 95, in getCraftedTextFromText

    return SkirtSkein().getCraftedGcode(gcodeText, repository)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 224, in getCraftedGcode

    self.parseLine(line)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 294, in parseLine

    self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine)

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

    return getDoubleAfterFirstLetter( splitLine[indexOfF] )

    File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

    return float(word[1 :])

    ValueError: invalid literal for float(): '420°.0'

  • Link to post
    Share on other sites
    Posted · Slicing error

    Odd, could be some strange Win7 64bit PyPy error, or a problem with the memory of your PC (do you have other programs that crash strangely?)

  • Link to post
    Share on other sites
    Posted · Slicing error

    Perhaps you entered a "," instead a "." in a inputbox.

    I got similar errors with invalid float value...

  • 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 Transformation Summit

        On April 20 - April 23 we will host the Ultimaker Transformation Summit. Come talk to us via Live chat and get inspired by any of our relevant presentations!
        • 5 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...