IPython - Enhanced Interactive Python

WinHPCLauncher is a hard dependency that causes errors in the test suite

Reported by Fernando Perez on 2010-01-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Medium
Unassigned

Bug Description

Under win32 (I'm running EPD 6 and my trunk-dev of ipython on top, ipython is the only non-EPD piece), the 'trial IPython.kernel' part of the test suite gives the two errors below.

The problem can't be fixed just with decorators, because the modules don't even import. For nose I use the exclusions mechanism to prevent nose from looking at modules it can't import, but I don't know how to do that for trial.

These are the only two failures in the whole test suite under win32 with EPD6 though (with my trunk-dev branch)! We're in pretty good shape.

===============================================================================
[ERROR]: IPython.kernel.tests.test_multienginefc

Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\twisted\trial\runner.py", line 563, in loa
dPackage
    module = modinfo.load()
  File "C:\Python26\lib\site-packages\twisted\python\modules.py", line 381, in l
oad
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 462, in n
amedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 398, in _
importAndCheckStack
    return __import__(importName)
  File "H:\ipython\ipython\IPython\kernel\tests\test_multienginefc.py", line 30,
 in <module>
    from IPython.kernel.clientconnector import ClientConnector
  File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in <modu
le>
    from IPython.kernel.launcher import IPClusterLauncher
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in <module>
    class WindowsHPCLauncher(BaseLauncher):
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 577, in WindowsHPCL
auncher
    job_cmd = Str(find_job_cmd(), config=True)
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 560, in find_job_cm
d
    return find_cmd('job')
  File "H:\ipython\ipython\IPython\utils\platutils.py", line 83, in find_cmd
    raise FindCmdError('command could not be found: %s' % cmd)
IPython.utils.platutils.FindCmdError: command could not be found: job
===============================================================================
[ERROR]: IPython.kernel.tests.test_taskfc

Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\twisted\trial\runner.py", line 563, in loa
dPackage
    module = modinfo.load()
  File "C:\Python26\lib\site-packages\twisted\python\modules.py", line 381, in l
oad
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 462, in n
amedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 398, in _
importAndCheckStack
    return __import__(importName)
  File "H:\ipython\ipython\IPython\kernel\tests\test_taskfc.py", line 34, in <mo
dule>
    from IPython.kernel.clientconnector import ClientConnector
  File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in <modu
le>
    from IPython.kernel.launcher import IPClusterLauncher
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in <module>
    class WindowsHPCLauncher(BaseLauncher):
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 577, in WindowsHPCL
auncher
    job_cmd = Str(find_job_cmd(), config=True)
  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 560, in find_job_cm
d
    return find_cmd('job')
  File "H:\ipython\ipython\IPython\utils\platutils.py", line 83, in find_cmd
    raise FindCmdError('command could not be found: %s' % cmd)
IPython.utils.platutils.FindCmdError: command could not be found: job
-------------------------------------------------------------------------------

Download full text (8.4 KiB)

Ooops, I found out about this one a few days ago myself. The fix is
easy and I will take care of it.

Brian

On Tue, Jan 12, 2010 at 11:50 PM, Fernando Perez <email address hidden> wrote:
> Public bug reported:
>
> Under win32 (I'm running EPD 6 and my trunk-dev of ipython on top,
> ipython is the only non-EPD piece), the 'trial IPython.kernel' part of
> the test suite gives the two errors below.
>
> The problem can't be fixed just with decorators, because the modules
> don't even import.  For nose I use the exclusions mechanism to prevent
> nose from looking at modules it can't import, but I don't know how to do
> that for trial.
>
> These are the only two failures in the whole test suite under win32 with
> EPD6 though (with my trunk-dev branch)!  We're in pretty good shape.
>
> ===============================================================================
> [ERROR]: IPython.kernel.tests.test_multienginefc
>
> Traceback (most recent call last):
>  File "C:\Python26\lib\site-packages\twisted\trial\runner.py", line 563, in loa
> dPackage
>    module = modinfo.load()
>  File "C:\Python26\lib\site-packages\twisted\python\modules.py", line 381, in l
> oad
>    return self.pathEntry.pythonPath.moduleLoader(self.name)
>  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 462, in n
> amedAny
>    topLevelPackage = _importAndCheckStack(trialname)
>  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 398, in _
> importAndCheckStack
>    return __import__(importName)
>  File "H:\ipython\ipython\IPython\kernel\tests\test_multienginefc.py", line 30,
>  in <module>
>    from IPython.kernel.clientconnector import ClientConnector
>  File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in <modu
> le>
>    from IPython.kernel.launcher import IPClusterLauncher
>  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in <module>
>    class WindowsHPCLauncher(BaseLauncher):
>  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 577, in WindowsHPCL
> auncher
>    job_cmd = Str(find_job_cmd(), config=True)
>  File "H:\ipython\ipython\IPython\kernel\launcher.py", line 560, in find_job_cm
> d
>    return find_cmd('job')
>  File "H:\ipython\ipython\IPython\utils\platutils.py", line 83, in find_cmd
>    raise FindCmdError('command could not be found: %s' % cmd)
> IPython.utils.platutils.FindCmdError: command could not be found: job
> ===============================================================================
> [ERROR]: IPython.kernel.tests.test_taskfc
>
> Traceback (most recent call last):
>  File "C:\Python26\lib\site-packages\twisted\trial\runner.py", line 563, in loa
> dPackage
>    module = modinfo.load()
>  File "C:\Python26\lib\site-packages\twisted\python\modules.py", line 381, in l
> oad
>    return self.pathEntry.pythonPath.moduleLoader(self.name)
>  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 462, in n
> amedAny
>    topLevelPackage = _importAndCheckStack(trialname)
>  File "C:\Python26\lib\site-packages\twisted\python\reflect.py", line 398, in _
> importAndCheckStack
>    return __import__(importName)
>  File "H:\ipython\ipython\IPython\kernel\tests\test_tas...

Read more...

Fernando Perez (fdo.perez) wrote :

On Wed, Jan 13, 2010 at 7:27 AM, Brian Granger <email address hidden> wrote:
> Ooops, I found out about this one a few days ago myself.  The fix is
> easy and I will take care of it.

Awesome, I figured as much. Thanks!

Cheers,

f

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers