<br><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 14:00, Quang Trinh <span dir="ltr">&lt;<a href="mailto:quang.trinh@gmail.com">quang.trinh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
   After adding python-dev, I am now getting this error when running<br>
starcluster help.  I checked and<br>
&#39;/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Cipher/AES.so&#39;<br>
is there.<br>
<br>
Thanks<br>
<br>
<br>
[ec2-user@xxxxxx StarCluster-0.92.1]$ bin/starcluster<br>
Traceback (most recent call last):<br>
  File &quot;bin/starcluster&quot;, line 2, in &lt;module&gt;<br>
    from starcluster import cli<br>
  File &quot;/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/cli.py&quot;,<br>
line 17, in &lt;module&gt;<br>
    from starcluster import config<br>
  File &quot;/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/config.py&quot;,<br>
line 9, in &lt;module&gt;<br>
    from starcluster import cluster<br>
  File &quot;/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/cluster.py&quot;,<br>
line 20, in &lt;module&gt;<br>
    from starcluster.node import Node<br>
  File &quot;/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/node.py&quot;,<br>
line 10, in &lt;module&gt;<br>
    from starcluster import ssh<br>
  File &quot;/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/ssh.py&quot;,<br>
line 17, in &lt;module&gt;<br>
    import paramiko<br>
  File &quot;/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/__init__.py&quot;,<br>
line 69, in &lt;module&gt;<br>
    from transport import SecurityOptions, Transport<br>
  File &quot;/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/transport.py&quot;,<br>
line 32, in &lt;module&gt;<br>
    from paramiko import util<br>
  File &quot;/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/util.py&quot;,<br>
line 32, in &lt;module&gt;<br>
    from paramiko.common import *<br>
  File &quot;/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/common.py&quot;,<br>
line 98, in &lt;module&gt;<br>
    from Crypto import Random<br>
  File &quot;/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/__init__.py&quot;,<br>
line 29, in &lt;module&gt;<br>
    from Crypto.Random import _UserFriendlyRNG<br>
  File &quot;/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/_UserFriendlyRNG.py&quot;,<br>
line 38, in &lt;module&gt;<br>
    from Crypto.Random.Fortuna import FortunaAccumulator<br>
  File &quot;/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/Fortuna/FortunaAccumulator.py&quot;,<br>
line 39, in &lt;module&gt;<br>
    import FortunaGenerator<br>
  File &quot;/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/Fortuna/FortunaGenerator.py&quot;,<br>
line 36, in &lt;module&gt;<br>
    from Crypto.Cipher import AES<br>
