No, it's fresh 12.07 out of the box setup. I just changed some values like print-speed and layer-height
Odd... could be a bug in pypy, while rare, it has happened before. You could try replacing the shipped pypy with the latest nightly to see if it fixes the problem:
http://buildbot.pypy.org/nightly/trunk/
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
Did you try putting in a newer version of PyPy as I suggested in my previous post?
Yes, I tried serveral versions out of the nightly builds
Alex
Ok. Odd.
How comfortable would you feel with hacking some debug prints into the code?
very comfortable
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.
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
It always happens in different modules:
cool.py, dwindle.py ...
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.
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'
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?)
Perhaps you entered a "," instead a "." in a inputbox.
I got similar errors with invalid float value...
Recommended Posts
Daid 306
Did you by and chance change the start or end GCode?
Link to post
Share on other sites