Ok, now I can push the module, but the import fails. <br><br>So for instance<br><br>>>> from tests import model_1<br>>>> rc.pushModule(model_1)<br>Locating the module...<br>Module (model_1) found in:<br>tests
<br>[<a href="http://127.0.0.1:0">127.0.0.1:0</a>] In [25]: os.system('tar -xf model_1.tar')<br>[<a href="http://127.0.0.1:0">127.0.0.1:0</a>] Out[25]: 0<br>[<a href="http://127.0.0.1:1">127.0.0.1:1</a>] In [34]: 
os.system('tar -xf model_1.tar')<br>[<a href="http://127.0.0.1:1">127.0.0.1:1</a>] Out[34]: 0<br>[<a href="http://127.0.0.1:2">127.0.0.1:2</a>] In [23]: os.system('tar -xf model_1.tar')<br>[<a href="http://127.0.0.1:2">
127.0.0.1:2</a>] Out[23]: 0<br>[<a href="http://127.0.0.1:3">127.0.0.1:3</a>] In [18]: os.system('tar -xf model_1.tar')<br>[<a href="http://127.0.0.1:3">127.0.0.1:3</a>] Out[18]: 0<br><br>>>> rc.executeAll
('import model_1')<br>[<a href="http://127.0.0.1:1">127.0.0.1:1</a>] In [35]: import model_1<br>[<a href="http://127.0.0.1:1">127.0.0.1:1</a>] Err[35]:<br> Traceback (most recent call last):<br>  File "<console>", line 1, in ?
<br>ImportError: No module named model_1<br><br>The model_1.tar file is in the local directory, but the engines doesn't seem to find the module on their side. <br>Where do the engines live ? rc.executeAll('os.getcwd
()') return the local dir, but the engines themselves must be elsewhere, since they can't find the modules locally. <br><br>Cheers, <br><br>David<br><br>P.S. Fernando, don't bother sending the patch, svn checking is easier for both of us. 
<br><br><br><br><div><span class="gmail_quote">2007/1/18, Fernando Perez <<a href="mailto:Fernando.Perez@colorado.edu">Fernando.Perez@colorado.edu</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
David Huard wrote:<br>> Thanks a lot Fernando,<br>><br>> Effectively, it doesn't seem to work, unless I'm doing something wrong.<br><br>Small bug, here's the fix.  Let me know if it works (as you noticed, this code
<br>has seen precious little testing):<br><br>Index: ipython1/kernel/controllervanilla.py<br>===================================================================<br>--- ipython1/kernel/controllervanilla.py        (revision 2018)
<br>+++ ipython1/kernel/controllervanilla.py        (working copy)<br>@@ -169,7 +169,7 @@<br><br>          self.pushAll(tar_fileString=fileString)<br>          self.executeAll("tar_file = open('%s','wb')" % \
<br>-            tarball_name, block=False)<br>+            tarballName, block=False)<br>          self.executeAll("tar_file.write(tar_fileString)", block=False)<br>          self.executeAll("tar_file.close()", block=False)
<br>          self.executeAll("import os", block=False)<br><br><br>I've already committed it, so you can either apply it manually or update your<br>SVN checkout.<br><br>For future discussions on this, I'd really appreciate it if you could use the
<br>list.  Much of this code has not been written by me directly, so it's critical<br>that we get other developers' feedback as well.<br><br>Thanks for the report!<br><br>Cheers,<br><br>f<br></blockquote></div><br>