ImportError: /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Cipher/AES.so:<br>
undefined symbol: rpl_malloc<br></blockquote><div><br></div><div>Looks like pycrypto didn&#39;t build itself correctly.  You might remove the one you installed, and use the package manager (`sudo apt-get install python-crypto`) to get it instead.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
On Mon, Nov 28, 2011 at 3:44 PM, MinRK &lt;<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; Do you really mean to be installing starcluster on your ec2 node?<br>
&gt; The most relevant line is this one:<br>
&gt; src/MD2.c:31:20: error: Python.h: No such file or directory<br>
&gt;<br>
&gt; To build Python extensions, you need the Python headers, etc, which should<br>
&gt; be be installed with your package manager.<br>
&gt; on debian/ubuntu:<br>
&gt;     sudo apt-get install python-dev<br>
&gt;<br>
&gt; -MinRK<br>
&gt;<br>
&gt; On Mon, Nov 28, 2011 at 12:24, Quang Trinh &lt;<a href="mailto:quang.trinh@gmail.com">quang.trinh@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;  I am trying to install starcluster but get this error msg ( see<br>
&gt;&gt; below ).  Can someone tell me how to get around this?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Q<br>
&gt;&gt;<br>
&gt;&gt; [ec2-user@xxxxxxx applications]$ sudo easy_install StarCluster<br>
&gt;&gt; Searching for StarCluster<br>
&gt;&gt; Best match: StarCluster 0.92.1<br>
&gt;&gt; Processing StarCluster-0.92.1-py2.6.egg<br>
&gt;&gt; StarCluster 0.92.1 is already the active version in easy-install.pth<br>
&gt;&gt; Installing starcluster script to /usr/bin<br>
&gt;&gt;<br>
&gt;&gt; Using /usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg<br>
&gt;&gt; Processing dependencies for StarCluster<br>
&gt;&gt; Searching for pycrypto&gt;=2.1<br>
&gt;&gt; Reading <a href="http://pypi.python.org/simple/pycrypto/" target="_blank">http://pypi.python.org/simple/pycrypto/</a><br>
&gt;&gt; Reading <a href="http://pycrypto.sourceforge.net" target="_blank">http://pycrypto.sourceforge.net</a><br>
&gt;&gt; Reading <a href="http://www.pycrypto.org/" target="_blank">http://www.pycrypto.org/</a><br>
&gt;&gt; Reading <a href="http://www.amk.ca/python/code/crypto" target="_blank">http://www.amk.ca/python/code/crypto</a><br>
&gt;&gt; Best match: pycrypto 2.4.1<br>
&gt;&gt; Downloading<br>
&gt;&gt; <a href="https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.1.tar.gz" target="_blank">https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.1.tar.gz</a><br>
&gt;&gt; Processing pycrypto-2.4.1.tar.gz<br>
&gt;&gt; Running pycrypto-2.4.1/setup.py -q bdist_egg --dist-dir<br>
&gt;&gt; /tmp/easy_install-mYT5_f/pycrypto-2.4.1/egg-dist-tmp-72tY14<br>
&gt;&gt; warning: GMP or MPIR library not found; Not building<br>
&gt;&gt; Crypto.PublicKey._fastmath.<br>
&gt;&gt; src/MD2.c:31:20: error: Python.h: No such file or directory<br>
&gt;&gt; src/MD2.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’<br>
&gt;&gt; before ‘*’ token<br>
&gt;&gt; In file included from src/MD2.c:136:<br>
&gt;&gt; src/hash_template.c:48: error: expected specifier-qualifier-list<br>
&gt;&gt; before ‘PyObject_HEAD’<br>
&gt;&gt; src/hash_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘PyTypeObject’<br>
&gt;&gt; src/hash_template.c: In function ‘newALGobject’:<br>
&gt;&gt; src/hash_template.c:69: warning: implicit declaration of function<br>
&gt;&gt; ‘PyObject_New’<br>
&gt;&gt; src/hash_template.c:69: error: expected expression before ‘ALGobject’<br>
&gt;&gt; src/hash_template.c: At top level:<br>
&gt;&gt; src/hash_template.c:76: error: expected ‘)’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘ALG_methods’<br>
&gt;&gt; src/hash_template.c:189: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘ALGtype’<br>
&gt;&gt; src/hash_template.c:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
&gt;&gt; ‘__attribute__’ before ‘*’ token<br>
&gt;&gt; src/hash_template.c:298: error: array type has incomplete element type<br>
&gt;&gt; src/hash_template.c:299: error: ‘PyCFunction’ undeclared here (not in<br>
&gt;&gt; a function)<br>
&gt;&gt; src/hash_template.c:299: error: expected ‘}’ before ‘ALG_new’<br>
&gt;&gt; src/hash_template.c: In function ‘initMD2’:<br>
&gt;&gt; src/hash_template.c:333: error: ‘PyObject’ undeclared (first use in<br>
&gt;&gt; this function)<br>
&gt;&gt; src/hash_template.c:333: error: (Each undeclared identifier is<br>
&gt;&gt; reported only once<br>
&gt;&gt; src/hash_template.c:333: error: for each function it appears in.)<br>
&gt;&gt; src/hash_template.c:333: error: ‘m’ undeclared (first use in this<br>
&gt;&gt; function)<br>
&gt;&gt; src/hash_template.c:345: error: ‘ALGtype’ undeclared (first use in<br>
&gt;&gt; this function)<br>
&gt;&gt; src/hash_template.c:345: error: ‘PyType_Type’ undeclared (first use in<br>
&gt;&gt; this function)<br>
&gt;&gt; src/hash_template.c:346: warning: implicit declaration of function<br>
&gt;&gt; ‘Py_InitModule’<br>
&gt;&gt; src/hash_template.c:350: error: ‘o’ undeclared (first use in this<br>
&gt;&gt; function)<br>
&gt;&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt;&gt; ‘PyInt_FromLong’<br>
&gt;&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt;&gt; ‘PyDict_SetItemString’<br>
&gt;&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt;&gt; ‘PyModule_GetDict’<br>
&gt;&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt;&gt; ‘Py_DECREF’<br>
&gt;&gt; src/hash_template.c:354: warning: implicit declaration of function<br>
&gt;&gt; ‘PyErr_Occurred’<br>
&gt;&gt; src/hash_template.c:355: warning: implicit declaration of function<br>
&gt;&gt; ‘Py_FatalError’<br>
&gt;&gt; error: Setup script exited with error: command &#39;gcc&#39; failed with exit<br>
&gt;&gt; status 1<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; StarCluster mailing list<br>
&gt;&gt; <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>