Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Pearu Peterson
On Thu, Mar 31, 2011 at 12:19 PM, David Cournapeau courn...@gmail.comwrote:

 On Wed, Mar 30, 2011 at 7:22 AM, Russell E. Owen ro...@uw.edu wrote:
  In article
  AANLkTi=eeg8kl7639imrtl-ihg1ncqyolddsid5tf...@mail.gmail.com,
   Ralf Gommers ralf.gomm...@googlemail.com wrote:
 
  Hi,
 
  I am pleased to announce the availability of the first beta of NumPy
  1.6.0. Due to the extensive changes in the Numpy core for this
  release, the beta testing phase will last at least one month. Please
  test this beta and report any problems on the Numpy mailing list.
 
  Sources and binaries can be found at:
  http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
  For (preliminary) release notes see below.

 I see a segfault on Ubuntu 64 bits for the test
 TestAssumedShapeSumExample in numpy/f2py/tests/test_assumed_shape.py.
 Am I the only one seeing it ?


The test work here ok on Ubuntu 64 with numpy master. Could you try the
maintenance/1.6.x branch where the related bugs are fixed.

Pearu
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Scott Sinclair
On 31 March 2011 11:37, Pearu Peterson pearu.peter...@gmail.com wrote:


 On Thu, Mar 31, 2011 at 12:19 PM, David Cournapeau courn...@gmail.com
 wrote:

 On Wed, Mar 30, 2011 at 7:22 AM, Russell E. Owen ro...@uw.edu wrote:
  In article
  AANLkTi=eeg8kl7639imrtl-ihg1ncqyolddsid5tf...@mail.gmail.com,
   Ralf Gommers ralf.gomm...@googlemail.com wrote:
 
  Hi,
 
  I am pleased to announce the availability of the first beta of NumPy
  1.6.0. Due to the extensive changes in the Numpy core for this
  release, the beta testing phase will last at least one month. Please
  test this beta and report any problems on the Numpy mailing list.
 
  Sources and binaries can be found at:
  http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
  For (preliminary) release notes see below.

 I see a segfault on Ubuntu 64 bits for the test
 TestAssumedShapeSumExample in numpy/f2py/tests/test_assumed_shape.py.
 Am I the only one seeing it ?


 The test work here ok on Ubuntu 64 with numpy master. Could you try the
 maintenance/1.6.x branch where the related bugs are fixed.

For what it's worth, the maintenance/1.6.x branch works for me on 64-bit Ubuntu:

(numpy-1.6.x)scott@godzilla:~$ python -c import numpy; numpy.test()
Running unit tests for numpy
NumPy version 1.6.0b2.dev-a172fd6
NumPy is installed in
/home/scott/.virtualenvs/numpy-1.6.x/lib/python2.6/site-packages/numpy
Python version 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5]
nose version 1.0.0
snip...
--
Ran 3406 tests in 16.889s

OK (KNOWNFAIL=3, SKIP=4)

Cheers,
Scott
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Pearu Peterson
On Thu, Mar 31, 2011 at 1:00 PM, Scott Sinclair scott.sinclair...@gmail.com
 wrote:

 On 31 March 2011 11:37, Pearu Peterson pearu.peter...@gmail.com wrote:
 
 
  On Thu, Mar 31, 2011 at 12:19 PM, David Cournapeau courn...@gmail.com
  wrote:
 
  On Wed, Mar 30, 2011 at 7:22 AM, Russell E. Owen ro...@uw.edu wrote:
   In article
   AANLkTi=eeg8kl7639imrtl-ihg1ncqyolddsid5tf...@mail.gmail.com,
Ralf Gommers ralf.gomm...@googlemail.com wrote:
  
   Hi,
  
   I am pleased to announce the availability of the first beta of NumPy
   1.6.0. Due to the extensive changes in the Numpy core for this
   release, the beta testing phase will last at least one month. Please
   test this beta and report any problems on the Numpy mailing list.
  
   Sources and binaries can be found at:
   http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
   For (preliminary) release notes see below.
 
  I see a segfault on Ubuntu 64 bits for the test
  TestAssumedShapeSumExample in numpy/f2py/tests/test_assumed_shape.py.
  Am I the only one seeing it ?
 
 
  The test work here ok on Ubuntu 64 with numpy master. Could you try the
  maintenance/1.6.x branch where the related bugs are fixed.

 For what it's worth, the maintenance/1.6.x branch works for me on 64-bit
 Ubuntu:

 (numpy-1.6.x)scott@godzilla:~$ python -c import numpy; numpy.test()


You might want to run

 python -c import numpy; numpy.test('full')

