Quantcast

Installation on CentOS 6.3 - test failure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Installation on CentOS 6.3 - test failure

daveM
Hi. I'm trying to install IPython on CentOS 6.3 running Python 2.7.3. I've installed the 2.7.3 from source - the OS distribution comes with 2.6.6. I've also installed numpy and scipy from source.

To install IPython, I did " python2.7 setup.py install". It runs OK, but then fails one test with:

FAIL: IPython.utils.tests.test_path.test_not_writable_ipdir
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/lib/python2.7/site-packages/IPython/testing/decorators.py", line 228, in skipper_func
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/IPython/utils/tests/test_path.py", line 397, in test_not_writable_ipdir
    ipdir = path.get_ipython_dir()
  File "/usr/local/lib/python2.7/site-packages/IPython/testing/tools.py", line 359, in __exit__
    assert self.s in printed, notprinted_msg.format(self.s, self.channel, printed)
AssertionError: Did not find 'is not a writable location' in printed output (on stderr):
u''
    <IPython.testing.tools.AssertPrints object at 0x2651650>.tee.flush()
    setattr(<module 'sys' (built-in)>, <IPython.testing.tools.AssertPrints object at 0x2651650>.channel, <IPython.testingtPrints object at 0x2651650>.orig_stream)
    u'' = <IPython.testing.tools.AssertPrints object at 0x2651650>.buffer.getvalue()
>>  assert <IPython.testing.tools.AssertPrints object at 0x2651650>.s in u'', 'Did not find {0!r} in printed output (on {.format(<IPython.testing.tools.AssertPrints object at 0x2651650>.s, <IPython.testing.tools.AssertPrints object at 0x26516 u'')
    return False

. . .

ERROR - 1 out of 8 test groups failed.
----------------------------------------
Runner failed: IPython.utils
You may wish to rerun this one individually, with:
/usr/local/bin/python2.7 /usr/local/lib/python2.7/site-packages/IPython/testing/iptest.py IPython.utils

The above was run as root. I tried running the individual test as an unprivileged user, but it still fails.

I appreciate any suggestions.

Dave


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Installation on CentOS 6.3 - test failure

Thomas Kluyver-2
On 2 January 2013 15:36, daveM <[hidden email]> wrote:
The above was run as root. I tried running the individual test as an
unprivileged user, but it still fails.

Does it fail with the same error when run as an unprivileged user? root might be unable to create a directory it can't write to, which would explain that failure.

Thomas

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Installation on CentOS 6.3 - test failure

daveM
Actually, now I can't get it to fail when I use an unprivileged account!

Hard to believe, but previously it gave me an error about py3compat. Unfortunately, my scrollback buffer is too short and I can't get the error back.

But it really doesn't matter (to me, anyway), since it's working.

Thank you very much for replying.

Dave



On Wed, Jan 2, 2013 at 11:11 AM, Thomas Kluyver-2 [via Python] <[hidden email]> wrote:
On 2 January 2013 15:36, daveM <[hidden email]> wrote:
The above was run as root. I tried running the individual test as an
unprivileged user, but it still fails.

Does it fail with the same error when run as an unprivileged user? root might be unable to create a directory it can't write to, which would explain that failure.

Thomas

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user



If you reply to this email, your message will be added to the discussion below:
http://python.6.n6.nabble.com/Installation-on-CentOS-6-3-test-failure-tp5001147p5001153.html
To unsubscribe from Installation on CentOS 6.3 - test failure, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Installation on CentOS 6.3 - test failure

Thomas Kluyver-2
On 2 January 2013 17:01, daveM <[hidden email]> wrote:
Actually, now I can't get it to fail when I use an unprivileged account!

Hard to believe, but previously it gave me an error about py3compat. Unfortunately, my scrollback buffer is too short and I can't get the error back.

But it really doesn't matter (to me, anyway), since it's working.

Thank you very much for replying.

You're welcome. We do get sporadic test failures from things like timeouts, which are a minor annoyance, but they're rare enough that they're not high priority.

Thomas

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Loading...