Welcome! Log In Create A New Profile

Advanced

SF export: could not convert string to float

Posted by Lanthan 
SF export: could not convert string to float
December 26, 2011 03:52PM
Using SF 45 on Ubuntu 11.10, Python 2.7.2+

On skinning, SF export module barfs with the following message:


Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in __call__
return self.func(*args)
File "45_reprap_python_beanshell/fabmetheus_utilities/settings.py", line 1144, in execute
self.repository.execute()
File "./skeinforge.py", line 585, in execute
skeinforge_craft.writeOutput(fileName)
File "45_reprap_python_beanshell/skeinforge_application/skeinforge_utilities/skeinforge_craft.py", line 145, in writeOutput
return pluginModule.writeOutput(fileName, shouldAnalyze)
File "45_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py", line 292, in writeOutput
exportGcode = getCraftedTextFromText(gcodeText, repository)
File "45_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py", line 136, in getCraftedTextFromText
return ExportSkein().getCraftedGcode(repository, gcodeText)
File "45_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py", line 384, in getCraftedGcode
self.parseLine(line)
File "software/45_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py", line 417, in parseLine
line = self.getLineWithTruncatedNumber('X', line, splitLine)
File "45_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py", line 392, in getLineWithTruncatedNumber
roundedNumberString = euclidean.getRoundedToPlacesString(self.decimalPlacesExported, float(numberString))
ValueError: could not convert string to float:

---------

have been getting this same error with various SF versions from 4.2 on, and python installation from Ubuntu 10.4 LTS


error not present in current SFACT, neither does it appear with Python 2.6.5 under mac os 10.6.8 (so actually I've been skinning with the mac, but this is impractical). Does anyone have a cure? THX
Re: SF export: could not convert string to float
December 26, 2011 10:24PM
I've narrowed the possible culprits to the Alteration module. If I disable Alteration, no error happens.
Could it be that I inadvertently put some offending code in start.gcode and/or end.gcode?

start.gcode:

G21; metric is good
G90; absolute positioning
G92X0Y0Z0E0; zero the extruded length axes

end.gcode:

G91 ;
G1Z10F100; lifts nozzle 10mm from finished print surface
G90 ;
M104S15; turns off extruder
M140S15; turn off heated bed
G1 X100Y200F6500 ; present the goods
M84 ; release all steppers

cannot see where the problem is...
Re: SF export: could not convert string to float
December 27, 2011 04:08AM
Try to put spaces...
start:
G21; metric is good
G90; absolute positioning
G92 X0 Y0 Z0 E0; zero the extruded length axes

end:

G91 ;
G1 Z10 F100; lifts nozzle 10mm from finished print surface
G90 ;
M104 S15; turns off extruder
M140 S15; turn off heated bed
G1 X100 Y200 F6500 ; present the goods
M84 ; release all steppers

Edited 1 time(s). Last edit at 12/27/2011 04:11AM by ahmetcemturan.


Manufacturer of low tolerance Filaments PLA, ABS, ASA, PETG, TPU, PA, PVA,
[www.miafilament.com]
[github.com]
Re: SF export: could not convert string to float
December 27, 2011 04:55PM
Spaces... I had thought of that, tried without spaces and with spaces, same error.
Resorting to manual revision of the files. Bah, just a minor hindrance.
Sorry, only registered users may post in this forum.

Click here to login