as the corresponding test is decorated as slow.

Pearu
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Scott Sinclair
On 31 March 2011 12:18, Pearu Peterson pearu.peter...@gmail.com wrote:


 On Thu, Mar 31, 2011 at 1:00 PM, Scott Sinclair
 scott.sinclair...@gmail.com wrote:

 For what it's worth, the maintenance/1.6.x branch works for me on 64-bit
 Ubuntu:

 (numpy-1.6.x)scott@godzilla:~$ python -c import numpy; numpy.test()

 You might want to run

  python -c import numpy; numpy.test('full')

 as the corresponding test is decorated as slow.

python -c import numpy; numpy.test('full')
Running unit tests for numpy
NumPy version 1.6.0b2.dev-a172fd6
NumPy is installed in
/home/scott/.virtualenvs/numpy-1.6.x/lib/python2.6/site-packages/numpy
Python version 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5]
nose version 1.0.0

snip...

Ran 3423 tests in 28.713s

OK (KNOWNFAIL=3, SKIP=4)

Cheers,
Scott
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread David
On 03/31/2011 06:37 PM, Pearu Peterson wrote:


 On Thu, Mar 31, 2011 at 12:19 PM, David Cournapeau courn...@gmail.com
 mailto:courn...@gmail.com wrote:

 On Wed, Mar 30, 2011 at 7:22 AM, Russell E. Owen ro...@uw.edu
 mailto:ro...@uw.edu wrote:
   In article
   AANLkTi=eeg8kl7639imrtl-ihg1ncqyolddsid5tf...@mail.gmail.com
 mailto:eeg8kl7639imrtl-ihg1ncqyolddsid5tf...@mail.gmail.com,
Ralf Gommers ralf.gomm...@googlemail.com
 mailto:ralf.gomm...@googlemail.com wrote:
  
   Hi,
  
   I am pleased to announce the availability of the first beta of NumPy
   1.6.0. Due to the extensive changes in the Numpy core for this
   release, the beta testing phase will last at least one month. Please
   test this beta and report any problems on the Numpy mailing list.
  
   Sources and binaries can be found at:
   http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
   For (preliminary) release notes see below.

 I see a segfault on Ubuntu 64 bits for the test
 TestAssumedShapeSumExample in numpy/f2py/tests/test_assumed_shape.py.
 Am I the only one seeing it ?

 The test work here ok on Ubuntu 64 with numpy master. Could you try the
 maintenance/1.6.x branch where the related bugs are fixed.

I did test that as well, and got the same issue, but could not reproduce 
it on another machine. I do get the error every time on my main work 
machine, though. I will look more into it, but it is most likely 
something due to my machine,

cheers,

David
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-24 Thread Ralf Gommers
On Wed, Mar 23, 2011 at 9:29 PM, Ralf Gommers
ralf.gomm...@googlemail.com wrote:
 On Wed, Mar 23, 2011 at 8:32 PM, Pauli Virtanen p...@iki.fi wrote:
 On Wed, 23 Mar 2011 14:17:20 -0500, Bruce Southey wrote:
 I can not figure out what is different between git and this version :-(

 All the paths appear to be the same.
 Further it continues onwards when I do: $python3.1 -m pdb setup.py build

 I added these lines to the start of numpy/compat/__init__.py import os
 print(os.getcwd())

 /home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k This is
 equivalent to the git version.

 Unless someone else finds it, I will consider it just my problem and
 ignore it.

 There's some magic in setup.py for generating numpy/version.py, which
 behaves differently depending whether `.git` is present or not. It might
 do some stuff that goes wrong --- I fixed it once already, but maybe it's
 broken again.

 I un-fixed your fix by accident, since I missed why you did that and
 your fix broke the paver script. Leaving the FULLVERSION line outside
 write_version_py() but putting the import inside should fix it, only
 the commit part will be missing when building packages for an
 unreleased version.

It's a little ugly, but this seems to work for all use cases:
https://github.com/rgommers/numpy/commit/a9fb1be2 Can someone please
review that?

Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Bruce Southey
On 03/23/2011 11:07 AM, Ralf Gommers wrote:
 Hi,

 I am pleased to announce the availability of the first beta of NumPy
 1.6.0. Due to the extensive changes in the Numpy core for this
 release, the beta testing phase will last at least one month. Please
 test this beta and report any problems on the Numpy mailing list.

 Sources and binaries can be found at:
 http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
 For (preliminary) release notes see below.

 Enjoy,
 Ralf



[snip]
Python 3.1 failed to build it due to import error of _inspect module and 
Python2.4 failed 'test_iterator.test_iter_broadcasting_errors'. Yet all 
tests passed on Python versions 2.5, 2.6 and 2.7.

Bruce
PS I do want to go through the bugs I indicated but I have not found 
sufficient time.

Python3.1 error:

Traceback (most recent call last):
   File setup.py, line 201, in module
 setup_package()
   File setup.py, line 178, in setup_package
 from numpy.distutils.core import setup
   File 
/home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/__init__.py, 
line 22, in module
 import numpy.distutils.ccompiler
   File 
/home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/ccompiler.py, 
line 15, in module
 from numpy.distutils.exec_command import exec_command
   File 
/home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/exec_command.py,
 
line 58, in module
 from numpy.compat import open_latin1
   File 
/home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/compat/__init__.py, 
line 11, in module
 import _inspect
ImportError: No module named _inspect

Python 2.4 failed test:
$ python2.4 -c import numpy; numpy.test()
Running unit tests for numpy
NumPy version 1.6.0b1
NumPy is installed in /usr/local/lib/python2.4/site-packages/numpy
Python version 2.4.6 (#1, Sep 13 2010, 15:54:12) [GCC 4.4.4 20100630 
(Red Hat 4.4.4-10)]
nose version 0.11.2
.F...K.K..K...
 
.
 
S
 

Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Ralf Gommers
On Wed, Mar 23, 2011 at 5:29 PM, Bruce Southey bsout...@gmail.com wrote:
 On 03/23/2011 11:07 AM, Ralf Gommers wrote:
 Hi,

 I am pleased to announce the availability of the first beta of NumPy
 1.6.0. Due to the extensive changes in the Numpy core for this
 release, the beta testing phase will last at least one month. Please
 test this beta and report any problems on the Numpy mailing list.

 Sources and binaries can be found at:
 http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
 For (preliminary) release notes see below.

 Enjoy,
 Ralf



 [snip]
 Python 3.1 failed to build it due to import error of _inspect module and
 Python2.4 failed 'test_iterator.test_iter_broadcasting_errors'. Yet all
 tests passed on Python versions 2.5, 2.6 and 2.7.

 Bruce
 PS I do want to go through the bugs I indicated but I have not found
 sufficient time.

 Python3.1 error:

 Traceback (most recent call last):
   File setup.py, line 201, in module
     setup_package()
   File setup.py, line 178, in setup_package
     from numpy.distutils.core import setup
   File
 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/__init__.py,
 line 22, in module
     import numpy.distutils.ccompiler
   File
 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/ccompiler.py,
 line 15, in module
     from numpy.distutils.exec_command import exec_command
   File
 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/exec_command.py,
 line 58, in module
     from numpy.compat import open_latin1
   File
 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/compat/__init__.py,
 line 11, in module
     import _inspect
 ImportError: No module named _inspect

This is strange. I checked that numpy/compat/_inspect.py is present in
the tarball. What build command did you use, and can you give the
complete output of that command?

Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Ralf Gommers
On Wed, Mar 23, 2011 at 6:00 PM, Bruce Southey bsout...@gmail.com wrote:
 On 03/23/2011 11:38 AM, Ralf Gommers wrote:

 On Wed, Mar 23, 2011 at 5:29 PM, Bruce Southeybsout...@gmail.com  wrote:

 On 03/23/2011 11:07 AM, Ralf Gommers wrote:

 Hi,

 I am pleased to announce the availability of the first beta of NumPy
 1.6.0. Due to the extensive changes in the Numpy core for this
 release, the beta testing phase will last at least one month. Please
 test this beta and report any problems on the Numpy mailing list.

 Sources and binaries can be found at:
 http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
 For (preliminary) release notes see below.

 Enjoy,
 Ralf



 [snip]
 Python 3.1 failed to build it due to import error of _inspect module and
 Python2.4 failed 'test_iterator.test_iter_broadcasting_errors'. Yet all
 tests passed on Python versions 2.5, 2.6 and 2.7.

 Bruce
 PS I do want to go through the bugs I indicated but I have not found
 sufficient time.

 Python3.1 error:

 Traceback (most recent call last):
   File setup.py, line 201, inmodule
     setup_package()
   File setup.py, line 178, in setup_package
     from numpy.distutils.core import setup
   File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/__init__.py,
 line 22, inmodule
     import numpy.distutils.ccompiler
   File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/ccompiler.py,
 line 15, inmodule
     from numpy.distutils.exec_command import exec_command
   File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/exec_command.py,
 line 58, inmodule
     from numpy.compat import open_latin1
   File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/compat/__init__.py,
 line 11, inmodule
     import _inspect
 ImportError: No module named _inspect

 This is strange. I checked that numpy/compat/_inspect.py is present in
 the tarball. What build command did you use, and can you give the
 complete output of that command?

 Ralf
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion

 Yes, I know that it is there and not sure what is missing!
 The typical way:
 $python3.1 setup.py build

It runs 2to3, but then for some reason decides not to use the output
of that on your system. Is that failing each time? If so, can you look
just above where it is failing, and see what's going on before/after
switching the path. Relevant code is:

old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)

