ReplicatorG ImportError: No module named cStringIO

267 views
Skip to first unread message

Richard D

unread,
Nov 21, 2014, 6:42:11 AM11/21/14
to makerbo...@googlegroups.com
I have a replicator 2 and want to change filament color a a specific point in the print.  I friend recommended that I use RelicatorG and pause the Z axis a a specific height.  When I run generate G code I get the following error.

[02:38:48] gcode sourcereplicatorg.app.gcode.MutableGCodeSource@3fe94a
[02:39:18] printomatic 5D sf other
[02:39:18] Beginning toolpath generation.
[02:39:18] printomatic 5D sf 50
[02:39:19] Traceback (most recent call last):
[02:39:19]   File "skeinforge.py", line 220, in <module>
[02:39:19]     from fabmetheus_utilities.fabmetheus_tools import fabmetheus_interpret
[02:39:19]   File "C:\replicatorg-0040r28-Sailfish\skein_engines\skeinforge-50\fabmetheus_utilities\fabmetheus_tools\fabmetheus_interpret.py", line 11, in <module>
[02:39:19]     from fabmetheus_utilities import euclidean
[02:39:19]   File "C:\replicatorg-0040r28-Sailfish\skein_engines\skeinforge-50\fabmetheus_utilities\euclidean.py", line 33, in <module>
[02:39:19]     from fabmetheus_utilities.vector3 import Vector3
[02:39:19]   File "C:\replicatorg-0040r28-Sailfish\skein_engines\skeinforge-50\fabmetheus_utilities\vector3.py", line 34, in <module>
[02:39:19]     from fabmetheus_utilities import xml_simple_writer
[02:39:19]   File "C:\replicatorg-0040r28-Sailfish\skein_engines\skeinforge-50\fabmetheus_utilities\xml_simple_writer.py", line 11, in <module>
[02:39:19]     import cStringIO
[02:39:19] ImportError: No module named cStringIO
[02:39:19] Unrecognized error code returned by Skeinforge.

Anyone come accross this problem or have a better way to change filament color a a specific point in the print?


Dan Newman

unread,
Nov 21, 2014, 11:13:12 AM11/21/14
to makerbo...@googlegroups.com
On 21/11/2014, 3:42 AM, Richard D wrote:
> I have a replicator 2 and want to change filament color a a specific point
> in the print. I friend recommended that I use RelicatorG and pause the Z
> axis a a specific height. When I run generate G code I get the following
> error.
>

Start by making sure you have the correct Python installed and RepG pointed at it (via
Preferences). You should be using Python 2.7 (or at least 2.x). Do NOT use Python 3.x.

And, you have to be using the Sailfish firmware in order to accept those pause commands.
And with Sailfish, you can also enter the Z height to pause at from the LCD display once
the print has started, Section 3.4.3 of

http://www.sailfishfirmware.com/doc/ui-print-monitor-menu.html

And, if you use GPX to convert gcode to x3g, you can even tell it the different
filament diameters for each pause and it will adjust the e-steps in the x3g
generated from the gcode.

Dan

Richard D

unread,
Dec 1, 2014, 12:31:41 AM12/1/14
to makerbo...@googlegroups.com
I am using Python 2.7.8 and have installed sailfish firmware on my Replicator 2.  Still have the same error.  I am open to any suggestions.

Dan Newman

unread,
Dec 1, 2014, 12:43:35 AM12/1/14
to makerbo...@googlegroups.com
On 30/11/2014, 9:31 PM, Richard D wrote:
> I am using Python 2.7.8 and have installed sailfish firmware on my
> Replicator 2. Still have the same error. I am open to any suggestions.

And you've configured RepG to use that version of Python by pointing it
at that python.exe via the advanced tab of the Preferences menu in RepG?

> Anyone come accross this problem or have a better way to change filament
> color a a specific point in the print?

You can from the front LCD panel, after the print starts, program a pause
at a Z height as per Section 3.4.3, Pause at ZPos, of

http://www.sailfishfirmware.com/doc/ui-print-monitor-menu.html

Or, if you have the gcode file with the pause commands in it,
you can run it through GPX to produce the X3G file,

https://github.com/whpthomas/GPX

Simplify3D uses GPX. You can also make a .ini file for GPX which
has pause info in it,

https://github.com/whpthomas/GPX/blob/master/examples/example-pause-at-zpos.ini

Dan


Reply all
Reply to author
Forward
0 new messages