Skip to content

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

Closed
ipython opened this Issue May 10, 2010 · 3 comments

2 participants

@ipython
ipython commented May 10, 2010

Original Launchpad bug 506839: https://bugs.launchpad.net/ipython/+bug/506839
Reported by: fdo.perez (Fernando Perez).

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.

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
from IPython.kernel.clientconnector import ClientConnector
File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
from IPython.kernel.launcher import IPClusterLauncher
File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
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

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 dule>
from IPython.kernel.clientconnector import ClientConnector
File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
from IPython.kernel.launcher import IPClusterLauncher
File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
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

@ipython
ipython commented May 10, 2010

[ LP comment 1 by: Brian Granger, on 2010-01-13 15:27:44+00:00 ]

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 fperez.net@gmail.com 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
   from IPython.kernel.clientconnector import ClientConnector
 File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
   from IPython.kernel.launcher import IPClusterLauncher
 File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
   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 dule>
   from IPython.kernel.clientconnector import ClientConnector
 File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
   from IPython.kernel.launcher import IPClusterLauncher
 File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
   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

** Affects: ipython
    Importance: Medium
        Status: Confirmed

WinHPCLauncher is a hard dependency that causes errors in the test suite
https://bugs.launchpad.net/bugs/506839
You received this bug notification because you are a member of IPython
Developers, which is subscribed to IPython.

Status in IPython - Enhanced Interactive Python: Confirmed

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
   from IPython.kernel.clientconnector import ClientConnector
 File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
   from IPython.kernel.launcher import IPClusterLauncher
 File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
   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 dule>
   from IPython.kernel.clientconnector import ClientConnector
 File "H:\ipython\ipython\IPython\kernel\clientconnector.py", line 28, in le>
   from IPython.kernel.launcher import IPClusterLauncher
 File "H:\ipython\ipython\IPython\kernel\launcher.py", line 565, in
   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

Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu
ellisonbg@gmail.com

@ipython
ipython commented May 10, 2010

[ LP comment 2 by: Fernando Perez, on 2010-01-13 16:41:15+00:00 ]

On Wed, Jan 13, 2010 at 7:27 AM, Brian Granger ellisonbg@gmail.com 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

@minrk
IPython member
minrk commented Mar 22, 2011

I do not believe this Issue still exists in 0.11, can you confirm that so we can close it?

@minrk minrk closed this Mar 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.