Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
Here is the complete command lines in Windows 7: C:\Users\jankins>python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from scipy.sparse.linalg.eigen import eigen Traceback (most re

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread David Cournapeau
Jankins wrote: > Thanks so much. I have successfully installed scipy in Ubuntu 9.10. But > I still couldn't use scipy.sparse.linalg.eigen function. Please report *exactly* the suite of commands which is failing. For example, the following works for me: import numpy as np from scipy.sparse impor

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
Thanks so much. I have successfully installed scipy in Ubuntu 9.10. But I still couldn't use scipy.sparse.linalg.eigen function. The test result is : Ran 3490 tests in 40.268s FAILED (KNOWNFAIL=4, SKIP=28, failures=1) Thanks again. Jankins On 1/11/2010 10:33 PM, David Cournapeau wrote: > Jan

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread David Cournapeau
Jankins wrote: > > What should I do? And I couldn't even successfully install scipy in > Ubuntu 9.10 neither by "easy_install" or "source compilation". I am so > desperate. Don't use easy_install, and install from sources with python setup.py install, both numpy and scipy, after having instal

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread josef . pktd
On Mon, Jan 11, 2010 at 10:31 PM, Jankins wrote: > linalg has no attribute "eigen". You should post full tracebacks. I don't understand this error, because before eigen seemed to exist. You could run the test suite to see if the installation is ok and sparse is working correctly. >>> import sci

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
linalg has no attribute "eigen". Are you able to use scipy.sparse.linalg.eigen? My working dir is not inside scipy. It is 'C:\\Users\\jankins'. I am using Python 2.6.2 and the latest version of scipy. What should I do? And I couldn't even successfully install scipy in Ubuntu 9.10 neither by "

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread josef . pktd
On Mon, Jan 11, 2010 at 9:03 PM, Jankins wrote: > Here is the command line python: > >  >>> import scipy.sparse.linalg as linalg >  >>> >  >>> linalg.eigen() > Traceback (most recent call last): >   File "", line 1, in > TypeError: 'module' object is not callable >  >>> linalg.eigen.eigen ? I

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
Here is the command line python: >>> import scipy.sparse.linalg as linalg >>> >>> linalg.eigen() Traceback (most recent call last): File "", line 1, in TypeError: 'module' object is not callable >>> It's really wired. Jankins On 1/11/2010 7:53 PM, josef.p...@gmail.com wrote: > On Mon, J

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread josef . pktd
On Mon, Jan 11, 2010 at 7:16 PM, Jankins wrote: > I am sorry. My bad. > >   File "C:\test.py", line 7, in >     print linalg.eigen(M) > TypeError: 'module' object is not callable > > I installed "pythonxy". "pythonxy" has already included the scipy package. > > On 1/11/2010 6:12 PM, Robert Kern w

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
I am sorry. My bad. File "C:\test.py", line 7, in print linalg.eigen(M) TypeError: 'module' object is not callable I installed "pythonxy". "pythonxy" has already included the scipy package. On 1/11/2010 6:12 PM, Robert Kern wrote: > On Mon, Jan 11, 2010 at 18:03, Jankins wrote: > >

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Robert Kern
On Mon, Jan 11, 2010 at 18:03, Jankins wrote: > It is very simple code: > > import networkx as nx > import scipy.sparse.linalg as linalg > > G = nx.Graph() > G.add_star(range(9)) > M= nx.to_scipy_sparse_matrix(G) > print linalg.eigen(M) > > Thanks. Please post the complete traceback. -- Robert

Re: [Numpy-discussion] fromfile() -- aarrgg!

2010-01-11 Thread Christopher Barker
Pauli Virtanen wrote: > Thu, 07 Jan 2010 17:21:34 -0800, Christopher Barker wrote: > [clip] >> It does pass on that return value, but, from ctors.c: >> >> fromfile_next_element(FILE **fp, void *dptr, PyArray_Descr *dtype, >>void *NPY_UNUSED(stream_data)) >> { >> /* the

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
It is very simple code: import networkx as nx import scipy.sparse.linalg as linalg G = nx.Graph() G.add_star(range(9)) M= nx.to_scipy_sparse_matrix(G) print linalg.eigen(M) Thanks. Jankins On 1/11/2010 5:49 PM, Robert Kern wrote: > On Mon, Jan 11, 2010 at 17:44, Jankins wrote: > >> Hello,

Re: [Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Robert Kern
On Mon, Jan 11, 2010 at 17:44, Jankins wrote: > Hello, > > I want to use scipy.sparse.linalg.eigen function, but it keeps popping > out error message: > TypeError: 'module' object is not callable > > "eigen" is a module, but it has "__call__" method. Why couldn't I call > scipy.sparse.linalg.eigen

[Numpy-discussion] TypeError: 'module' object is not callable

2010-01-11 Thread Jankins
Hello, I want to use scipy.sparse.linalg.eigen function, but it keeps popping out error message: TypeError: 'module' object is not callable "eigen" is a module, but it has "__call__" method. Why couldn't I call scipy.sparse.linalg.eigen(...)? Thanks. Jankins __

Re: [Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

2010-01-11 Thread josef . pktd
On Mon, Jan 11, 2010 at 11:56 AM, denis wrote: > Only 2 of the 21 top-level subpackages draw that warning > with numpy-1.4.0-py2.6-python.org.dmg > scipy-0.7.1-py2.6-python.org.dmg > on my mac 10.4 ppc, python 2.6.4: > > try: >     import scipy.cluster > except ValueError, e: >     print "scipy.cl

Re: [Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

2010-01-11 Thread denis
Only 2 of the 21 top-level subpackages draw that warning with numpy-1.4.0-py2.6-python.org.dmg scipy-0.7.1-py2.6-python.org.dmg on my mac 10.4 ppc, python 2.6.4: try: import scipy.cluster except ValueError, e: print "scipy.cluster error", e try: import scipy.constants except ValueEr

[Numpy-discussion] savetxt only saves real part of complex

2010-01-11 Thread Neal Becker
Is this a bug? I think silently discarding the imaginary part is a bug. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

2010-01-11 Thread Pierre GM
On Jan 11, 2010, at 5:10 AM, Tim Michelsen wrote: > Hello, > I experienced the following issue with numpy 1.4: > ... > > Is this an error in numpy or no the other packages require update in the code? Let me guess, you just recently updated numpy ? I'd bet ybut forgot to recompile scipy and pyta

[Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

2010-01-11 Thread Tim Michelsen
Hello, I experienced the following issue with numpy 1.4: scipy.stats: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import scipy.stats as st Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\site-packages\scipy\stats\__init