www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/24/08:19:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_12,J_CHICKENPOX_44,J_CHICKENPOX_45,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090624120253.GA5200@tishler.net>
References: <bacddaf50906240448h4e6135f0t8a12ce0017387cb7 AT mail DOT gmail DOT com> <20090624120253 DOT GA5200 AT tishler DOT net>
Date: Wed, 24 Jun 2009 17:48:53 +0530
Message-ID: <bacddaf50906240518q33dcfaa7pdbc91d5995bf9059@mail.gmail.com>
Subject: Re: Numpy error in Python.
From: Sandeep Devadas <dsandie AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi There,
              I installed nose as per your instructions and now im
getting this error.Please let me know what to do.

$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
Running unit tests for numpy
NumPy version 1.2.1
NumPy is installed in /usr/lib/python2.5/site-packages/numpy
Python version 2.5.2 (r252:60911, Dec  2 2008, 09:26:14) [GCC 3.4.4
(cygming special, gdc 0.12, using dmd 0.125)]
nose version 0.11.1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/numpy/testing/nosetester.py",
line 278, in test
    t =3D NumpyTestProgram(argv=3Dargv, exit=3DFalse, plugins=3Dplugins)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/core.py", line 113, in __init__
    argv=3Dargv, testRunner=3DtestRunner, testLoader=3DtestLoader)
  File "/usr/lib/python2.5/unittest.py", line 767, in __init__
    self.parseArgs(argv)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/core.py", line 130, in parseArgs
    self.config.configure(argv, doc=3Dself.usage())
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 249, in configure
    options, args =3D self._parseArgs(argv, cfg_files)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 237, in _parseAr=
gs
    return parser.parseArgsAndConfigFiles(argv[1:], cfg_files)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 132, in
parseArgsAndConfigFiles
    self._applyConfigurationToValues(self._parser, config, values)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 118, in
_applyConfigurationToValues
    name=3Dname, filename=3Dfilename)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 234, in
warn_sometimes
    raise ConfigError(msg)
nose.config.ConfigError: Error reading config file 'setup.cfg': no
such option 'doctest-extension'
>>>



On Wed, Jun 24, 2009 at 5:32 PM, Jason Tishler<jason AT tishler DOT net> wrote:
> Sandeep,
>
> On Wed, Jun 24, 2009 at 05:18:15PM +0530, Sandeep Devadas wrote:
>> I have imported the python-numpy package and am trying to import numpy
>> into python on bash.I am getting this error as shown below.Please let
>> me know what to do.
>>
>> $ python
>> Python 2.5.2 (r252:60911, Dec? 2 2008, 09:26:14)
>> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import numpy
>> >>> numpy.test()
>> [snip]
>> ??? raise ImportError(msg)
>> ImportError: Need nose >=3D 0.10.0 for tests - see
>> http://somethingaboutorange.com/mrl/projects/nose
>> >>> exit()
>
> Seems like you need to (build and) install nose.
>
> Jason
>
> --
> PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
> Fingerprint: 7A73 1405 7F2B E669 C19D =A08784 1AFD E4CC ECF4 8EF6
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019