Just inserting some print statements to look at os.getcwd() before and
after and at sys.path may tell you what's going on.

Ralf


 Also I know that it builds with Python3.1 and Python 3.2 with the latest git
 pull! But I have update nose before I can test it.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Bruce Southey
On 03/23/2011 12:25 PM, Ralf Gommers wrote:
 On Wed, Mar 23, 2011 at 6:00 PM, Bruce Southeybsout...@gmail.com  wrote:
 On 03/23/2011 11:38 AM, Ralf Gommers wrote:
 On Wed, Mar 23, 2011 at 5:29 PM, Bruce Southeybsout...@gmail.comwrote:
 On 03/23/2011 11:07 AM, Ralf Gommers wrote:
 Hi,

 I am pleased to announce the availability of the first beta of NumPy
 1.6.0. Due to the extensive changes in the Numpy core for this
 release, the beta testing phase will last at least one month. Please
 test this beta and report any problems on the Numpy mailing list.

 Sources and binaries can be found at:
 http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b1/
 For (preliminary) release notes see below.

 Enjoy,
 Ralf



 [snip]
 Python 3.1 failed to build it due to import error of _inspect module and
 Python2.4 failed 'test_iterator.test_iter_broadcasting_errors'. Yet all
 tests passed on Python versions 2.5, 2.6 and 2.7.

 Bruce
 PS I do want to go through the bugs I indicated but I have not found
 sufficient time.

 Python3.1 error:

 Traceback (most recent call last):
File setup.py, line 201, inmodule
  setup_package()
File setup.py, line 178, in setup_package
  from numpy.distutils.core import setup
File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/__init__.py,
 line 22, inmodule
  import numpy.distutils.ccompiler
File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/ccompiler.py,
 line 15, inmodule
  from numpy.distutils.exec_command import exec_command
File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/distutils/exec_command.py,
 line 58, inmodule
  from numpy.compat import open_latin1
