Hi all, I am trying to install the maskedarray numpy branch for use with the timeseries package and I get the following error when importing numpy: /usr/local/lib64/python2.5/site-packages/numpy/__init__.py in <module>() 45 import random 46 import ctypeslib ---> 47 import ma 48 49 # Make these accessible from numpy name-space /usr/local/lib64/python2.5/site-packages/numpy/ma/__init__.py in <module>() 12 __date__ = '$Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $' 13 ---> 14 import core 15 from core import * 16 /usr/local/lib64/python2.5/site-packages/numpy/ma/core.py in <module>() 3073 return numpy.inner(fa, fb).view(MaskedArray) 3074 inner.__doc__ = numpy.inner.__doc__ -> 3075 inner.__doc__ += "\n*Notes*:\n Masked values are replaced by 0." 3076 innerproduct = inner 3077 TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' Everything being fresh from svn, I tried installing the maskedarray living in the sandbox, but I had no success either with the installation of timeseries. Cheers, David
Hi David On Tue, Jan 15, 2008 at 04:29:22PM -0500, David Huard wrote:
I am trying to install the maskedarray numpy branch for use with the timeseries package and I get the following error when importing numpy:
Before I try to find the problem: did you remove the previous numpy installation and build directories before installing? Regards Stéfan
2008/1/18, Stefan van der Walt <stefan@sun.ac.za>:
Hi David
On Tue, Jan 15, 2008 at 04:29:22PM -0500, David Huard wrote:
I am trying to install the maskedarray numpy branch for use with the timeseries package and I get the following error when importing numpy:
Before I try to find the problem: did you remove the previous numpy installation and build directories before installing?
Yes. I am not familiar with the subtleties of module importing, but here would be my guess. The error implies that numpy.inner.__doc__ is None. Now numpy's inner function seems to be defined in the multiarray.c module, and it's doc in add_newdocs.py. So is it possible that importation of the ma module happens before add_newdocs is called ? David Regards
Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Putting import add_newdocs before import ma seems to fix the ImportError, but I'm not sure if there could be undesirable side effects. David 2008/1/18, David Huard <david.huard@gmail.com>:
2008/1/18, Stefan van der Walt <stefan@sun.ac.za>:
Hi David
On Tue, Jan 15, 2008 at 04:29:22PM -0500, David Huard wrote:
I am trying to install the maskedarray numpy branch for use with the timeseries package and I get the following error when importing numpy:
Before I try to find the problem: did you remove the previous numpy installation and build directories before installing?
Yes. I am not familiar with the subtleties of module importing, but here would be my guess. The error implies that numpy.inner.__doc__ is None. Now numpy's inner function seems to be defined in the multiarray.c module, and it's doc in add_newdocs.py. So is it possible that importation of the ma module happens before add_newdocs is called ?
David
Regards
Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Stefan, It seems that the current maskedarray branch is not compatible with the current scipy trunk. Cheers, David 2008/1/18, David Huard <david.huard@gmail.com>:
Putting import add_newdocs before import ma
seems to fix the ImportError, but I'm not sure if there could be undesirable side effects.
David
2008/1/18, David Huard < david.huard@gmail.com>:
2008/1/18, Stefan van der Walt <stefan@sun.ac.za>:
Hi David
On Tue, Jan 15, 2008 at 04:29:22PM -0500, David Huard wrote:
I am trying to install the maskedarray numpy branch for use with the timeseries package and I get the following error when importing numpy:
Before I try to find the problem: did you remove the previous numpy installation and build directories before installing?
Yes. I am not familiar with the subtleties of module importing, but here would be my guess. The error implies that numpy.inner.__doc__ is None. Now numpy's inner function seems to be defined in the multiarray.cmodule, and it's doc in add_newdocs.py. So is it possible that importation of the ma module happens before add_newdocs is called ?
David
Regards
Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
2008/1/18, Stefan van der Walt <stefan@sun.ac.za>:
Hi David
On Fri, Jan 18, 2008 at 10:53:28AM -0500, David Huard wrote:
Stefan, It seems that the current maskedarray branch is not compatible with the current scipy trunk.
Would you mind expanding on that?
From memory it had something to do with a function in numpy, imported by scipy, called deprecate, that changed to deprecate_doc (or vice-versa).
Thanks
Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
David Huard -
Stefan van der Walt