From mjldehoon at yahoo.com Sat May 2 20:12:19 2009 From: mjldehoon at yahoo.com (Michiel de Hoon) Date: Sat, 2 May 2009 17:12:19 -0700 (PDT) Subject: [IPython-dev] pygtk interactive Message-ID: <525821.18758.qm@web62403.mail.re1.yahoo.com> Hi everybody, Today pygtk 2.15.0 became available, which is the first version of pygtk that can be used interactively from plain Python. While this also simplifies the event loop in ipython, only the current developer's version of ipython (and presumably version 0.10.0 and beyond) make use of this, and older versions of ipython may not work correctly with pygtk 2.15.0. So if you're looking to update to pygtk 2.15.0, please wait until ipython 0.10.0 is out. Best, --Michiel. From michael.greminger at gmail.com Sun May 3 16:00:12 2009 From: michael.greminger at gmail.com (Michael Greminger) Date: Sun, 3 May 2009 15:00:12 -0500 Subject: [IPython-dev] Save Workspace Magic Function Message-ID: Hello All, I've attached a set of magic functions (%saveworkspace and %loadworkspace) for saving all interactive objects that can be pickled to a specified file. These magic functions provide functionality similar to Matlab's save and load functions (minus the option to specify only a limited set of objects to store). I though this might be something useful to add to the cookbook on the IPython website. I'd be happy to add it. I just need editing privilidges for the Cookbook page of the wiki (my wiki username for the IPython site is MichaelGreminger). Regards, Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: saveworkspace.py Type: text/x-python Size: 4103 bytes Desc: not available URL: From jorgen.stenarson at bostream.nu Mon May 4 14:00:32 2009 From: jorgen.stenarson at bostream.nu (=?ISO-8859-1?Q?J=F6rgen_Stenarson?=) Date: Mon, 04 May 2009 20:00:32 +0200 Subject: [IPython-dev] What is the status of testing infrastructure on trunk? Message-ID: <49FF2D40.3090609@bostream.nu> Hi, What is the status of testing infrastructure on trunk? The results of using current trunk are a bit confusing just running plain iptest I get this crash: ***************************************************************************** IPython test set: tests Traceback (most recent call last): File "..\..\scripts\iptest", line 8, in iptest.main() File "c:\python\external\ipython-trunk\IPython\testing\iptest.py", line 291, in main run_iptestall() File "c:\python\external\ipython-trunk\IPython\testing\iptest.py", line 262, in run_iptestall res = runner.run() File "c:\python\external\ipython-trunk\IPython\testing\iptest.py", line 190, in run return subprocess.call(self.call_args) File "C:\Python25\lib\subprocess.py", line 444, in call return Popen(*popenargs, **kwargs).wait() File "C:\Python25\lib\subprocess.py", line 594, in __init__ errread, errwrite) File "C:\Python25\lib\subprocess.py", line 816, in _execute_child startupinfo) WindowsError: [Error 2] Det g?r inte att hitta filen but with iptest -v I do not get a crash like this but rather many errors (most related to missing modules, like twisted) and one failure but not due to a WindowsError. Doctest: IPython.Extensions.InterpreterPasteInput ... ok Doctest: IPython.Extensions.astyle.Style.__init__ ... ok Doctest: IPython.Extensions.ipipe ... ok Doctest: IPython.Extensions.ipipe.ialias ... ok Doctest: IPython.Extensions.ipipe.icap ... ok Doctest: IPython.Extensions.ipipe.icap ... ok Doctest: IPython.Extensions.ipipe.ienum ... ok Doctest: IPython.Extensions.ipipe.ienv ... ok Doctest: IPython.Extensions.ipipe.ieval ... ok Doctest: IPython.Extensions.ipipe.ifilter ... ok Doctest: IPython.Extensions.ipipe.iglob ... ok Doctest: IPython.Extensions.ipipe.ihist ... ok Doctest: IPython.Extensions.ipipe.ils ... ok Doctest: IPython.Extensions.ipipe.ipwd ... ok Doctest: IPython.Extensions.ipipe.isort ... ok Doctest: IPython.Extensions.ipipe.iwalk ... ok Doctest: IPython.Extensions.ipipe.ix ... ok Doctest: IPython.Magic.Magic.magic_alias ... ok Doctest: IPython.Magic.Magic.magic_macro ... ok Doctest: IPython.Magic.Magic.magic_prun ... ok Doctest: IPython.Magic.Magic.magic_reset ... ok Doctest: IPython.Magic.Magic.magic_run ... ok Doctest: IPython.Magic.Magic.magic_sc ... ok Doctest: IPython.Magic.Magic.magic_timeit ... ok Doctest: IPython.Magic.Magic.magic_who ... ok Doctest: IPython.Shell.MatplotlibShellBase.magic_run ... ok Doctest: IPython.Shell.MatplotlibShellBase.magic_run ... ok Doctest: IPython.Shell.MatplotlibShellBase.magic_run ... ok Doctest: IPython.deep_reload ... ok Doctest: IPython.excolors.exception_colors ... ok Failure: ImportError (No module named zope.interface) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.trial) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named twisted.python) ... ERROR A simple test to see if we can execute a process and get the output. ... ok Checks that we can send characters on stdin to the process. ... ok Check that we can kill a process, and its subprocess. ... ok Doctest: IPython.genutils.EvalDict ... ok Doctest: IPython.genutils.SystemExec ... ok Doctest: IPython.genutils.qw ... ok Doctest: IPython.genutils.read_dict ... ok Doctest: IPython.iplib.InteractiveShell.cache_main_mod ... ok Doctest: IPython.iplib.InteractiveShell.clear_main_mod_cache ... ok Doctest: IPython.iplib.InteractiveShell.complete ... ok Doctest: IPython.ipstruct.Struct ... ok Doctest: IPython.ipstruct.Struct.__contains__ ... ok Failure: ImportError (No module named twisted.python) ... ERROR Failure: ImportError (No module named Numeric) ... ERROR Doctest: IPython.platutils_win32.get_long_path_name ... ok Doctest: IPython.strdispatch.StrDispatch ... ok Doctest: IPython.tools.utils.extractVars ... ok Doctest: IPython.tools.utils.list_strings ... ok Doctest: IPython.tools.utils.marquee ... ok Doctest: IPython.tools.utils.shexp ... ok Doctest: test_tools_utils.txt ... ok Failure: ImportError (No module named twisted.internet) ... ERROR Doctest: IPython.testing.decorator_msim.decorator ... ok Doctest: IPython.testing.decorator_msim.getinfo ... ok Doctest: IPython.testing.decorators ... ok Doctest: IPython.testing.decorators.make_label_dec ... ok Failure: ImportError (No module named twisted.trial.unittest) ... ERROR Doctest: IPython.testing.plugin.simple.ipyfunc2 ... ok Doctest: IPython.testing.plugin.simple.pyfunc ... ok Doctest: test_combo.txt ... ok Doctest: test_example.txt ... ok Doctest: IPython.testing.plugin.test_ipdoctest.doctest_multiline1 ... ok Doctest: IPython.testing.plugin.test_ipdoctest.doctest_multiline2 ... ok Doctest: IPython.testing.plugin.test_ipdoctest.doctest_multiline3 ... ok Doctest: IPython.testing.plugin.test_ipdoctest.doctest_run_builtins ... ok Doctest: IPython.testing.plugin.test_ipdoctest.doctest_simple ... ok A trivial passing test. ... ok Doctest: IPython.testing.plugin.test_refs.doctest_ivars ... ok Doctest: IPython.testing.plugin.test_refs.doctest_refs ... ok Doctest: IPython.testing.plugin.test_refs.doctest_run ... ok Doctest: IPython.testing.plugin.test_refs.doctest_runvars ... ok Failure: ImportError (No module named twisted.trial) ... ERROR Another deliberately broken test - we want to skip this one. ... SKIP: Skipping test: test_deliberately_broken2. Testing the skip decorator Doctest-skipping decorator should preserve the docstring. ... ok Doctest-skipping decorator should preserve function signature. ... ok IPython.testing.tests.test_decorators.test_linux ... ok IPython.testing.tests.test_decorators.test_win32 ... SKIP: Skipping test: test_win32. This test does not run under Windows IPython.testing.tests.test_decorators.test_osx ... ok Doctest: IPython.testing.tests.test_decorators.call_doctest_bad ... ok Doctest: IPython.testing.tests.test_decorators.doctest_bad ... ok Doctest: IPython.testing.tests.test_decorators.doctest_bad ... ok Doctest: IPython.testing.tests.test_decorators.foo ... ok Doctest: IPython.testing.tests.test_decorators.foo.__init__ ... ok Doctest: IPython.testing.tests.test_decorators.foo.baz ... ok Failure: ImportError (No module named twisted.trial) ... ERROR IPython.testing.tests.test_tools.test_full_path_posix ... SKIP: Skipping test: test_full_path_posix. This test does not run under Windows IPython.testing.tests.test_tools.test_full_path_win32 ... ok IPython.tests.test_fakemodule.test_mk_fakemod(,) ... ok IPython.tests.test_fakemodule.test_mk_fakemod( at 0x03DCA870>,) ... ok Test making a FakeModule object with initial data ... ok Testcase for py2exe logic, un-compressed lib ... ok Testcase for py2exe logic, compressed lib ... ok Testcase $HOME is set, then use its value as home directory. ... ok Testcase $HOME is not set, os=='poix'. ... ok Testcase $HOME is not set, os=='nt' ... ok Testcase $HOME is not set, os=='nt' ... ok Testcase $HOME is not set, os=='nt' ... ok test_get_ipython_dir_1, Testcase to see if we can call get_ipython_dir without Exceptions. ... ok test_get_ipython_dir_2, Testcase to see if we can call get_ipython_dir without Exceptions. ... ok test_get_ipython_dir_3, Testcase to see if we can call get_ipython_dir without Exceptions. ... ok Testcase to see if we can call get_security_dir without Exceptions. ... ok Testcase to see if we can call get_log_dir without Exceptions. ... ok test_popkey_1, Basic usage test of popkey ... ok test_popkey_2, Test to see that popkey of non occuring keys ... ok test_popkey_3, Tests to see that popkey calls returns the correct value ... ok Various tests for filefind ... ok reset must clear most namespaces. ... ok IPython.tests.test_iplib.test_user_setup((u'C:\\Documents and Settings\\jstenar\\_ipython', ''), {'mode': 'install', 'interactive': False}) ... ok IPython.tests.test_iplib.test_user_setup(u'C:\\Documents and Settings\\jstenar\\_ipython',) ... ok IPython.tests.test_iplib.test_user_setup(('c:\\docume~1\\jstenar\\lokala~1\\temp\\ipython-test-sqeca1', ''), {'mode': 'install', 'interactive': False}) ... ok IPython.tests.test_iplib.test_user_setup('c:\\docume~1\\jstenar\\lokala~1\\temp\\ipython-test-sqeca1',) ... ok Check that %run doesn't damage __builtins__ ... SKIP: Skipping test: test_builtins_id. This test does not run under Windows Check that the type of __builtins__ doesn't change with %run. ... SKIP: Skipping test: test_builtins_type. This test does not run under Windows Test that prompts correctly generate after %run ... SKIP: Skipping test: test_prompts. This test does not run under Windows IPython.tests.test_magic.TestMagicRun.test_run_tempfile_path ... FAIL IPython.tests.test_magic.test_rehashx ... ok Test that object's __del__ methods are called on exit. ... ERROR IPython.tests.test_magic.test_shist([(1, 'hello'), (2, 'world'), (3, 'karhu')], [(1, 'hello'), (2, 'world'), (3, 'karhu')]) ... ok IPython.tests.test_magic.test_shist('world', 'world') ... ok IPython.tests.test_magic.test_numpy_clear_array_undec(True,) ... ok IPython.tests.test_magic.test_numpy_clear_array_undec(False,) ... ok SKIP: Skipping test: test_fail_dec. Test skipped due to test condition. SKIP: Skipping test: test_fail_dec2. This one shouldn not run SKIP: Skipping test: test_fail_dec3. This test is known to fail Doctest: IPython.tests.test_magic.doctest_hist_f ... ok Doctest: IPython.tests.test_magic.doctest_hist_r ... ok Doctest: IPython.tests.test_magic.doctest_refbug ... ok Doctest: IPython.tests.test_magic.doctest_run_ns ... ok Doctest: IPython.tests.test_magic.doctest_run_ns2 ... ok Make sure we find sys.exectable for python. ... ok Try to find pythonw on Windows. ... ok Make sure that FindCmdError is raised if we can't find the cmd. ... ok IPython.tests.test_platutils.test_get_long_path_name_win32 ... ok IPython.tests.test_platutils.test_get_long_path_name ... SKIP: Skipping test: test_get_long_path_name. This test does not run under Windows ====================================================================== ERROR: Failure: ImportError (No module named zope.interface) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\asyncfrontendbase.py", line 20, in from zope.interface import Interface, Attribute, implements, classProvides ImportError: No module named zope.interface ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\frontendbase.py", line 32, in from IPython.kernel.core.history import FrontEndHistory File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\linefrontendbase.py", line 24, in from frontendbase import FrontEndBase File "c:\python\external\ipython-trunk\IPython\frontend\frontendbase.py", line 32, in from IPython.kernel.core.history import FrontEndHistory File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\prefilterfrontend.py", line 32, in from IPython.kernel.core.redirector_output_trap import RedirectorOutputTrap File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\wx\ipythonx.py", line 16, in from wx_frontend import WxController File "c:\python\external\ipython-trunk\IPython\frontend\wx\wx_frontend.py", line 38, in from IPython.frontend.prefilterfrontend import PrefilterFrontEnd File "c:\python\external\ipython-trunk\IPython\frontend\prefilterfrontend.py", line 32, in from IPython.kernel.core.redirector_output_trap import RedirectorOutputTrap File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\wx\wx_frontend.py", line 38, in from IPython.frontend.prefilterfrontend import PrefilterFrontEnd File "c:\python\external\ipython-trunk\IPython\frontend\prefilterfrontend.py", line 32, in from IPython.kernel.core.redirector_output_trap import RedirectorOutputTrap File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.trial) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\tests\test_asyncfrontendbase.py", line 21, in from twisted.trial import unittest ImportError: No module named twisted.trial ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\tests\test_frontendbase.py", line 15, in from IPython.frontend.frontendbase import FrontEndBase File "c:\python\external\ipython-trunk\IPython\frontend\frontendbase.py", line 32, in from IPython.kernel.core.history import FrontEndHistory File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\tests\test_linefrontend.py", line 15, in from IPython.frontend.linefrontendbase import LineFrontEndBase File "c:\python\external\ipython-trunk\IPython\frontend\linefrontendbase.py", line 24, in from frontendbase import FrontEndBase File "c:\python\external\ipython-trunk\IPython\frontend\frontendbase.py", line 32, in from IPython.kernel.core.history import FrontEndHistory File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\frontend\tests\test_prefilterfrontend.py", line 21, in from IPython.frontend.prefilterfrontend import PrefilterFrontEnd File "c:\python\external\ipython-trunk\IPython\frontend\prefilterfrontend.py", line 32, in from IPython.kernel.core.redirector_output_trap import RedirectorOutputTrap File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named twisted.python) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\kernel\__init__.py", line 25, in from IPython.kernel.error import TaskRejectError File "c:\python\external\ipython-trunk\IPython\kernel\error.py", line 19, in from twisted.python import failure ImportError: No module named twisted.python ====================================================================== ERROR: Failure: ImportError (No module named Numeric) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\numutils.py", line 31, in import Numeric ImportError: No module named Numeric ====================================================================== ERROR: Failure: ImportError (No module named twisted.internet) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\twshell.py", line 7, in from twisted.internet import reactor, threads ImportError: No module named twisted.internet ====================================================================== ERROR: Failure: ImportError (No module named twisted.trial.unittest) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\testing\parametric.py", line 7, in from twisted.trial.unittest import TestCase ImportError: No module named twisted.trial.unittest ====================================================================== ERROR: Failure: ImportError (No module named twisted.trial) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\testing\util.py", line 18, in from twisted.trial import unittest ImportError: No module named twisted.trial ====================================================================== ERROR: Failure: ImportError (No module named twisted.trial) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName addr.filename, addr.module) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "c:\python\external\ipython-trunk\IPython\testing\tests\test_decorators_trial.py", line 23, in from twisted.trial import unittest ImportError: No module named twisted.trial ====================================================================== ERROR: Test that object's __del__ methods are called on exit. ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\case.py", line 182, in runTest self.test(*self.arg) File "c:\python\external\ipython-trunk\IPython\tests\test_magic.py", line 67, in test_obj_del ipython_cmd = find_cmd('ipython') File "c:\python\external\ipython-trunk\IPython\platutils.py", line 86, in find_cmd raise FindCmdError('command could not be found: %s' % cmd) FindCmdError: command could not be found: ipython ====================================================================== FAIL: IPython.tests.test_magic.TestMagicRun.test_run_tempfile_path ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\python25\lib\site-packages\nose-0.10.4-py2.5.egg\nose\case.py", line 182, in runTest self.test(*self.arg) File "c:\python\external\ipython-trunk\IPython\testing\decorators.py", line 171, in skipper_func return f(*args, **kwargs) File "c:\python\external\ipython-trunk\IPython\tests\test_magic.py", line 215, in test_run_tempfile_path tt.assert_equals(True,False,"%run doesn't work with tempfile paths on win32.") File "", line 3, in assert_equals AssertionError: %run doesn't work with tempfile paths on win32. >> raise self.failureException, \ ("%run doesn't work with tempfile paths on win32." or '%r != %r' % (True, False)) ---------------------------------------------------------------------- Ran 141 tests in 1.703s FAILED (SKIP=10, errors=17, failures=1) obj_del.py: object A deleted From jorgen.stenarson at bostream.nu Mon May 4 14:14:27 2009 From: jorgen.stenarson at bostream.nu (=?ISO-8859-1?Q?J=F6rgen_Stenarson?=) Date: Mon, 04 May 2009 20:14:27 +0200 Subject: [IPython-dev] Building docs Message-ID: <49FF3083.4050904@bostream.nu> Hi, what are the build dependencies for the documentation? I got a crash (see below) when trying to build today. The do_sphinx is out of date (it does not call autogen_api.py). I would like to improve the do_sphinx command to check for the presense of latex instead of just assuming it is not available on windows. Is this something I should do and supply a patch? /J?rgen C:\python\external\ipython-trunk\docs>do_sphinx.py Making output directory... Running Sphinx v1.0 (hg) No builder selected, using default: html loading pickled environment... not found building [html]: targets for 168 source files that are out of date updating environment: 168 added, 0 changed, 0 removed reading sources... [ 0%] api/generated/IPython.ColorANSI reading sources... [ 1%] api/generated/IPython.ConfigLoader reading sources... [ 1%] api/generated/IPython.CrashHandler reading sources... [ 2%] api/generated/IPython.DPyGetOpt reading sources... [ 2%] api/generated/IPython.Debugger reading sources... [ 3%] api/generated/IPython.Itpl reading sources... [ 4%] api/generated/IPython.Logger reading sources... [ 4%] api/generated/IPython.Magic reading sources... [ 5%] api/generated/IPython.OInspect reading sources... [ 5%] api/generated/IPython.OutputTrap reading sources... [ 6%] api/generated/IPython.Prompts reading sources... [ 7%] api/generated/IPython.PyColorize reading sources... [ 7%] api/generated/IPython.Shell reading sources... [ 8%] api/generated/IPython.UserConfig.ipy_user_conf reading sources... [ 8%] api/generated/IPython.background_jobs reading sources... [ 9%] api/generated/IPython.completer reading sources... [ 10%] api/generated/IPython.config.api reading sources... [ 10%] api/generated/IPython.config.cutils reading sources... [ 11%] api/generated/IPython.deep_reload reading sources... [ 11%] api/generated/IPython.demo reading sources... [ 12%] api/generated/IPython.dtutils reading sources... [ 13%] api/generated/IPython.excolors reading sources... [ 13%] api/generated/IPython.external.Itpl reading sources... [ 14%] api/generated/IPython.external.argparse reading sources... [ 14%] api/generated/IPython.external.configobj reading sources... [ 15%] api/generated/IPython.external.guid reading sources... [ 16%] api/generated/IPython.external.mglob reading sources... [ 16%] api/generated/IPython.external.path reading sources... [ 17%] api/generated/IPython.external.pretty reading sources... [ 17%] api/generated/IPython.external.simplegeneric reading sources... [ 18%] api/generated/IPython.external.validate reading sources... [ 19%] api/generated/IPython.frontend.asyncfrontendbase Exception occurred: File "C:\python\external\ipython-trunk\docs\sphinxext\inheritance_diagram.py", line 107, in _import_class_or_module "Could not import class or module '%s' specified for inheritance diagram" % name) ValueError: Could not import class or module 'IPython.frontend.asyncfrontendbase ' specified for inheritance diagram The full traceback has been saved in c:\docume~1\jstenar\lokala~1\temp\sphinx-er r-45r7oy.log, if you want to report the issue to the author. Please also report this if it was a user error, so that a better error message c an be provided next time. Send reports to sphinx-dev at googlegroups.com. Thanks! From ondrej at certik.cz Thu May 21 22:15:03 2009 From: ondrej at certik.cz (Ondrej Certik) Date: Thu, 21 May 2009 19:15:03 -0700 Subject: [IPython-dev] pasting lines with "\" into ipython Message-ID: <85b5c3130905211915j41028ec5kb90ce8f33e6dd57f@mail.gmail.com> Hi, and I want to copy & paste the code at the front page: http://code.google.com/p/femhub/ into ipython. The problematic lines are: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ WeakForm, Solution, ScalarView, LinSystem, DummySolver from hermes2d.forms import set_forms from hermes2d.examples import get_example_mesh if I paste the first line, this is what happens: In [2]: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ ------------------------------------------------------------ File "", line 1 SyntaxError: trailing comma not allowed without surrounding parentheses (, line 1) and then the rest of lines fail too. If I fix this, e.g. write it without "\", for example by concatenating the lines, then the whole script can be just copy & pasted and it rocks. Is there some reason why the line with "\" doesn't work? Ondrej From gokhansever at gmail.com Fri May 22 10:36:34 2009 From: gokhansever at gmail.com (=?UTF-8?Q?G=C3=B6khan_SEVER?=) Date: Fri, 22 May 2009 09:36:34 -0500 Subject: [IPython-dev] pasting lines with "\" into ipython In-Reply-To: <85b5c3130905211915j41028ec5kb90ce8f33e6dd57f@mail.gmail.com> References: <85b5c3130905211915j41028ec5kb90ce8f33e6dd57f@mail.gmail.com> Message-ID: <49d6b3500905220736h2b4cea3bm724f2689f91cbfd5@mail.gmail.com> Hi Ondrej, I don't know the exact answer, however if you put the comma after back-slash on a new line it works. In [10]: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space \ ....: ,WeakForm, Solution, ScalarView, LinSystem, DummySolver and IPython complains about a missing module as expected other than a syntax error :) G?khan On Thu, May 21, 2009 at 9:15 PM, Ondrej Certik wrote: > Hi, > > and I want to copy & paste the code at the front page: > > http://code.google.com/p/femhub/ > > into ipython. The problematic lines are: > > from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ > WeakForm, Solution, ScalarView, LinSystem, DummySolver > from hermes2d.forms import set_forms > from hermes2d.examples import get_example_mesh > > if I paste the first line, this is what happens: > > > In [2]: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ > ------------------------------------------------------------ > File "", line 1 > SyntaxError: trailing comma not allowed without surrounding > parentheses (, line 1) > > > and then the rest of lines fail too. If I fix this, e.g. write it > without "\", for example by concatenating the lines, then the whole > script can be just copy & pasted and it rocks. > > > Is there some reason why the line with "\" doesn't work? > > Ondrej > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ondrej at certik.cz Fri May 22 12:00:48 2009 From: ondrej at certik.cz (Ondrej Certik) Date: Fri, 22 May 2009 09:00:48 -0700 Subject: [IPython-dev] pasting lines with "\" into ipython In-Reply-To: <49d6b3500905220736h2b4cea3bm724f2689f91cbfd5@mail.gmail.com> References: <85b5c3130905211915j41028ec5kb90ce8f33e6dd57f@mail.gmail.com> <49d6b3500905220736h2b4cea3bm724f2689f91cbfd5@mail.gmail.com> Message-ID: <85b5c3130905220900w131e7f9ay5fd03b60b7a01478@mail.gmail.com> On Fri, May 22, 2009 at 7:36 AM, G?khan SEVER wrote: > Hi Ondrej, > > I don't know the exact answer, however if you put the comma after back-slash > on a new line it works. > > In [10]: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space \ > ?? ....: ,WeakForm, Solution, ScalarView, LinSystem, DummySolver > > and IPython complains about a missing module as expected other than a syntax > error :) Indeed, that works for me: In [1]: from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space \ ...: ,WeakForm, Solution, ScalarView, LinSystem, DummySolver In [2]: Thanks for the tip. I think the last comma could be allowed in ipython, I think it's very natural to have it there. Ondrej From frostedcheerios at gmail.com Thu May 28 17:20:48 2009 From: frostedcheerios at gmail.com (David Martin) Date: Thu, 28 May 2009 16:20:48 -0500 Subject: [IPython-dev] test_prefilter.py failure In-Reply-To: <4A1EFEAF.8040804@enthought.com> References: <4A1EFEAF.8040804@enthought.com> Message-ID: <4A1F0030.4000606@gmail.com> I've installed IPython 0.9.1 and ran the test_prefilter.py file that came with the install. I got a single error and would like to know if this is an expected test failure. -David M >python test_prefilter.py 192 tests run, 1 failure Expected handle_normal to be called for ' ', instead None called