It looks like you are using 0.11 dev, so neither 0.11 release nor current dev.  Can you get either 0.11 release or current git master?  The bug you are seeing is the result of a circular import, which can&#39;t have survived for long in master.<div>

<br></div><div>-MinRK<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 13:11, David Welch <span dir="ltr">&lt;<a href="mailto:david.m.welch@gmail.com">david.m.welch@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;">

<div style="word-wrap:break-word"><div><span style="text-align:-webkit-auto;text-indent:0px"><div>Hello Benjamin, </div><div>Apparently I don&#39;t have the select_random_ports module.  That&#39;s pretty random, I have IPython v0.11 and Python 2.6.1.</div>

<div><br></div><div>===================</div><div>In [1]: from IPython.external.ssh import tunnel</div><div>---------------------------------------------------------------------------</div><div>ImportError                               Traceback (most recent call last)</div>

<div>/IPLlinux/raid0/homes/dmwelch/&lt;ipython-input-1-99c6f6fce696&gt; in &lt;module&gt;()</div><div>----&gt; 1 from IPython.external.ssh import tunnel</div><div><br></div><div>/Library/Python/2.6/site-packages/ipython-0.11.dev-py2.6.egg/IPython/external/ssh/tunnel.py in &lt;module&gt;()</div>

<div>     35     pexpect = None</div><div>     36 </div><div>---&gt; 37 from IPython.parallel.util import select_random_ports</div><div>     38 </div><div>     39 #-----------------------------------------------------------------------------</div>

<div><br></div><div><br></div><div>/Library/Python/2.6/site-packages/ipython-0.11.dev-py2.6.egg/IPython/parallel/__init__.py in &lt;module&gt;()</div><div>     30 </div><div>     31 from .client.asyncresult import *</div>

<div>---&gt; 32 from .client.client import Client</div><div>     33 from .client.remotefunction import *</div><div>     34 from .client.view import *</div><div><br></div><div>/Library/Python/2.6/site-packages/ipython-0.11.dev-py2.6.egg/IPython/parallel/client/client.py in &lt;module&gt;()</div>

<div>     39                                     Dict, List, Bool, Set)</div><div>     40 from IPython.external.decorator import decorator</div><div>---&gt; 41 from IPython.external.ssh import tunnel</div><div>     42 </div>

<div>     43 from IPython.parallel import error</div><div><br></div><div>ImportError: cannot import name tunnel</div><div><span style="text-align:-webkit-auto;text-indent:0px">===================</span></div><div><span style="text-align:-webkit-auto;text-indent:0px"><br>

</span></div><div>Any ideas?  I had IPython 0.11.dev, so I tried reinstalling IPython the release version from the site.  I got some warnings, but nothing that looks like the smoking gun.</div><div><br></div><div>===================</div>

<div><div>$ sudo pip install -f <a href="http://archive.ipython.org/release/0.11/ipython-0.11.tar.gz" target="_blank">http://archive.ipython.org/release/0.11/ipython-0.11.tar.gz</a> ipython --upgrade</div><div>Downloading/unpacking ipython</div>

<div>  Real name of requirement ipython is ipython</div><div>  Downloading ipython-0.11.tar.gz (8.0Mb): 8.0Mb downloaded</div><div>  Running setup.py egg_info for package ipython</div><div>    no previously-included directories found matching &#39;IPython/deathrow&#39;</div>

<div>    warning: no previously-included files found matching &#39;docs/#*&#39;</div><div>    warning: no previously-included files found matching &#39;docs/man/*.1&#39;</div><div>    no previously-included directories found matching &#39;docs/attic&#39;</div>

<div>    no previously-included directories found matching &#39;docs/build&#39;</div><div>    no previously-included directories found matching &#39;docs/gh-pages&#39;</div><div>    warning: no previously-included files matching &#39;*~&#39; found anywhere in distribution</div>

<div>    warning: no previously-included files matching &#39;*.flc&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.dircopy.log&#39; found anywhere in distribution</div>

<div>    warning: no previously-included files matching &#39;.svn&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.bzr&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.hgignore&#39; found anywhere in distribution</div>

<div>Installing collected packages: ipython</div><div>  Found existing installation: ipython 0.11.dev</div><div>    Uninstalling ipython:</div><div>      Successfully uninstalled ipython</div><div>  Running setup.py install for ipython</div>

<div>    no previously-included directories found matching &#39;IPython/deathrow&#39;</div><div>    warning: no previously-included files found matching &#39;docs/#*&#39;</div><div>    warning: no previously-included files found matching &#39;docs/man/*.1&#39;</div>

<div>    no previously-included directories found matching &#39;docs/attic&#39;</div><div>    no previously-included directories found matching &#39;docs/build&#39;</div><div>    no previously-included directories found matching &#39;docs/gh-pages&#39;</div>

<div>    warning: no previously-included files matching &#39;*~&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;*.flc&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.dircopy.log&#39; found anywhere in distribution</div>

<div>    warning: no previously-included files matching &#39;.svn&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.bzr&#39; found anywhere in distribution</div><div>    warning: no previously-included files matching &#39;.hgignore&#39; found anywhere in distribution</div>

<div>    Installing ipcontroller script to /usr/local/bin</div><div>    Installing iptest script to /usr/local/bin</div><div>    Installing ipcluster script to /usr/local/bin</div><div>    Installing ipython script to /usr/local/bin</div>

<div>    Installing pycolor script to /usr/local/bin</div><div>    Installing iplogger script to /usr/local/bin</div><div>    Installing irunner script to /usr/local/bin</div><div>    Installing ipengine script to /usr/local/bin</div>

<div>    Installing ipython-qtconsole script to /usr/local/bin</div><div>Successfully installed ipython</div><div>Cleaning up...</div><div>==================</div><div><br></div></div><div>Cheers,</div><div class="im">-Dave<br>

<br>--<br>David Welch<br><a href="mailto:david.m.welch@gmail.com" target="_blank">david.m.welch@gmail.com</a><br><br><br></div></span>
</div><div><div></div><div class="h5">
<br><div><div>On Sep 7, 2011, at 2:27 PM, MinRK wrote:</div><br><blockquote type="cite">Hm, I can&#39;t think of a place where we explicitly try to use ssh-askpass (acking for askpass reveals no matches in IPython).  Is this perhaps what Python&#39;s own getpass uses?  What Python and OSX are you using?<div>

<br>

</div><div>What happens if you do:</div><div><br></div><div>from IPython.external.ssh import tunnel</div><div>tunnel.ssh_tunnel(8888, 80, &#39;yourhost&#39;)</div><div><br></div><div>in a regular Python/IPython session?</div>



<div><br></div><div>It would appear that I can tunnel just fine between my OSX machines.<br><br>-MinRK<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 12:08, David Welch <span dir="ltr">&lt;<a href="mailto:david.m.welch@gmail.com" target="_blank">david.m.welch@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">Hello all,<br>


<br>
I&#39;m trying to run an ipcluster on a Mac cluster using SSH.  It fails with an error in the log file:<br>
==============<br>
...<br>
[IPClusterStart] Process &#39;ssh&#39; started: 46805<br>
[IPClusterStart] Process &#39;engine set&#39; started: [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]<br>
[IPClusterStart] ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory<br>
...<br>
==============<br>
<br>
I&#39;ve done some searching online and found that Mac doesn&#39;t have a function &#39;ssh-askpass&#39; but several workarounds have been made for other bundles (Cornerstone2, for instance has a helper application that this blogger linked to as a workaround - <a href="http://otherside.mimijidi.com/entries/ssh-askpass-on-mac-os-x/" target="_blank">http://otherside.mimijidi.com/entries/ssh-askpass-on-mac-os-x/</a>).  Does IPython have something similar, or is this a Mac platform bug?<br>




<br>
-Dave<br>
<br>
--<br>
David Welch<br>
<a href="mailto:david.m.welch@gmail.com" target="_blank">david.m.welch@gmail.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org" target="_blank">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>