File

 /home/bsouthey/python/numpystuff/numpy-1.6.0b1/numpy/compat/__init__.py,
 line 11, inmodule
  import _inspect
 ImportError: No module named _inspect
 This is strange. I checked that numpy/compat/_inspect.py is present in
 the tarball. What build command did you use, and can you give the
 complete output of that command?

 Ralf
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion
 Yes, I know that it is there and not sure what is missing!
 The typical way:
 $python3.1 setup.py build
 It runs 2to3, but then for some reason decides not to use the output
 of that on your system. Is that failing each time? If so, can you look
 just above where it is failing, and see what's going on before/after
 switching the path. Relevant code is:

  old_path = os.getcwd()
  os.chdir(src_path)
  sys.path.insert(0, src_path)

 Just inserting some print statements to look at os.getcwd() before and
 after and at sys.path may tell you what's going on.

 Ralf

 Also I know that it builds with Python3.1 and Python 3.2 with the latest git
 pull! But I have update nose before I can test it.
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion
I can not figure out what is different between git and this version :-(

All the paths appear to be the same.
Further it continues onwards when I do:
$python3.1 -m pdb setup.py build

I added these lines to the start of numpy/compat/__init__.py
import os
print(os.getcwd())

/home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k
This is equivalent to the git version.

Unless someone else finds it, I will consider it just my problem and 
ignore it.

Bruce
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Pauli Virtanen
On Wed, 23 Mar 2011 14:17:20 -0500, Bruce Southey wrote:
 I can not figure out what is different between git and this version :-(
 
 All the paths appear to be the same.
 Further it continues onwards when I do: $python3.1 -m pdb setup.py build
 
 I added these lines to the start of numpy/compat/__init__.py import os
 print(os.getcwd())
 
 /home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k This is
 equivalent to the git version.
 
 Unless someone else finds it, I will consider it just my problem and
 ignore it.

There's some magic in setup.py for generating numpy/version.py, which 
behaves differently depending whether `.git` is present or not. It might 
do some stuff that goes wrong --- I fixed it once already, but maybe it's 
broken again.

Pauli

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Bruce Southey
On 03/23/2011 02:32 PM, Pauli Virtanen wrote:
 On Wed, 23 Mar 2011 14:17:20 -0500, Bruce Southey wrote:
 I can not figure out what is different between git and this version :-(

 All the paths appear to be the same.
 Further it continues onwards when I do: $python3.1 -m pdb setup.py build

 I added these lines to the start of numpy/compat/__init__.py import os
 print(os.getcwd())

 /home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k This is
 equivalent to the git version.

 Unless someone else finds it, I will consider it just my problem and
 ignore it.
 There's some magic in setup.py for generating numpy/version.py, which
 behaves differently depending whether `.git` is present or not. It might
 do some stuff that goes wrong --- I fixed it once already, but maybe it's
 broken again.

   Pauli

 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion
That's it!
I commented out the setup.py line 'from numpy.version import 
git_revision as GIT_REVISION' and defined GIT_VERSION.

(I reverted to an older nose version for nose)
Python3.1 passes all tests but Python3.2 has a failure but I have to 
cleanup my messes in case it is me.

Bruce

$ python3.2 -c import numpy; numpy.test()
Running unit tests for numpy
NumPy version 1.6.0b1
NumPy is installed in /usr/local/lib/python3.2/site-packages/numpy
Python version 3.2 (r32:88445, Mar 23 2011, 11:36:08) [GCC 4.5.1 
20100924 (Red Hat 4.5.1-4)]
nose version 3.0.0
..K.Warning:
 
invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
.K.K..K..STart
 
of distr core
.../usr/local/lib/python3.2/site-packages/
 numpy/lib/format.py:575: 
ResourceWarning: unclosed file _io.BufferedReader name='/tmp/tmpathakb'
   mode=mode, offset=offset)
../usr/local/lib/python3.2/subprocess.py:460:
 
ResourceWarning: unclosed file _io.BufferedReader name=3
   return Popen(*popenargs, **kwargs).wait()
/usr/local/lib/python3.2/subprocess.py:460: ResourceWarning: unclosed 
file _io.BufferedReader name=8
   return Popen(*popenargs, **kwargs).wait()

Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Ralf Gommers
On Wed, Mar 23, 2011 at 8:32 PM, Pauli Virtanen p...@iki.fi wrote:
 On Wed, 23 Mar 2011 14:17:20 -0500, Bruce Southey wrote:
 I can not figure out what is different between git and this version :-(

 All the paths appear to be the same.
 Further it continues onwards when I do: $python3.1 -m pdb setup.py build

 I added these lines to the start of numpy/compat/__init__.py import os
 print(os.getcwd())

 /home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k This is
 equivalent to the git version.

 Unless someone else finds it, I will consider it just my problem and
 ignore it.

 There's some magic in setup.py for generating numpy/version.py, which
 behaves differently depending whether `.git` is present or not. It might
 do some stuff that goes wrong --- I fixed it once already, but maybe it's
 broken again.

I un-fixed your fix by accident, since I missed why you did that and
your fix broke the paver script. Leaving the FULLVERSION line outside
write_version_py() but putting the import inside should fix it, only
the commit part will be missing when building packages for an
unreleased version.

Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-23 Thread Derek Homeier
Hi Bruce,

 Sorry as I should I have paid more attention to you first email as I
 raised this on the numpy list. (At least with gmail, the reply is to  
 the
 scipy-dev list rather than the numpy list.)

 Based on Pauli's answer I got around it by commenting out a line in  
 the
 setup.py file about the git version:
 http://mail.scipy.org/pipermail/numpy-discussion/2011-March/ 
 055603.html

thanks, I was not subscribed to numpy-discussion (I realise I better  
should before
going into major testing...)! This patch

diff -ruN --exclude='*~' numpy-1.6.0b1.orig/setup.py numpy-1.6.0b1/ 
setup.py
--- numpy-1.6.0b1.orig/setup.py 2011-03-23 09:24:00.0 +0100
+++ numpy-1.6.0b1/setup.py  2011-03-23 23:03:19.0 +0100
@@ -99,9 +99,10 @@
  FULLVERSION = VERSION
  if os.path.exists('.git'):
  GIT_REVISION = git_version()
-elif os.path.exists('numpy/version.py'):
-# must be a source distribution, use existing version file
-from numpy.version import git_revision as GIT_REVISION
+# does not work in a clean source distribution:
+#elif os.path.exists('numpy/version.py'):
+## must be a source distribution, use existing version file
+#from numpy.version import git_revision as GIT_REVISION
  else:
  GIT_REVISION = Unknown

did the build for Python3.1 and Python3.2.

Cheers,
Derek

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion