<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=23&amp;t=9054" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2013-01-24T12:26:43+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=23&amp;t=9054</id>
<entry>
<author><name><![CDATA[nunogato]]></name></author>
<updated>2013-01-24T12:26:43+01:00</updated>
<published>2013-01-24T12:26:43+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=9054&amp;p=37037#p37037</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=9054&amp;p=37037#p37037"/>
<title type="html"><![CDATA[Speeding up ReplicatorG with Pypy in Linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=9054&amp;p=37037#p37037"><![CDATA[
Hi,<br /><br />Here at robosavvy we are using the Replicator2 to make some parts for your 3D printed humanoid robot, for the 1m humanoid robot and also for some custom projects.<br /><br />Having so much objects to slice we wanted a faster solution as replicatorG, using python is not so fast...<br /><br /><img src="http://robosavvy.com/Builders/nunogato/pypy_repg.png" alt="Image" /><br /><br /><br />Searched arround and found <a href="https://groups.google.com/d/topic/makerbot/lv9AupRqSnY/discussion" class="postlink">this</a> tutorial that explains how to install pypy in a Mac, as I'm using Ubuntu 64 bit I needed to adapt it.<br /><br />Here are the instructions for Ubuntu (and other linux dists):<br /><br />first of all you need to install tk-dev otherwise it will not be able to install the tkinter-pypy module, to do this just run this<br /><dl class="codebox"><dt>Code: </dt><dd><code>sudo apt-get install tk-dev</code></dd></dl><br /><br />now just copy paste this commands:<br /><br />using a 64bit machine<br /><dl class="codebox"><dt>Code: </dt><dd><code>wget http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux64.tar.bz2<br />tar xjf pypy-c-jit-latest-linux64.tar.bz2<br />cd pypy-c-jit-*-linux64<br />wget http://peak.telecommunity.com/dist/ez_setup.py<br />./bin/pypy ez_setup.py <br />wget http://www.foobarsoft.com/wp-content/uploads/2011/10/tkinter-pypy-0.1-for-8.5.zip<br />unzip tkinter-pypy-0.1-for-8.5.zip<br />cd tkinter-pypy-0.1-for-8.5<br />../bin/pypy ./setup.py install<br />cd ../../<br />mv pypy-c-jit-*-linux64 pypy</code></dd></dl><br /><br />using a 32bit machine<br /><dl class="codebox"><dt>Code: </dt><dd><code>wget http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux.tar.bz2<br />tar xjf pypy-c-jit-latest-linux.tar.bz2<br />cd pypy-c-jit-*-linux<br />wget http://peak.telecommunity.com/dist/ez_setup.py<br />./bin/pypy ez_setup.py <br />wget http://www.foobarsoft.com/wp-content/uploads/2011/10/tkinter-pypy-0.1-for-8.5.zip<br />unzip tkinter-pypy-0.1-for-8.5.zip<br />cd tkinter-pypy-0.1-for-8.5<br />../bin/pypy ./setup.py install<br />cd ../../<br />mv pypy-c-jit-*-linux pypy</code></dd></dl><br /><br />Now in ReplicatorG go to the ReplicatorG Menu -&gt; Preferences -&gt; Advanced -&gt; Select Python Interpretor...  <br /><br />Select the 'bin/pypy' file it's inside the pypy folder that you just downloaded.<br /><br />Slice fast!   No need to restart ReplicatorG.<br /><br />In my laptop the sample 3D_Knot.stl took 1min29sec with pypy and 3min14sec with python2 so it reduced the time to less than half <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br />Cheers,<br />Nuno<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2018">nunogato</a> — Thu Jan 24, 2013 12:26 pm</p><hr />
]]></content>
</entry>
</feed>