Numpy error in Python.

Sandeep Devadas dsandie@gmail.com
Wed Jun 24 15:04:00 GMT 2009


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 = NumpyTestProgram(argv=argv, exit=False, plugins=plugins)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/core.py", line 113, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  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=self.usage())
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 249, in configure
    options, args = self._parseArgs(argv, cfg_files)
  File "/bin/nose-0.11.1/nose-0.11.1/nose/config.py", line 237, in _parseArgs
    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=name, filename=filename)
  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@tishler.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 >= 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  8784 1AFD E4CC ECF4 8EF6
>
> --
> 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
>
>

--
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



More information about the Cygwin mailing list