From james2000 at etang.com Sun Sep 1 10:31:32 2002 From: james2000 at etang.com (james2000 at etang.com) Date: Sun, 1 Sep 2002 22:31:32 +0800 Subject: [SciPy-user] ADV: Harvest lots of E-mail addresses quickly ! Message-ID: <20020901143942.5F1793EAD2@www.scipy.com> An HTML attachment was scrubbed... URL: From james2000 at etang.com Sun Sep 1 10:31:33 2002 From: james2000 at etang.com (james2000 at etang.com) Date: Sun, 1 Sep 2002 22:31:33 +0800 Subject: [SciPy-user] ADV: Harvest lots of E-mail addresses quickly ! Message-ID: <20020901143943.474923EAD4@www.scipy.com> An HTML attachment was scrubbed... URL: From skip at pobox.com Tue Sep 3 20:34:19 2002 From: skip at pobox.com (Skip Montanaro) Date: Tue, 3 Sep 2002 19:34:19 -0500 Subject: [SciPy-user] forcing Sun's f77 instead of g77? Message-ID: <15733.21771.660875.468830@12-248-11-90.client.attbi.com> Trying to build SciPy on Solaris I get this output when compiling special/specfun/specfun.f: [ chunka, chunka, chunka, ... ] /home/skip/src/scipy/special/specfun/specfun.f: In subroutine `stvhv': /home/skip/src/scipy/special/specfun/specfun.f:12602: warning: `pu0' might be used uninitialized in this function /home/skip/src/scipy/special/specfun/specfun.f:12603: warning: `qu0' might be used uninitialized in this function /home/skip/src/scipy/special/specfun/specfun.f:12614: warning: `bf' might be used uninitialized in this function /home/skip/src/scipy/special/specfun/specfun.f:12617: warning: `byv' might be used uninitialized in this function /usr/ccs/bin/as: "/var/tmp/cc9skPsN.s", line 57958: error: constant value must be between -4096 and 4095 Scrolling back through the output I see that it's compiling with g77 but assembling with Sun's assembler. When I built Python I configured using --without-gcc. Is there anything similar to get the SciPy build to favor the vendor Fortran compiler over g77 short of renaming or deleting g77? Thx, -- Skip Montanaro skip at pobox.com From skip at pobox.com Tue Sep 3 23:25:11 2002 From: skip at pobox.com (Skip Montanaro) Date: Tue, 3 Sep 2002 22:25:11 -0500 Subject: [SciPy-user] How to coax link with fortran compiler? Message-ID: <15733.32023.160168.621276@12-248-11-90.client.attbi.com> How do I coax scipy_distutils to link with f77 or f90 instead of cc when linking Fortran object code into shared libraries? This is on a Solaris 8 system with Sun's Fortran compiler. I'm currently stuck with this error: cc -G build/temp.solaris-2.8-sun4u-2.2/fortranobject.o build/temp.solaris-2.8-sun4u-2.2/fblasmodule.o -L/usr/lib -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -L(null) -L7.0/lib -R(null) -R7.0/lib -lfblas -llapack -lblas -lc_misc -lcephes -lrootfind -lfsu -lF77 -lM77 -lsunmath -lm -o build/lib.solaris-2.8-sun4u-2.2/scipy/linalg/fblas.so -mimpure-text cc: Warning: illegal option -mimpure-text ld: fatal: library -lF77: not found ld: fatal: library -lM77: not found ld: fatal: File processing errors. No output written to build/lib.solaris-2.8-sun4u-2.2/scipy/linalg/fblas.so error: command 'cc' failed with exit status 1 Thanks, -- Skip Montanaro skip at pobox.com From pearu at cens.ioc.ee Wed Sep 4 01:50:55 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 4 Sep 2002 08:50:55 +0300 (EEST) Subject: [SciPy-user] forcing Sun's f77 instead of g77? In-Reply-To: <15733.21771.660875.468830@12-248-11-90.client.attbi.com> Message-ID: On Tue, 3 Sep 2002, Skip Montanaro wrote: > > Trying to build SciPy on Solaris I get this output when compiling > special/specfun/specfun.f: > > [ chunka, chunka, chunka, ... ] > /home/skip/src/scipy/special/specfun/specfun.f: In subroutine `stvhv': > /home/skip/src/scipy/special/specfun/specfun.f:12602: warning: `pu0' might be used uninitialized in this function > /home/skip/src/scipy/special/specfun/specfun.f:12603: warning: `qu0' might be used uninitialized in this function > /home/skip/src/scipy/special/specfun/specfun.f:12614: warning: `bf' might be used uninitialized in this function > /home/skip/src/scipy/special/specfun/specfun.f:12617: warning: `byv' might be used uninitialized in this function > /usr/ccs/bin/as: "/var/tmp/cc9skPsN.s", line 57958: error: constant value must be between -4096 and 4095 > > Scrolling back through the output I see that it's compiling with g77 but > assembling with Sun's assembler. When I built Python I configured using > --without-gcc. Is there anything similar to get the SciPy build to favor > the vendor Fortran compiler over g77 short of renaming or deleting g77? Use python setup.py build build_flib --fcompiler= where can be Absoft Sun SGI Intel Itanium NAG Compaq Digital Gnu VAST Pearu From pearu at cens.ioc.ee Wed Sep 4 02:05:30 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 4 Sep 2002 09:05:30 +0300 (EEST) Subject: [SciPy-user] How to coax link with fortran compiler? In-Reply-To: <15733.32023.160168.621276@12-248-11-90.client.attbi.com> Message-ID: Hi Skip, On Tue, 3 Sep 2002, Skip Montanaro wrote: > > How do I coax scipy_distutils to link with f77 or f90 instead of cc when > linking Fortran object code into shared libraries? This is on a Solaris 8 > system with Sun's Fortran compiler. I'm currently stuck with this error: > > cc -G build/temp.solaris-2.8-sun4u-2.2/fortranobject.o build/temp.solaris-2.8-sun4u-2.2/fblasmodule.o -L/usr/lib -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -L(null) -L7.0/lib -R(null) -R7.0/lib -lfblas -llapack -lblas -lc_misc -lcephes -lrootfind -lfsu -lF77 -lM77 -lsunmath -lm -o build/lib.solaris-2.8-sun4u-2.2/scipy/linalg/fblas.so -mimpure-text > cc: Warning: illegal option -mimpure-text > ld: fatal: library -lF77: not found > ld: fatal: library -lM77: not found > ld: fatal: File processing errors. No output written to build/lib.solaris-2.8-sun4u-2.2/scipy/linalg/fblas.so > error: command 'cc' failed with exit status 1 I have been recently told that with the recent Forte compilers one needs -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib specified for the linker. But Forte documentation recommends using f77 as a linker as you also suggest. I haven't done anything about fixing it because of lack of a testing platform. But now that you are on it, see in the file scipy/scipy_distutils/command/build_flib.py the definition of the sun_fortran_compiler class. To force another linker, add to it the following method def get_linker_so(self): return [self.f77_compiler,'-shared'] ^^^^^^^^^ this may need to be changed Could you also try commenting out the line self.library_dirs = self.find_lib_dir() in the __init__ method. Does the linkage work then? Also, could you check if all the libraries in self.libraries are needed? Often when using the vendor Fortran compiler as a linker, required libraries are automatically added. Thanks, Pearu From skip at pobox.com Wed Sep 4 10:40:46 2002 From: skip at pobox.com (Skip Montanaro) Date: Wed, 4 Sep 2002 09:40:46 -0500 Subject: [SciPy-user] division by 0 Message-ID: <15734.7022.164813.499919@12-248-11-90.client.attbi.com> Not sure whose responsibility this bit of code is, but Sun's C compiler reports a divide by zero here: cc -DNDEBUG -O -c /home/skip/src/scipy/special/cephes/kolmogorov.c -o build/temp.solaris-2.8-sun4u-2.2/kolmogorov.o "/home/skip/src/scipy/special/cephes/kolmogorov.c", line 47: warning: division by 0 FYI. -- Skip Montanaro skip at pobox.com From skip at pobox.com Wed Sep 4 12:07:15 2002 From: skip at pobox.com (Skip Montanaro) Date: Wed, 4 Sep 2002 11:07:15 -0500 Subject: [SciPy-user] forcing Sun's f77 instead of g77? In-Reply-To: References: <15733.21771.660875.468830@12-248-11-90.client.attbi.com> Message-ID: <15734.12211.470977.222181@12-248-11-90.client.attbi.com> >> Is there anything similar to get the SciPy build to favor the vendor >> Fortran compiler over g77 short of renaming or deleting g77? Pearu> Use Pearu> python setup.py build build_flib --fcompiler= Pearu> where can be Pearu> Absoft Pearu> Sun ... Thanks. This is not at all obvious from distutils. Also, it's not obvious that you can execute "build" followed by "build_flib" since the build command seems to subsume build_flib. Skip From pearu at cens.ioc.ee Wed Sep 4 12:42:50 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 4 Sep 2002 19:42:50 +0300 (EEST) Subject: [SciPy-user] forcing Sun's f77 instead of g77? In-Reply-To: <15734.12211.470977.222181@12-248-11-90.client.attbi.com> Message-ID: On Wed, 4 Sep 2002, Skip Montanaro wrote: > > >> Is there anything similar to get the SciPy build to favor the vendor > >> Fortran compiler over g77 short of renaming or deleting g77? > > Pearu> Use > Pearu> python setup.py build build_flib --fcompiler= > > Pearu> where can be > Pearu> Absoft > Pearu> Sun > ... > > Thanks. This is not at all obvious from distutils. Also, it's not obvious > that you can execute "build" followed by "build_flib" since the build > command seems to subsume build_flib. If I recall correctly, then distutils does not execute the commands while scanning the argument line. It first builds up some initial state while reading the arguments, and after finishing reading, it starts to execute the commands in the proper order. So, it does not matter what is the order of commands in the command line. However, the order of commands will matter when building up this initial state. This might be the reason why python setup.py build_flib --fcompiler= build will fail. I am not sure whether this is a bug or not. At least in scipy_distutils we had [**] to accept that "build" must become before "build_flib". [**] it worked in this way and there were more important issues to be resolved than digging into distutils internals. Pearu From vanandel at atd.ucar.edu Wed Sep 4 15:12:12 2002 From: vanandel at atd.ucar.edu (Joe Van Andel) Date: Wed, 04 Sep 2002 13:12:12 -0600 Subject: [SciPy-user] Sci-Py2 - where is breakfast and registration? Message-ID: <3D765B0C.3020908@atd.ucar.edu> I just looked on the workshop agenda and do not see what building I should go to for the breakfast and registration!! Please let us know (I'm leaving for the airport!) -- Joe VanAndel National Center for Atmospheric Research http://www.atd.ucar.edu/~vanandel/ Internet: vanandel at ucar dot edu "There are only 10 kinds of people in the world -- Those who understand binary, and those who don't." From travis at enthought.com Wed Sep 4 16:39:10 2002 From: travis at enthought.com (Travis N. Vaught) Date: Wed, 4 Sep 2002 15:39:10 -0500 Subject: [SciPy-user] Sci-Py2 - where is breakfast and registration? In-Reply-To: <3D765B0C.3020908@atd.ucar.edu> Message-ID: The Guggenheim Laboratory, Bldg. 45 is the location of the workshop. It is circled on the campus map here: http://www.scipy.org/site_content/scipy02/images/caltech_map_scipy.gif Travis > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]On > Behalf Of Joe Van Andel > Sent: Wednesday, September 04, 2002 2:12 PM > To: scipy-user at scipy.org > Subject: [SciPy-user] Sci-Py2 - where is breakfast and registration? > > > I just looked on the workshop agenda and do not see what building I > should go to for the breakfast and registration!! > > Please let us know (I'm leaving for the airport!) > > -- > Joe VanAndel > National Center for Atmospheric Research > http://www.atd.ucar.edu/~vanandel/ > Internet: vanandel at ucar dot edu > > "There are only 10 kinds of people in the world -- > Those who understand binary, and those who don't." > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From travis at enthought.com Wed Sep 4 17:30:57 2002 From: travis at enthought.com (Travis N. Vaught) Date: Wed, 4 Sep 2002 16:30:57 -0500 Subject: [SciPy-user] Sci-Py2 - where is breakfast and registration? In-Reply-To: <3D765B0C.3020908@atd.ucar.edu> Message-ID: The Guggenheim Laboratory, Bldg. 45 is the location of the workshop. It is circled on the campus map here: http://www.scipy.org/site_content/scipy02/images/caltech_map_scipy.gif Travis > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]On > Behalf Of Joe Van Andel > Sent: Wednesday, September 04, 2002 2:12 PM > To: scipy-user at scipy.org > Subject: [SciPy-user] Sci-Py2 - where is breakfast and registration? > > > I just looked on the workshop agenda and do not see what building I > should go to for the breakfast and registration!! > > Please let us know (I'm leaving for the airport!) > > -- > Joe VanAndel > National Center for Atmospheric Research > http://www.atd.ucar.edu/~vanandel/ > Internet: vanandel at ucar dot edu > > "There are only 10 kinds of people in the world -- > Those who understand binary, and those who don't." > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From nwagner at mecha.uni-stuttgart.de Thu Sep 5 04:07:44 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Thu, 05 Sep 2002 10:07:44 +0200 Subject: [SciPy-user] linear independent random vectors Message-ID: <3D7710D0.13C92B21@mecha.uni-stuttgart.de> Hi, How can I build a set of r (r < n) n-dimensional complex and linear independent random (uniformly distributed) vectors in scipy ? Nils Wagner From nmarais at hertz.ee.sun.ac.za Thu Sep 5 14:11:24 2002 From: nmarais at hertz.ee.sun.ac.za (Neilen) Date: 05 Sep 2002 20:11:24 +0200 Subject: [SciPy-user] Compiling Scipy-0.2.0_alpha_105.3699 on Debian Woody Message-ID: <1031249484.8634.556.camel@stoomtrein> Hi all. I'm trying to compile scipy on my Debian Woody box. I downloaded the Scipy-0.2.0_alpha_105.3699 tarball, extracted into /usr/local, and read INSTALL.txt. Then I downloaded ATLAS 3.4.1, and made the complete lapack library, as specified in http://math-atlas.sourceforge.net/errata.html#completelp, using the /usr/lib/liblapack.a file from the lapack-dev debian package. I then specified export BLAS=/usr/lib/sse/atlas/, and export ATLAS=/usr/local/src/ATLAS/lib/Linux_PIIISSE1/ on the command line, before executing python setup.py build This chugged away for a while, with some warnings, then python setup.py install was executed. However, when I then try to test the scipy module, I get brick at stoomtrein:/disk1/usr/local/src/blas-1.0$ python -i Python 2.1.3 (#1, Apr 20 2002, 10:14:34) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import scipy exceptions.ImportError: /usr/lib/python2.1/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgesv >>> scipy.test() does still seem to work, and gives: Ran 546 tests in 7.547s OK Is this acceptable? What am I not getting, and how may I fix it up? -- "The only good morning," Stallman growled, "is a dead one." --Richard Stallman, as quoted in http://www.crackmonkey.org/travel.html From pearu at cens.ioc.ee Thu Sep 5 15:07:19 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 5 Sep 2002 22:07:19 +0300 (EEST) Subject: [SciPy-user] Compiling Scipy-0.2.0_alpha_105.3699 on Debian Woody In-Reply-To: <1031249484.8634.556.camel@stoomtrein> Message-ID: On 5 Sep 2002, Neilen wrote: > Hi all. > > I'm trying to compile scipy on my Debian Woody box. I downloaded the > Scipy-0.2.0_alpha_105.3699 tarball, extracted into /usr/local, and read > INSTALL.txt. Then I downloaded ATLAS 3.4.1, and made the complete > lapack library, as specified in > http://math-atlas.sourceforge.net/errata.html#completelp, using the > /usr/lib/liblapack.a file from the lapack-dev debian package. > > I then specified export BLAS=/usr/lib/sse/atlas/, and export > ATLAS=/usr/local/src/ATLAS/lib/Linux_PIIISSE1/ on the command line, > before executing > > python setup.py build > > This chugged away for a while, with some warnings, then > > python setup.py install > > was executed. > > However, when I then try to test the scipy module, I get > > brick at stoomtrein:/disk1/usr/local/src/blas-1.0$ python -i > Python 2.1.3 (#1, Apr 20 2002, 10:14:34) > [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 > Type "copyright", "credits" or "license" for more information. > >>> import scipy > exceptions.ImportError: > /usr/lib/python2.1/site-packages/scipy/linalg/clapack.so: undefined > symbol: clapack_sgesv > >>> > > scipy.test() does still seem to work, This is because scipy uses flapack if importing clapack fails for some reasons. > Is this acceptable? What am I not getting, and how may I fix it up? A clue for a fix might be in the output of python scipy_distutils/system_info.py My guess is that when building clapack.so, /usr/lib/liblapack.a is used instead of $ATLAS/liblapack.a. The CVS version of SciPy should detect this and use the correct lapack library. I recommend getting scipy from CVS. If you prefer tar-ball then you must find a way to hide /usr/lib/liblapack.a from scipy_distutils/system_info.py by modifying scipy_distutils/site.cfg. Pearu From skip at pobox.com Thu Sep 5 15:13:43 2002 From: skip at pobox.com (Skip Montanaro) Date: Thu, 5 Sep 2002 14:13:43 -0500 Subject: [SciPy-user] A useful little debugging script... Message-ID: <15735.44263.326231.222162@12-248-11-90.client.attbi.com> While trying to track down unreferenced symbol errors on a Sun install of SciPy I wrote the attached Python script to quickly identify the location of such symbols. You run it like so: python findlibs.py or python findlibs.py -f pattern1 -f pattern2 ... It saves any patterns you give it, then analyzes the -L, -l and .o elements of the link command, and lists what it finds. Here's an example: $ python findlibs.py -f s_stop f90 build/temp.solaris-2.8-sun4u-2.2/fortranobject.o build/temp.solaris-2.8-sun4u-2.2/_flinalgmodule.o -L/home/skip/local/SunOS/lib/atlas -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -Lbuild/temp.solaris-2.8-sun4u-2.2 -L/opt/SUNWspro/prod/lib -L/home/skip/local/SunOS/lib -R/opt/SUNWspro/prod/lib -R/home/skip/local/SunOS/lib -l_flinalg -lfblas -llapack -lf77blas -lcblas -latlas -lfsu -lF77 -lM77 -lsunmath -lmvec -lf77compat -lm -o build/lib.solaris-2.8-sun4u-2.2/scipy/linalg/_flinalg.so -Bdynamic -G Dirs: /home/skip/local/SunOS/lib /opt/SUNWspro/prod/lib /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2 /home/skip/local/SunOS/lib/atlas /usr/lib /usr/ccs/lib Libs: /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2/lib_flinalg.a /home/skip/src/scipy/build/temp.solaris-2.8-sun4u-2.2/libfblas.a /home/skip/local/SunOS/lib/atlas/liblapack.a 0000000000 U s_stop /home/skip/local/SunOS/lib/atlas/libf77blas.a /home/skip/local/SunOS/lib/atlas/libcblas.a /home/skip/local/SunOS/lib/atlas/libatlas.a /opt/SUNWspro/prod/lib/libfsu.a /home/skip/local/SunOS/lib/libF77.so 0000039648 T __s_stop 0000039392 T __s_stop_nv 0000000000 f s_stop.c 0000000000 f s_stop_nv.c /home/skip/local/SunOS/lib/libM77.so /opt/SUNWspro/prod/lib/libsunmath.a /opt/SUNWspro/prod/lib/libmvec.a /opt/SUNWspro/prod/lib/libf77compat.a /opt/SUNWspro/prod/lib/libf77compat.a[s_stop.o]: 0000000016 T __s_stop 0000000088 T __s_stop_p 0000000000 f s_stop.c /opt/SUNWspro/prod/lib/libf77compat.a[s_stop_nv.o]: 0000000016 T __s_stop_nv 0000000096 T __s_stop_p_nv 0000000000 f s_stop_nv.c /usr/lib/libm.a Objects: build/temp.solaris-2.8-sun4u-2.2/fortranobject.o build/temp.solaris-2.8-sun4u-2.2/_flinalgmodule.o This identified the source of the unresolved symbol - s_stop in this case - much more quickly than I could have done so by hand. In fact, writing and debugging the script was probably faster than manually performing the search once. I made no stab at portability, but it should be easy to adapt to other varieties of Unix (different nm flags and possibly different shared library extensions). It is, as they say, a 90% solution. ;-) Cheers, -- Skip Montanaro skip at pobox.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/octet-stream Size: 1525 bytes Desc: symbol finder URL: From wagner.nils at vdi.de Thu Sep 5 16:12:16 2002 From: wagner.nils at vdi.de (My VDI Freemail) Date: Thu, 05 Sep 2002 22:12:16 +0200 Subject: [SciPy-user] Matrix Market I/O in scipy Message-ID: <20020905202033.C57E53EACE@www.scipy.com> Hi, Is there any module to aid in reading and writing matrices in Matrix Market format ? Any advice ? Nils Wagner http://math.nist.gov/MatrixMarket/index.html for further details regarding the Matrix Market. From pearu at cens.ioc.ee Fri Sep 6 03:52:09 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Fri, 6 Sep 2002 10:52:09 +0300 (EEST) Subject: [SciPy-user] Matrix Market I/O in scipy In-Reply-To: <20020905202033.C57E53EACE@www.scipy.com> Message-ID: On Thu, 5 Sep 2002, My VDI Freemail wrote: > > Hi, > > Is there any module to aid in reading and writing matrices > in Matrix Market format ? Not that I know of. But the format seems to be simple. It should be easy to read and write MM format files from Python. > Any advice ? How about writing a Python wrapper for "ANSI C library for Matrix Market I/O" http://math.nist.gov/MatrixMarket/mmio-c.html and contributing it to scipy.io module? Pearu From nwagner at mecha.uni-stuttgart.de Fri Sep 6 04:23:27 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Fri, 06 Sep 2002 10:23:27 +0200 Subject: [SciPy-user] Matrix Market I/O in scipy References: Message-ID: <3D7865FF.1196DBA3@mecha.uni-stuttgart.de> Pearu Peterson schrieb: > > On Thu, 5 Sep 2002, My VDI Freemail wrote: > > > > > Hi, > > > > Is there any module to aid in reading and writing matrices > > in Matrix Market format ? > > Not that I know of. But the format seems to be simple. It should be easy > to read and write MM format files from Python. > > > Any advice ? > > How about writing a Python wrapper for "ANSI C library for Matrix Market > I/O" > > http://math.nist.gov/MatrixMarket/mmio-c.html > > and contributing it to scipy.io module? > > Pearu Thank you for your reply. However I am far from being an expert in this field. Therefore I would be obliged if someone else can do that. Nils > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From photography at themail.com Fri Sep 6 22:03:54 2002 From: photography at themail.com (Irmingard Anna) Date: Fri, 06 Sep 2002 22:03:54 Subject: [SciPy-user] New York Remembrance 911 Message-ID: REMEMBER NEW YORK 911 http://beam.to/remembrance911 If compelled leave a sign in my guestbook. Irmingard Anna From Marketinges at eyou.com Sat Sep 7 01:32:24 2002 From: Marketinges at eyou.com (Mailserver) Date: Sat, 7 Sep 2002 13:32:24 +0800 Subject: [SciPy-user] Emissionsreport Message-ID: <20020907054037.84D2C3EAD2@www.scipy.com> An HTML attachment was scrubbed... URL: From lmk2g at mail.com Sat Sep 7 10:45:20 2002 From: lmk2g at mail.com (LAURENT MPETI KABILA) Date: Sat, 7 Sep 2002 16:45:20 +0200 Subject: [SciPy-user] please kindly get back to me Message-ID: <20020907145338.268893EACE@www.scipy.com> REQUEST FOR URGENT BUSINESS ASSISTANCE -------------------------------------- Your contact was availed to me by the chamber of commerce. It was given to me because of my diplomatic status as I did not disclose the actual reasons for which I sought your contact. But I was assured That you are reputable and trustworthy if you will be of assistance. I am Laurent Mpeti Kabila (Jnr) the second son of Late President LAURENT DESIRE KABILA the immediate Past president of the DEMOCRATIC REPUBLIC OF CONGO in Africa who was murdered by his opposition through his personal bodyguards in his bedroom on Tuesday 16th January, 2001. I have the privilege of being mandated by my father colleagues to seek your immediate and urgent co-operation to receive into your bank account the sum of US $25m.(twenty-five million Dollars) and some thousands carats of Diamond. This money and treasures was lodged in a vault with a security firm in Europe and South-Africa. SOURCES OF DIAMONDS AND FUND In August 2000, my father as a defence minister and president has a meeting with his cabinet and armychief about the defence budget for 2000 to 2001 which was US $700m. so he directed one of his best friend. Frederic Kibasa Maliba who was a minister of mines and a political party leader known as the Union Sacree de, I opposition radicale et ses allies (USORAL) to buy arms with US $200m on 5th January 2001; for him to finalized the arms deal, my father was murdered. f.K. Maliba (FKM) and I have decided to keep the money with a foreigner after which he will use it to contest for the political election. Inspite of all this we have resolved to present your or your company for the firm to pay it into your nominated account the above sum and diamonds. This transaction should be finalized within seven (7) working days and for your co-operation and partnership, we have unanimously agreed that you will be entitled to 5.5% of the money when successfully receive it in your account. The nature of your business is not relevant to the successful execution of this transaction what we require is your total co-operation and commitment to ensure 100% risk-free transaction at both ends and to protect the persons involved in this transaction, strict confidence and utmost secrecy is required even after the successful conclusion of this transaction. If this proposal is acceptable to you, kindly provide me with your personal telephone and fax through my E-mail box for immediate commencement of the transaction. All correspondence is for the attention of my counsel:cliff roberts, I count on your honour to keep my secret, SECRET. Looking forward for your urgent reply Thanks. Best Regards MPETI L. KABILA (Jnr) From gordon at mirsl.ecs.umass.edu Tue Sep 10 09:33:51 2002 From: gordon at mirsl.ecs.umass.edu (Gordon Farquharson) Date: Tue, 10 Sep 2002 13:33:51 +0000 (UTC) Subject: [SciPy-user] xplt problem Message-ID: Hi I am trying this code segment in a script (disp.py). If I run it using python2 disp.py it pops up a plot window but does not display the plot. However, if I try the same command sequence in the python command interpreter, it works. Am I doing something wrong ? --- disp.py --- from scipy import xplt from scipy import * from time import sleep x = arange(0,10.0,0.5) y = special.j1(x) xplt.plot(x,y) sleep(2) --- end cut --- -- Gordon Farquharson Microwave Remote Sensing Laboratory (MIRSL) University of Massachusetts, Amherst gordon at mirsl.ecs.umass.edu From pearu at cens.ioc.ee Tue Sep 10 10:01:51 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 10 Sep 2002 17:01:51 +0300 (EEST) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: On Tue, 10 Sep 2002, Gordon Farquharson wrote: > Hi > > I am trying this code segment in a script (disp.py). If I run it using > > python2 disp.py > > it pops up a plot window but does not display the plot. However, if I try > the same command sequence in the python command interpreter, it works. Am > I doing something wrong ? No. But try python2 -i disp.py or put the following line after xplt.plot command: raw_input('Press any key to continue...') HTH, Pearu From gordon at mirsl.ecs.umass.edu Tue Sep 10 10:29:15 2002 From: gordon at mirsl.ecs.umass.edu (Gordon Farquharson) Date: Tue, 10 Sep 2002 14:29:15 +0000 (UTC) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: Hi Pearu Both suggestions work. Thanks. But why doesn't the original code ? Gordon On Tue, 10 Sep 2002, Pearu Peterson wrote: > > On Tue, 10 Sep 2002, Gordon Farquharson wrote: > > > Hi > > > > I am trying this code segment in a script (disp.py). If I run it using > > > > python2 disp.py > > > > it pops up a plot window but does not display the plot. However, if I try > > the same command sequence in the python command interpreter, it works. Am > > I doing something wrong ? > > No. But try > > python2 -i disp.py > > or put the following line after xplt.plot command: > > raw_input('Press any key to continue...') > > HTH, > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > -- Gordon Farquharson Microwave Remote Sensing Laboratory (MIRSL) University of Massachusetts, Amherst gordon at mirsl.ecs.umass.edu From pearu at cens.ioc.ee Tue Sep 10 10:43:08 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 10 Sep 2002 17:43:08 +0300 (EEST) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: On Tue, 10 Sep 2002, Gordon Farquharson wrote: > Hi Pearu > > Both suggestions work. Thanks. But why doesn't the original code ? Actually also the original code works. But all happens so quick that you won't notice until python has already stopped (and closed the plotting windows). ;) The suggestions just postponed the python stoppage until either you quit python (with ^D or whatever) or python quits after finishing the raw_input command. Pearu From oliphant at ee.byu.edu Tue Sep 10 11:08:23 2002 From: oliphant at ee.byu.edu (Travis Oliphant) Date: Tue, 10 Sep 2002 09:08:23 -0600 (MDT) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: > Hi > > I am trying this code segment in a script (disp.py). If I run it using > > python2 disp.py > > it pops up a plot window but does not display the plot. However, if I try > the same command sequence in the python command interpreter, it works. Am > I doing something wrong ? > > --- disp.py --- > > from scipy import xplt > from scipy import * > > from time import sleep > > x = arange(0,10.0,0.5) > y = special.j1(x) > > xplt.plot(x,y) > > sleep(2) You are not doing anything wrong. xplt needs the python interpreter to continue running to show the plot. If you were at the python prompt and did import disp it would show fine. You can save eps files from a script though, so you can batch plotting. Try doing xplt.eps('somefile') after the plot command. This should save out somefile.eps in the current directory. -Travis Oliphant From gordon at mirsl.ecs.umass.edu Tue Sep 10 11:50:50 2002 From: gordon at mirsl.ecs.umass.edu (Gordon Farquharson) Date: Tue, 10 Sep 2002 15:50:50 +0000 (UTC) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: Hi Pearu But what about the sleep statement in the original ? Doesn't this give it enough time to complete plotting ? ( I tried increasing it from 2 seconds to 10) Thanks. Gordon On Tue, 10 Sep 2002, Pearu Peterson wrote: > > On Tue, 10 Sep 2002, Gordon Farquharson wrote: > > > Hi Pearu > > > > Both suggestions work. Thanks. But why doesn't the original code ? > > Actually also the original code works. > But all happens so quick that you won't notice until python has already > stopped (and closed the plotting windows). ;) > The suggestions just postponed the python stoppage until either you quit > python (with ^D or whatever) or python quits after finishing the raw_input > command. > > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > -- Gordon Farquharson Microwave Remote Sensing Laboratory (MIRSL) University of Massachusetts, Amherst gordon at mirsl.ecs.umass.edu From pearu at cens.ioc.ee Tue Sep 10 12:23:23 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 10 Sep 2002 19:23:23 +0300 (EEST) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: On Tue, 10 Sep 2002, Gordon Farquharson wrote: > Hi Pearu > > But what about the sleep statement in the original ? Doesn't this give it > enough time to complete plotting ? ( I tried increasing it from 2 seconds > to 10) Sleep stops execution of Python for given seconds. While with raw_input python is alive and waiting for users input. It seems that plot needs some time to display the graph, raw_input gives that time while sleep just stops time. Pearu From gordon at mirsl.ecs.umass.edu Tue Sep 10 12:37:39 2002 From: gordon at mirsl.ecs.umass.edu (Gordon Farquharson) Date: Tue, 10 Sep 2002 16:37:39 +0000 (UTC) Subject: [SciPy-user] xplt problem In-Reply-To: Message-ID: Hi On reflection, this makes sense. Thanks very much for all your help. Gordon On Tue, 10 Sep 2002, Pearu Peterson wrote: > > On Tue, 10 Sep 2002, Gordon Farquharson wrote: > > > Hi Pearu > > > > But what about the sleep statement in the original ? Doesn't this give it > > enough time to complete plotting ? ( I tried increasing it from 2 seconds > > to 10) > > Sleep stops execution of Python for given seconds. While with raw_input > python is alive and waiting for users input. It seems that plot > needs some time to display the graph, raw_input gives that time while > sleep just stops time. > > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > -- Gordon Farquharson Microwave Remote Sensing Laboratory (MIRSL) University of Massachusetts, Amherst gordon at mirsl.ecs.umass.edu From perrin at MSLI.com Tue Sep 10 14:22:55 2002 From: perrin at MSLI.com (Perrin Meyer) Date: Tue, 10 Sep 2002 11:22:55 -0700 Subject: [SciPy-user] problem with getting F2Py to work Message-ID: <3D7E387F.1090001@MSLI.com> Hi. I recently attended the Scientific Python conference at CalTech, and there I was told about the F2Py package for wrapping numerical C/Fortran code for use in Python. I'm having a little trouble getting it working. I'm trying to wrap the simple C function psmtest.c: extern void psmtestfunc(double * A,int *m) { int i; for (i=0 ; i < *m ; i++) { A[i] = A[i] * 0.4534534e-13; } } I use the Fortran 90 Signature file psmtest.pyf: python module perrin interface subroutine psmtestfunc(A,m) integer m real*8 A(m) end subroutine psmtestfunc end interface end module perrin ________________________________________________________________________ which creates the perrinmodule.c file (attached). I compile with: gcc -shared -o perrinmodule.so -I /home/perrin/PYTHON_INSTALL/include/python2.2/ -I /home/perrin/PYTHON_INSTALL/lib/python2.2/site-packages/f2py2e/src/ \ -L /home/perrin/PYTHON_INSTALL/lib/python2.2/site-packages/Numeric psmtest.c perrinmodule.c to create the file perrinmodule.so When I try to import the module into Python, I get the following error message: [perrin at wave PSM_TEST]$ psmpython Python 2.2.1 (#1, Aug 23 2002, 12:31:50) [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from Numeric import * >>> import Numeric >>> from perrin import * Traceback (most recent call last): File "", line 1, in ? ImportError: ./perrinmodule.so: undefined symbol: array_from_pyobj >>> I guess I'm probably linking wrong? I don't know much about creating shared object libraries. Once I get it working, F2Py looks like it will be a very powerful package for including C code in python. Sincerely, Perrin Meyer -- Perrin Meyer Computational Acoustics http://www.meyersound.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: perrinmodule.c URL: From pearu at cens.ioc.ee Tue Sep 10 17:02:39 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 11 Sep 2002 00:02:39 +0300 (EEST) Subject: [SciPy-user] problem with getting F2Py to work In-Reply-To: <3D7E387F.1090001@MSLI.com> Message-ID: On Tue, 10 Sep 2002, Perrin Meyer wrote: > Hi. > > I recently attended the Scientific Python conference at CalTech, and > there I was told about the F2Py package for wrapping numerical > C/Fortran code for use in Python. > > I'm having a little trouble getting it working. > > I'm trying to wrap the simple C function psmtest.c: > > extern void psmtestfunc(double * A,int *m) { > int i; > for (i=0 ; i < *m ; i++) { > A[i] = A[i] * 0.4534534e-13; > } > } > > I use the Fortran 90 Signature file psmtest.pyf: > > python module perrin > interface > subroutine psmtestfunc(A,m) > integer m > real*8 A(m) > end subroutine psmtestfunc > end interface > end module perrin You are almost there. Use the following signature file: python module perrin interface subroutine psmtestfunc(a,m) intent(c) psmtestfunc integer intent(hide),depend(a) :: m = len(a) real*8 intent(in,out) :: a(m) end subroutine psmtestfunc end interface end module perrin Few comments: `intent(c) psmtestfunc' --- tells to f2py that psmtestfunc is a C function `intent(hide)' --- tells to f2py not to include m to the argument list... `depend(a) :: m = len(a)' --- ... because the value of m is determined by the argument a. `intent(in,out) :: a' --- a is input and after running the C function it should be returned. >From this pyf file f2py generates a function that is equivalent to the following Python function: def psmtestfunc(a): a = a * 0.4534534e-13 return a > ________________________________________________________________________ > > which creates the perrinmodule.c file (attached). > > I compile with: > > gcc -shared -o perrinmodule.so -I > /home/perrin/PYTHON_INSTALL/include/python2.2/ -I > /home/perrin/PYTHON_INSTALL/lib/python2.2/site-packages/f2py2e/src/ \ > -L /home/perrin/PYTHON_INSTALL/lib/python2.2/site-packages/Numeric > psmtest.c perrinmodule.c > > to create the file perrinmodule.so Use f2py to build the extension module as follows: f2py -c psmtest.pyf psmtest.c This should create perrin.so into the current directory. Now run python and try the following session: >>> import perrin >>> perrin.psmtestfunc([1,2,3,4]) array([ 4.53453400e-14, 9.06906800e-14, 1.36036020e-13, 1.81381360e-13]) >>> print perrin.psmtestfunc.__doc__ > When I try to import the module into Python, I get the following error > message: > > [perrin at wave PSM_TEST]$ psmpython > Python 2.2.1 (#1, Aug 23 2002, 12:31:50) > [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from Numeric import * > >>> import Numeric > >>> from perrin import * > Traceback (most recent call last): > File "", line 1, in ? > ImportError: ./perrinmodule.so: undefined symbol: array_from_pyobj > >>> > > I guess I'm probably linking wrong? I don't know much about creating > shared object libraries. f2py provides array_from_pyobj that is in f2py2e/src/fortranobject.c. However, if you use `f2py -c' to build extension modules then f2py does the "right" thing automatically. Regards, Pearu From topkeun at hotmail.com Tue Sep 10 19:02:24 2002 From: topkeun at hotmail.com (=?ks_c_5601-1987?B?udogsdk=?=) Date: Tue, 10 Sep 2002 23:02:24 +0000 Subject: [SciPy-user] zeta domain error? Message-ID: Can someone help me with this. Please? I'm using python 2.2 with scipy version '0.2.0_alpha_105.3699' on a win32. The problem is, I got this error message when I'm trying to use scipy. >>> from Numeric import * >>> import scipy zeta domain error >>> and then any scipy command wouldn't work. I think it is a threading issue but I'm not really sure how to track it down nor how to fix it. Can someone give me some hints as to where I might look. Thanks for any help! _________________________________________________________________ ?? ????? ?? ?? ??? ?????, ???? ??? ?? ????? ??? ?????. http://englishtown.msn.co.kr From perrin at MSLI.com Wed Sep 11 14:09:01 2002 From: perrin at MSLI.com (Perrin Meyer) Date: Wed, 11 Sep 2002 11:09:01 -0700 Subject: [SciPy-user] F2Py works great, thanks Pearu! + numarray question Message-ID: <3D7F86BD.8020204@MSLI.com> The helpful suggestions of Pearu Peterson got my test c code working great in Python, thanks! A quick question: currently, F2Py works with Numeric, but when the replacement module numarray is ready, will it be "easy" to get F2Py to work with it? Are there plans to have F2Py support numarray ? Thanks again, Perrin -- Perrin Meyer Computational Acoustics http://www.meyersound.com From eric at enthought.com Wed Sep 11 15:02:02 2002 From: eric at enthought.com (eric jones) Date: Wed, 11 Sep 2002 14:02:02 -0500 Subject: [SciPy-user] F2Py works great, thanks Pearu! + numarray question In-Reply-To: <3D7F86BD.8020204@MSLI.com> Message-ID: <000101c259c5$b68564e0$6b01a8c0@ericlaptop> Hey Perrin, Perry Greenfield and I discussed the larger issue of Numeric vs. numarray compatibility on the C level at the workshop. The current memory layout of the new and old C structure are different, but he thought it was likely the layout could be made similar -- with numarray having a few extra flags added to the end of the structure. This would make backward compatibility much easier overall. I'm still unsure of how endian-ness and memory mapped support figure into things. Todd Miller said that he had converted FFT, LinearAlgebra, and RandomArray in the Numeric distribution to numarray compatibilitiy, so fixing things is obviously possible. So, if it is possible (and I think it is), it is safe to say that some future version of f2py will support numarray. The possible move to numarray certainly makes me glad SciPy has mostly f2py wrapped code. If we get f2py working with numarray, then it will make the conversion of SciPy to numarray much easier. Converting hand wrapped code would (will) be much more of a pain. See ya, Eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Perrin Meyer > Sent: Wednesday, September 11, 2002 1:09 PM > To: scipy-user at scipy.net > Subject: [SciPy-user] F2Py works great, thanks Pearu! + numarray question > > The helpful suggestions of Pearu Peterson got my test c code working great > in Python, thanks! > > A quick question: currently, F2Py works with Numeric, but when the > replacement module numarray is ready, will it be "easy" to get F2Py to > work with it? Are there plans to have F2Py support numarray ? > > Thanks again, > > Perrin > > > -- > Perrin Meyer Computational Acoustics http://www.meyersound.com > > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From pearu at cens.ioc.ee Wed Sep 11 15:07:19 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 11 Sep 2002 22:07:19 +0300 (EEST) Subject: [SciPy-user] F2Py works great, thanks Pearu! + numarray question In-Reply-To: <3D7F86BD.8020204@MSLI.com> Message-ID: On Wed, 11 Sep 2002, Perrin Meyer wrote: > A quick question: currently, F2Py works with Numeric, but when the > replacement module numarray is ready, will it be "easy" to get F2Py to > work with it? Are there plans to have F2Py support numarray ? Yes, there are plans to support numarray, eventually. I haven't looked into details much but one of the design decisions in numarray worries me and may make it more difficult for f2py to fully support numarray in short term. Namely, according to the essay in http://www.pfdubois.com/numpy/ the properties of numarray arrays are immutable. In order to manage the difference in Fortran and C data ordering, f2py temporarily resets the strides of an array when preparing arrays to be passed over to Fortran. Now with the immutability of array properties, f2py cannot use this established approach anymore (though, I don't see how one can force immutability in the C context...). The authors of the above essay suggest using a python wrapper if some extension module needs to change the strides of an array in C. For f2py, I don't think it would be a feasible solution. Regardless above, I'll look forward when numarray C/API will be finished and documented so that I could start implementing its support in f2py. However, I think it would took at least a year or few before we could leave Numeric. Pearu From jmiller at stsci.edu Wed Sep 11 15:54:23 2002 From: jmiller at stsci.edu (Todd Miller) Date: Wed, 11 Sep 2002 15:54:23 -0400 Subject: [SciPy-user] F2Py works great, thanks Pearu! + numarray question References: Message-ID: <3D7F9F6F.5020404@stsci.edu> Pearu Peterson wrote: >Namely, according to the essay in > > http://www.pfdubois.com/numpy/ > >the properties of numarray arrays are immutable. In order to >manage the difference in Fortran and C data ordering, f2py temporarily >resets the strides of an array when preparing arrays to be passed over to >Fortran. Now with the immutability of array properties, f2py cannot use >this established approach anymore (though, I don't see how one can force >immutability in the C context...). > I haven't looked at f2py, but the interface files for it in SciPy look really nice. I think what the essay was trying to say is that extension functions which use the numpy compatability interface cannot mutate array properties and have the mutations reflected back into python. With that restriction, it should still be possible to temporarily modify the strides, and then restore them when you're done. What you can't do at the moment, is write a function like "reshape" in C, because all of the shape and stride permutations are thrown away on exit from the extension function. This may change in the future. The numarray C-API may soon change fairly dramatically as we adopt C basetypes to improve performance. Much of the API as it stands now was written to support operation on pre-2.2 Pythons with much of numarray still written in Python. I would wait until the next numarray major release before bothering to look at the C-API. Todd > > >Pearu > > >_______________________________________________ >SciPy-user mailing list >SciPy-user at scipy.net >http://www.scipy.net/mailman/listinfo/scipy-user > -- Todd Miller jmiller at stsci.edu STSCI / SSG From mailstop at melcon-c.com Thu Sep 12 04:47:05 2002 From: mailstop at melcon-c.com (mailstop at melcon-c.com) Date: Thu, 12 Sep 2002 17:47:05 +0900 Subject: [SciPy-user] =?ISO-2022-JP?B?GyRCTCQ+NUJ6OS05cCIoJEEkZyRDJEgbKEI=?= H=?ISO-2022-JP?B?GyRCJEpOeD9NGyhC?= GET=?ISO-2022-JP?B?GyRCISohKhsoQg==?= Message-ID: <20020912084705.XNHP17976.mta5p@n8g0f1> <$B;v6H(B>$B-k%(%/%7%9(B<$BAw?.$B-k%(%/%7%9(B<$BAw?.$B!!(Bhttp://plaza15.mbn.or.jp/~1234/ $B$3$N(B???$B$O9-9p$G$9!#G[?.ITMW$NJ}$O(B mailstop at melcon-c.com $BKx$4O"Mm2<$5$$!#G[?.$rDd;_CW$7$^$9(B($BI,$:G[?.Dd;_$9$k%"%I%l%9$G$4JV?.2<$5$$!K(B H$B$J=w$N;R5^A}Cf!*:#$,%A%c%s%9!*(B http://www.melcon-c.com $BB(%"%]B3=P!*(B http://www.melcon-c.com $B$^$:$OEPO?$7$F$M!*(B http://www.melcon-c.com From mailstop at melcon-c.com Thu Sep 12 04:47:05 2002 From: mailstop at melcon-c.com (mailstop at melcon-c.com) Date: Thu, 12 Sep 2002 17:47:05 +0900 Subject: [SciPy-user] =?ISO-2022-JP?B?GyRCTCQ+NUJ6OS05cCIoJEEkZyRDJEgbKEI=?= H=?ISO-2022-JP?B?GyRCJEpOeD9NGyhC?= GET=?ISO-2022-JP?B?GyRCISohKhsoQg==?= Message-ID: <20020912084705.HHUW10177.mta6p@n8g0f1> <$B;v6H(B>$B-k%(%/%7%9(B<$BAw?.$B-k%(%/%7%9(B<$BAw?.$B!!(Bhttp://plaza15.mbn.or.jp/~1234/ $B$3$N(B???$B$O9-9p$G$9!#G[?.ITMW$NJ}$O(B mailstop at melcon-c.com $BKx$4O"Mm2<$5$$!#G[?.$rDd;_CW$7$^$9(B($BI,$:G[?.Dd;_$9$k%"%I%l%9$G$4JV?.2<$5$$!K(B H$B$J=w$N;R5^A}Cf!*:#$,%A%c%s%9!*(B http://www.melcon-c.com $BB(%"%]B3=P!*(B http://www.melcon-c.com $B$^$:$OEPO?$7$F$M!*(B http://www.melcon-c.com From nwagner at mecha.uni-stuttgart.de Thu Sep 12 09:34:03 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Thu, 12 Sep 2002 15:34:03 +0200 Subject: [SciPy-user] Generalized eigenvalue problem --> linalg.eig Message-ID: <3D8097CB.DBF1B9AB@mecha.uni-stuttgart.de> Hi, Is there any normalization with respect to the the generalized eigenvectors vl, vr ? A vr = \lambda B vr A^\top vl = \lambda B^\top vl I cannot find a hint in help(linalg.eig) Nils >>> help(linalg.eig) eig(a, b=None, left=0, right=1, overwrite_a=0, overwrite_b=0) Solve ordinary and generalized eigenvalue problem of a square matrix. Inputs: a -- An N x N matrix. b -- An N x N matrix [default is identity(N)]. left -- Return left eigenvectors [disabled]. right -- Return right eigenvectors [enabled]. Outputs: w -- eigenvalues [left==right==0]. w,vr -- w and right eigenvectors [left==0,right=1]. w,vl -- w and left eigenvectors [left==1,right==0]. w,vl,vr -- [left==right==1]. Definitions: a * vr[:,i] = w[i] * b * vr[:,i] a^H * vl[:,i] = conjugate(w[i]) * b^H * vl[:,i] where a^H denotes transpose(conjugate(a)). From pearu at cens.ioc.ee Thu Sep 12 09:42:38 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 12 Sep 2002 16:42:38 +0300 (EEST) Subject: [SciPy-user] Generalized eigenvalue problem --> linalg.eig In-Reply-To: <3D8097CB.DBF1B9AB@mecha.uni-stuttgart.de> Message-ID: On Thu, 12 Sep 2002, Nils Wagner wrote: > Hi, > > Is there any normalization with respect to the > the generalized eigenvectors vl, vr ? > > A vr = \lambda B vr > A^\top vl = \lambda B^\top vl > > I cannot find a hint in help(linalg.eig) > The underlying LAPACK function is ?ggev and according to its documentation: """ * Each eigenvector will be scaled so the largest component have * abs(real part)+abs(imag. part)=1. """ Pearu From nwagner at mecha.uni-stuttgart.de Thu Sep 12 10:05:06 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Thu, 12 Sep 2002 16:05:06 +0200 Subject: [SciPy-user] Generalized eigenvalue problem --> linalg.eig References: Message-ID: <3D809F12.2431E9D6@mecha.uni-stuttgart.de> Pearu Peterson schrieb: > > On Thu, 12 Sep 2002, Nils Wagner wrote: > > > Hi, > > > > Is there any normalization with respect to the > > the generalized eigenvectors vl, vr ? > > > > A vr = \lambda B vr > > A^\top vl = \lambda B^\top vl > > > > I cannot find a hint in help(linalg.eig) > > > > The underlying LAPACK function is ?ggev and according to its > documentation: > """ > * Each eigenvector will be scaled so the largest component have > * abs(real part)+abs(imag. part)=1. > """ > This kind of normalization is not very meaningful. Instead of this, I suggest something like V_l^\top A V_r = \diag{a_i} V_l^\top B V_r = diag{b_i} BTW, what will happen in case of a defective matrix ? Nils > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From pearu at cens.ioc.ee Thu Sep 12 10:21:55 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 12 Sep 2002 17:21:55 +0300 (EEST) Subject: [SciPy-user] Generalized eigenvalue problem --> linalg.eig In-Reply-To: <3D809F12.2431E9D6@mecha.uni-stuttgart.de> Message-ID: On Thu, 12 Sep 2002, Nils Wagner wrote: > Pearu Peterson schrieb: > > > > On Thu, 12 Sep 2002, Nils Wagner wrote: > > > > > Hi, > > > > > > Is there any normalization with respect to the > > > the generalized eigenvectors vl, vr ? > > > > > > A vr = \lambda B vr > > > A^\top vl = \lambda B^\top vl > > > > > > I cannot find a hint in help(linalg.eig) > > > > > > > The underlying LAPACK function is ?ggev and according to its > > documentation: > > """ > > * Each eigenvector will be scaled so the largest component have > > * abs(real part)+abs(imag. part)=1. > > """ > > > This kind of normalization is not very meaningful. Hmm, I guess the meaning depends on the application. > Instead of this, I suggest something like > > V_l^\top A V_r = \diag{a_i} V_l^\top B V_r = diag{b_i} Hmm, I am not sure if we want to diverge from the LAPACK conventsion. I think, normalization is always a matter of choice. Some prefer one to another. If we decide to use different normalization from the LAPACK one, then it would add extra burden to other users that either don't care or need a different normalization. So, I would leave re-normalization to the users space. Other opinions? > BTW, what will happen in case of a defective matrix ? I am not sure. But you can try out what will happen. Pearu From oliphant at ee.byu.edu Tue Sep 17 12:19:47 2002 From: oliphant at ee.byu.edu (Travis Oliphant) Date: Tue, 17 Sep 2002 10:19:47 -0600 (MDT) Subject: [SciPy-user] Scipy Testing in an infinite loop In-Reply-To: <3D66493B.18704A38@mecha.uni-stuttgart.de> Message-ID: SciPy testing currently runs in an infinite loop for me. Not sure why. import scipy scipy.test() just keeps running repeating how it's building tests for the different files. Is this happening to anyone else? -Travis O. From jcao at cs.uchicago.edu Tue Sep 17 12:48:59 2002 From: jcao at cs.uchicago.edu (Jing (George) Cao) Date: Tue, 17 Sep 2002 11:48:59 -0500 (CDT) Subject: [SciPy-user] newbie ask for help Message-ID: hi, guys, Can anybody tell me how to change WEAVE install directory in Linux machine? I have no access to /opt, so I want to install it in my home directory. Thanks Jing. From lovers at 99-81.com Tue Sep 17 12:49:51 2002 From: lovers at 99-81.com (=?ISO-2022-JP?B?GyRCJWklUCE8JTobKEIg?=) Date: Wed, 18 Sep 2002 01:49:51 +0900 Subject: [SciPy-user] =?ISO-2022-JP?B?GyRCTCQ+NUJ6OS05cCIoM1okNyQkGyhCTG92ZXJz?= =?ISO-2022-JP?B?GyRCOCskRCQxJF4kNyRnISobKEI=?= Message-ID: <20020917.1649510091@lovers-99-81.com> ???? ?????????412-5 080-1900-2983 ?????????????? ????????????????? stop-lovers at 99-81.com ????????? ???????????????????????? ?????????????? ????????????????????? ??3???????????????????!! ?????????????????????????!! ????????!!?????????!! ?????????????????!!!! http://www.i-lovers.net/ ?????????!! ???????????50?????????!!!! ??????????????????!! http://www.i-lovers.net/ ???????????????????????? ??????????????? ????????????????????????????? stop-lovers at 99-81.com ????????? From pearu at cens.ioc.ee Tue Sep 17 12:50:00 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 17 Sep 2002 19:50:00 +0300 (EEST) Subject: [SciPy-user] Scipy Testing in an infinite loop In-Reply-To: Message-ID: On Tue, 17 Sep 2002, Travis Oliphant wrote: > > SciPy testing currently runs in an infinite loop for me. Not sure why. > > import scipy > scipy.test() > > just keeps running repeating how it's building tests for the different > files. > > Is this happening to anyone else? Same here. It appears that weave tests cause this loop (I haven't check the details though) as scipy.linalg.test(1) scipy.stats.test(1) scipy.optimize.test(1) etc run fine but scipy.weave.test(1) runs into infinite loop. Pearu From pearu at cens.ioc.ee Tue Sep 17 12:58:24 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 17 Sep 2002 19:58:24 +0300 (EEST) Subject: [SciPy-user] newbie ask for help In-Reply-To: Message-ID: On Tue, 17 Sep 2002, Jing (George) Cao wrote: > hi, guys, > > Can anybody tell me how to change WEAVE install directory in Linux > machine? > > I have no access to /opt, so I want to install it in my home directory. Use ./setup.py install --home and make sure that PYTHONPATH is properly set. See ./setup.py install --help and Python Installation manuals for more information. Pearu From skip at pobox.com Tue Sep 17 14:06:49 2002 From: skip at pobox.com (Skip Montanaro) Date: Tue, 17 Sep 2002 13:06:49 -0500 Subject: [SciPy-user] Scipy Testing in an infinite loop In-Reply-To: References: <3D66493B.18704A38@mecha.uni-stuttgart.de> Message-ID: <15751.28473.789297.742935@12-248-11-90.client.attbi.com> Travis> SciPy testing currently runs in an infinite loop for me. Not Travis> sure why. ... Travis> Is this happening to anyone else? I've been wondering why the build on the Sun took so looooong. All this time I thought it was the slow machine or lack of memory. Based on Pearu's response about weave problems, I wonder if something I checked in hosed things. (I did change the directory structure so that multiple users on the same machine can build weave modules.) Skip From eric at enthought.com Tue Sep 17 14:24:58 2002 From: eric at enthought.com (eric jones) Date: Tue, 17 Sep 2002 13:24:58 -0500 Subject: [SciPy-user] Scipy Testing in an infinite loop In-Reply-To: <15751.28473.789297.742935@12-248-11-90.client.attbi.com> Message-ID: <000001c25e77$874ffa80$6b01a8c0@ericlaptop> Not sure what the issue is. I did make a change last night to weave concerning the location of testing.py, but it should cause failures, not infinite loops do to an import error (I haven't moved the actual file yet.) I remember seeing this a looong time ago. I think it had something to do with the test harness. Seems like it "just started working" after tinkering though, and I never found the real problem. I'll spend some time on that this afternoon and try to chase it down. Also, weave has had many changes in the last few days so that could also be of issue. On testing.py's location. After further consideration, I think it should live in its own package as Travis O. suggests. Pearu is right that much of the scipy_distutils stuff could be folded back into distutils and so that package might actually disappear. I think its total disappearance is unlikely, but scipy_testing still makes prtty good sense. This is going to touch *a lot* of code. I will be making the change today. eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Skip Montanaro > Sent: Tuesday, September 17, 2002 1:07 PM > To: scipy-user at scipy.net > Subject: Re: [SciPy-user] Scipy Testing in an infinite loop > > > Travis> SciPy testing currently runs in an infinite loop for me. Not > Travis> sure why. > ... > Travis> Is this happening to anyone else? > > I've been wondering why the build on the Sun took so looooong. All this > time I thought it was the slow machine or lack of memory. > > Based on Pearu's response about weave problems, I wonder if something I > checked in hosed things. (I did change the directory structure so that > multiple users on the same machine can build weave modules.) > > Skip > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From jcao at cs.uchicago.edu Tue Sep 17 16:37:22 2002 From: jcao at cs.uchicago.edu (Jing (George) Cao) Date: Tue, 17 Sep 2002 15:37:22 -0500 (CDT) Subject: [SciPy-user] newbie ask for help In-Reply-To: Message-ID: Thanks, I installed it now, but It still doesn't work. I typed: python setup.py install --home /home/jcao/weavelib >>>sys.path.append('/home/jcao/weavelib/lib/python') >>>import weave >>>weave.test() Traceback (most recent call last): File "", line 1, in ? File "weave/__init__.py", line 20, in test import unittest ImportError: No module named unittest what's going on here? I try the trivial printf example of Inline, it doesn't work either. error: Traceback (most recent call last): File "", line 1, in ? File "weave/inline_tools.py", line 275, in inline call_frame = sys._getframe().f_back AttributeError: _getframe Thank you very much for your help Jing. On Tue, 17 Sep 2002, Pearu Peterson wrote: > > On Tue, 17 Sep 2002, Jing (George) Cao wrote: > > > hi, guys, > > > > Can anybody tell me how to change WEAVE install directory in Linux > > machine? > > > > I have no access to /opt, so I want to install it in my home directory. > > Use > > ./setup.py install --home > > and make sure that PYTHONPATH is properly set. > > See > ./setup.py install --help > and Python Installation manuals for more information. > > Pearu > > > > > > > > > > > > > > > > > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From eric at enthought.com Tue Sep 17 16:50:16 2002 From: eric at enthought.com (eric jones) Date: Tue, 17 Sep 2002 15:50:16 -0500 Subject: [SciPy-user] newbie ask for help In-Reply-To: Message-ID: <000101c25e8b$d40afc30$6b01a8c0@ericlaptop> Hey Jing, What version of Python are you on? Unittest is part of the standard python library as of Python 2.1. That is the oldest version of Python that weave and scipy are tested against. eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Jing (George) Cao > Sent: Tuesday, September 17, 2002 3:37 PM > To: scipy-user at scipy.net > Subject: Re: [SciPy-user] newbie ask for help > > Thanks, I installed it now, but It still doesn't work. > > I typed: python setup.py install --home /home/jcao/weavelib > > >>>sys.path.append('/home/jcao/weavelib/lib/python') > > >>>import weave > > >>>weave.test() > Traceback (most recent call last): > File "", line 1, in ? > File "weave/__init__.py", line 20, in test > import unittest > ImportError: No module named unittest > > what's going on here? I try the trivial printf example of Inline, it > doesn't work either. > > error: Traceback (most recent call last): > File "", line 1, in ? > File "weave/inline_tools.py", line 275, in inline > call_frame = sys._getframe().f_back > AttributeError: _getframe > > Thank you very much for your help > > Jing. > > > > On Tue, 17 Sep 2002, Pearu Peterson wrote: > > > > > On Tue, 17 Sep 2002, Jing (George) Cao wrote: > > > > > hi, guys, > > > > > > Can anybody tell me how to change WEAVE install directory in Linux > > > machine? > > > > > > I have no access to /opt, so I want to install it in my home > directory. > > > > Use > > > > ./setup.py install --home > > > > and make sure that PYTHONPATH is properly set. > > > > See > > ./setup.py install --help > > and Python Installation manuals for more information. > > > > Pearu > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From jcao at cs.uchicago.edu Tue Sep 17 17:00:28 2002 From: jcao at cs.uchicago.edu (Jing (George) Cao) Date: Tue, 17 Sep 2002 16:00:28 -0500 (CDT) Subject: [SciPy-user] newbie ask for help In-Reply-To: <000101c25e8b$d40afc30$6b01a8c0@ericlaptop> Message-ID: version 2.95.1 what is module zlib and where is it? following error message always appears It seems i met some difficulties while starting using weave. Thank you any way. >>> import weave Traceback (most recent call last): File "", line 1, in ? File "/u1/jcao/lib/python/weave/__init__.py", line 13, in ? from inline_tools import inline File "/u1/jcao/lib/python/weave/inline_tools.py", line 4, in ? import ext_tools File "/u1/jcao/lib/python/weave/ext_tools.py", line 10, in ? import catalog File "/u1/jcao/lib/python/weave/catalog.py", line 42, in ? import dumb_shelve as shelve File "/u1/jcao/lib/python/weave/dumb_shelve.py", line 2, in ? import zlib ImportError: No module named zlib On Tue, 17 Sep 2002, eric jones wrote: > Hey Jing, > > What version of Python are you on? Unittest is part of the standard > python library as of Python 2.1. That is the oldest version of Python > that weave and scipy are tested against. > > eric > > > -----Original Message----- > > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] > On > > Behalf Of Jing (George) Cao > > Sent: Tuesday, September 17, 2002 3:37 PM > > To: scipy-user at scipy.net > > Subject: Re: [SciPy-user] newbie ask for help > > > > Thanks, I installed it now, but It still doesn't work. > > > > I typed: python setup.py install --home /home/jcao/weavelib > > > > >>>sys.path.append('/home/jcao/weavelib/lib/python') > > > > >>>import weave > > > > >>>weave.test() > > Traceback (most recent call last): > > File "", line 1, in ? > > File "weave/__init__.py", line 20, in test > > import unittest > > ImportError: No module named unittest > > > > what's going on here? I try the trivial printf example of Inline, it > > doesn't work either. > > > > error: Traceback (most recent call last): > > File "", line 1, in ? > > File "weave/inline_tools.py", line 275, in inline > > call_frame = sys._getframe().f_back > > AttributeError: _getframe > > > > Thank you very much for your help > > > > Jing. > > > > > > > > On Tue, 17 Sep 2002, Pearu Peterson wrote: > > > > > > > > On Tue, 17 Sep 2002, Jing (George) Cao wrote: > > > > > > > hi, guys, > > > > > > > > Can anybody tell me how to change WEAVE install directory in > Linux > > > > machine? > > > > > > > > I have no access to /opt, so I want to install it in my home > > directory. > > > > > > Use > > > > > > ./setup.py install --home > > > > > > and make sure that PYTHONPATH is properly set. > > > > > > See > > > ./setup.py install --help > > > and Python Installation manuals for more information. > > > > > > Pearu > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-user mailing list > > > SciPy-user at scipy.net > > > http://www.scipy.net/mailman/listinfo/scipy-user > > > > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From eric at enthought.com Tue Sep 17 18:03:15 2002 From: eric at enthought.com (eric jones) Date: Tue, 17 Sep 2002 17:03:15 -0500 Subject: [SciPy-user] newbie ask for help In-Reply-To: Message-ID: <000401c25e96$058eb8a0$6b01a8c0@ericlaptop> Hey Jing, > version 2.95.1 This is the version of gcc I presume. Python version would be one of the following 1.52, 2.0, 2.1.x, 2.2.x. It is not up to 2.95 yet. When you start python, the displayed banner should tell you the version. [eric at enthoughtaus1 eric]$ python Python 2.2 (#1, Apr 12 2002, 15:29:57) [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> > > what is module zlib and where is it? > following error message always appears > It seems i met some difficulties while starting using weave. It does. I think the issue is that you have an "incomplete" version of Python. So far, nothing looks to be weave's fault (those may come later...). Zlib is also a standard module for python, although if you built python yourself, you do have to configure it to include zlib. All standard installations will include it. Really, Dave B. should get you a better setup. One kind of decrepit system is he making you work on. :-) eric > > Thank you any way. > > >>> import weave > Traceback (most recent call last): > File "", line 1, in ? > File "/u1/jcao/lib/python/weave/__init__.py", line 13, in ? > from inline_tools import inline > File "/u1/jcao/lib/python/weave/inline_tools.py", line 4, in ? > import ext_tools > File "/u1/jcao/lib/python/weave/ext_tools.py", line 10, in ? > import catalog > File "/u1/jcao/lib/python/weave/catalog.py", line 42, in ? > import dumb_shelve as shelve > File "/u1/jcao/lib/python/weave/dumb_shelve.py", line 2, in ? > import zlib > ImportError: No module named zlib > > > > > On Tue, 17 Sep 2002, eric jones wrote: > > > Hey Jing, > > > > What version of Python are you on? Unittest is part of the standard > > python library as of Python 2.1. That is the oldest version of Python > > that weave and scipy are tested against. > > > > eric > > > > > -----Original Message----- > > > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] > > On > > > Behalf Of Jing (George) Cao > > > Sent: Tuesday, September 17, 2002 3:37 PM > > > To: scipy-user at scipy.net > > > Subject: Re: [SciPy-user] newbie ask for help > > > > > > Thanks, I installed it now, but It still doesn't work. > > > > > > I typed: python setup.py install --home /home/jcao/weavelib > > > > > > >>>sys.path.append('/home/jcao/weavelib/lib/python') > > > > > > >>>import weave > > > > > > >>>weave.test() > > > Traceback (most recent call last): > > > File "", line 1, in ? > > > File "weave/__init__.py", line 20, in test > > > import unittest > > > ImportError: No module named unittest > > > > > > what's going on here? I try the trivial printf example of Inline, it > > > doesn't work either. > > > > > > error: Traceback (most recent call last): > > > File "", line 1, in ? > > > File "weave/inline_tools.py", line 275, in inline > > > call_frame = sys._getframe().f_back > > > AttributeError: _getframe > > > > > > Thank you very much for your help > > > > > > Jing. > > > > > > > > > > > > On Tue, 17 Sep 2002, Pearu Peterson wrote: > > > > > > > > > > > On Tue, 17 Sep 2002, Jing (George) Cao wrote: > > > > > > > > > hi, guys, > > > > > > > > > > Can anybody tell me how to change WEAVE install directory in > > Linux > > > > > machine? > > > > > > > > > > I have no access to /opt, so I want to install it in my home > > > directory. > > > > > > > > Use > > > > > > > > ./setup.py install --home > > > > > > > > and make sure that PYTHONPATH is properly set. > > > > > > > > See > > > > ./setup.py install --help > > > > and Python Installation manuals for more information. > > > > > > > > Pearu > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > SciPy-user mailing list > > > > SciPy-user at scipy.net > > > > http://www.scipy.net/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > > SciPy-user mailing list > > > SciPy-user at scipy.net > > > http://www.scipy.net/mailman/listinfo/scipy-user > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From pearu at cens.ioc.ee Tue Sep 17 18:14:18 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 18 Sep 2002 01:14:18 +0300 (EEST) Subject: [SciPy-user] newbie ask for help In-Reply-To: Message-ID: On Tue, 17 Sep 2002, Jing (George) Cao wrote: > error: Traceback (most recent call last): > File "", line 1, in ? > File "weave/inline_tools.py", line 275, in inline > call_frame = sys._getframe().f_back > AttributeError: _getframe Clearly, Jing is running pre 2.1 python. Eric, if you wish to have a weave support for python 2.0, then in scipy_distutils/misc_util.py there is a function get_frame that you could use to overcome the attribute error above. Pearu From nwagner at mecha.uni-stuttgart.de Wed Sep 18 07:34:38 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Wed, 18 Sep 2002 13:34:38 +0200 Subject: [SciPy-user] ?ggev linalg.eig Message-ID: <3D8864CE.ED21974B@mecha.uni-stuttgart.de> Hi, I have used linalg.eig to compute the eigenvalues and left/right eigenvectors of a matrix pencil, that is A x = lambda B x A, B are real and nonsymmetric w, vl, vr = linalg.eig(A,B,left=1,right=1) However, I am puzzled by building the Rayleigh quotient R z = dot(vl[:,i],dot(A,vr[:,i])) n = dot(vl[:,i],dot(B,vr[:,i])) R = z/n Again, this should yield the eigenvalues but it doesn't. Any idea ? Nils From pearu at cens.ioc.ee Wed Sep 18 07:50:05 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 18 Sep 2002 14:50:05 +0300 (EEST) Subject: [SciPy-user] ?ggev linalg.eig In-Reply-To: <3D8864CE.ED21974B@mecha.uni-stuttgart.de> Message-ID: On Wed, 18 Sep 2002, Nils Wagner wrote: > Hi, > > I have used linalg.eig to compute the eigenvalues and left/right > eigenvectors > of a matrix pencil, that is > > A x = lambda B x > > A, B are real and nonsymmetric > > w, vl, vr = linalg.eig(A,B,left=1,right=1) > > However, I am puzzled by building the Rayleigh quotient R > > z = dot(vl[:,i],dot(A,vr[:,i])) > n = dot(vl[:,i],dot(B,vr[:,i])) > R = z/n > > Again, this should yield the eigenvalues but it doesn't. > Any idea ? Why do you use in the definition of R both vl and vr? AFAIK, R is defined through z = dot(v[:,i],dot(A,v[:,i])) n = dot(v[:,i],dot(B,v[:,i])) R = z/n where v is either vl or vr. Pearu From nwagner at mecha.uni-stuttgart.de Wed Sep 18 08:33:22 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Wed, 18 Sep 2002 14:33:22 +0200 Subject: [SciPy-user] ?ggev linalg.eig References: Message-ID: <3D887292.9EDF6697@mecha.uni-stuttgart.de> Pearu Peterson schrieb: > > On Wed, 18 Sep 2002, Nils Wagner wrote: > > > Hi, > > > > I have used linalg.eig to compute the eigenvalues and left/right > > eigenvectors > > of a matrix pencil, that is > > > > A x = lambda B x > > > > A, B are real and nonsymmetric > > > > w, vl, vr = linalg.eig(A,B,left=1,right=1) > > > > However, I am puzzled by building the Rayleigh quotient R > > > > z = dot(vl[:,i],dot(A,vr[:,i])) > > n = dot(vl[:,i],dot(B,vr[:,i])) > > R = z/n > > > > Again, this should yield the eigenvalues but it doesn't. > > Any idea ? > > Why do you use in the definition of R both vl and vr? > AFAIK, R is defined through > > z = dot(v[:,i],dot(A,v[:,i])) > n = dot(v[:,i],dot(B,v[:,i])) > R = z/n > > where v is either vl or vr. > Generally speaking v is an arbitrary test vector. In case of nonsymmetric matrices (and presuming A and B are diagonalizable) there are two orthogonality conditions A x = \lambda B x x = VR q (Transformation) A VR q = \lambda B VR q VL^\top A VR q = \lambda VL^\top B VR q diag(a_i) q = \lambda \diag(b_i) q VL^\top A VR = diag(a_i) VL^\top B VR = diag(b_i) \lambda_i = a_i/b_i For further details concerning the generalized Rayleigh quotient, please have a look at http://etna.mcs.kent.edu/vol.7.1998/pp182-189.dir/pp182-189.pdf Nils > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From nwagner at mecha.uni-stuttgart.de Wed Sep 18 08:53:31 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Wed, 18 Sep 2002 14:53:31 +0200 Subject: [SciPy-user] ?ggev linalg.eig References: <3D887292.9EDF6697@mecha.uni-stuttgart.de> Message-ID: <3D88774B.E7D6E934@mecha.uni-stuttgart.de> Nils Wagner schrieb: > > Pearu Peterson schrieb: > > > > On Wed, 18 Sep 2002, Nils Wagner wrote: > > > > > Hi, > > > > > > I have used linalg.eig to compute the eigenvalues and left/right > > > eigenvectors > > > of a matrix pencil, that is > > > > > > A x = lambda B x > > > > > > A, B are real and nonsymmetric > > > > > > w, vl, vr = linalg.eig(A,B,left=1,right=1) > > > > > > However, I am puzzled by building the Rayleigh quotient R > > > > > > z = dot(vl[:,i],dot(A,vr[:,i])) > > > n = dot(vl[:,i],dot(B,vr[:,i])) > > > R = z/n > > > > > > Again, this should yield the eigenvalues but it doesn't. > > > Any idea ? > > > > Why do you use in the definition of R both vl and vr? > > AFAIK, R is defined through > > > > z = dot(v[:,i],dot(A,v[:,i])) > > n = dot(v[:,i],dot(B,v[:,i])) > > R = z/n > > > > where v is either vl or vr. > > > Generally speaking v is an arbitrary test vector. > In case of nonsymmetric matrices (and presuming A and B are > diagonalizable) > there are two orthogonality conditions > > A x = \lambda B x > > x = VR q (Transformation) > > A VR q = \lambda B VR q > > VL^\top A VR q = \lambda VL^\top B VR q > > diag(a_i) q = \lambda \diag(b_i) q > > VL^\top A VR = diag(a_i) > VL^\top B VR = diag(b_i) > > \lambda_i = a_i/b_i > > For further details concerning the generalized Rayleigh quotient, please > have a look at > > http://etna.mcs.kent.edu/vol.7.1998/pp182-189.dir/pp182-189.pdf > > Nils If I use z = dot(conjugate(vl[:,i]),dot(A,vr[:,i])) n = dot(conjugate(vl[:,i]),dot(B,vr[:,i])) R = z/n everything is o.k., but I don't know why ? A and B are real in my example. Why shall I use conjugate of vl in that case ? Nils > > > Pearu > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From pearu at cens.ioc.ee Wed Sep 18 08:58:39 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Wed, 18 Sep 2002 15:58:39 +0300 (EEST) Subject: [SciPy-user] ?ggev linalg.eig In-Reply-To: <3D88774B.E7D6E934@mecha.uni-stuttgart.de> Message-ID: On Wed, 18 Sep 2002, Nils Wagner wrote: > > For further details concerning the generalized Rayleigh quotient, please > > have a look at > > > > http://etna.mcs.kent.edu/vol.7.1998/pp182-189.dir/pp182-189.pdf > > > > Nils > > If I use > > z = dot(conjugate(vl[:,i]),dot(A,vr[:,i])) > n = dot(conjugate(vl[:,i]),dot(B,vr[:,i])) > R = z/n > > everything is o.k., but I don't know why ? > A and B are real in my example. > Why shall I use conjugate of vl in that case ? Read your own reference ;) ..^H is transpose(conjugate(..)) Pearu From nwagner at mecha.uni-stuttgart.de Thu Sep 19 08:49:19 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Thu, 19 Sep 2002 14:49:19 +0200 Subject: [SciPy-user] ?ggev linalg.eig References: Message-ID: <3D89C7CF.294CD22B@mecha.uni-stuttgart.de> Pearu Peterson schrieb: > > On Wed, 18 Sep 2002, Nils Wagner wrote: > > > > For further details concerning the generalized Rayleigh quotient, please > > > have a look at > > > > > > http://etna.mcs.kent.edu/vol.7.1998/pp182-189.dir/pp182-189.pdf > > > > > > Nils > > > > If I use > > > > z = dot(conjugate(vl[:,i]),dot(A,vr[:,i])) > > n = dot(conjugate(vl[:,i]),dot(B,vr[:,i])) > > R = z/n > > > > everything is o.k., but I don't know why ? > > A and B are real in my example. > > Why shall I use conjugate of vl in that case ? > > Read your own reference ;) > > ..^H is transpose(conjugate(..)) > > Pearu The reference refers to a complex matrix A. I have run my example using Matlab. The matrices A and B are real in my case and can be diagonalized simultaneously by premultiplying with the true transpose (and n o t conjugate transpose). What is going on in scipy ? Nils ndof=2 Omegax = 0.9 Omegaz = 1.1 Omega = 0.5 gammax = 0.02 gammaz = 0.02 mu = 0.05 M=[1.0 0.0; 0.0 1.0] S=[0.0 1.0; 0.0 0.0] K=[Omegax^2, -Omega^2;-Omega^2 , Omegaz^2] D = [gammax, 0.0;0.0, gammaz] A(1:ndof,1:ndof) = M; A(ndof+1:2*ndof,ndof+1:2*ndof) = -K - mu*S B(ndof+1:2*ndof,1:ndof) = M; B(1:ndof,ndof+1:2*ndof) = M; B(ndof+1:2*ndof,ndof+1:2*ndof) = D % % Right eigenvalue problelm % [V,D] = eig(A,B,'qz'); % % Left eigenvalue problem % [W,D1] = eig(A',B','qz'); % & % When you do X' in matlab it is actually a conjugate transpose % if X is complex. % % To get a true transpose you have to do X.' % By doing conj(X)' you are doing conj-conj-transpose which is .' % d1=conj(W)'*A*V; d2=conj(W)'*B*V; l = d1*inv(d2) % % Simultaneous Diagonalization % d1=W.'*A*V; d2=W.'*B*V; l = d1*inv(d2) > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From nwagner at mecha.uni-stuttgart.de Thu Sep 19 09:08:12 2002 From: nwagner at mecha.uni-stuttgart.de (Nils Wagner) Date: Thu, 19 Sep 2002 15:08:12 +0200 Subject: [SciPy-user] linalg.eig Message-ID: <3D89CC3C.8D43C9C3@mecha.uni-stuttgart.de> Hi, To finish the discussion on linalg.eig ... w, vl, vr = linalg.eig(A,B,left=1,right=1) Please correct me, but I guess that the output of linalg.eig(A,B,left=1,right=1) is as follows vr are the right eigenvectors but vl are the complex c o n j u g a t e left eigenvectors Nils From pearu at cens.ioc.ee Thu Sep 19 11:49:50 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 19 Sep 2002 18:49:50 +0300 (EEST) Subject: [SciPy-user] linalg.eig In-Reply-To: <3D89CC3C.8D43C9C3@mecha.uni-stuttgart.de> Message-ID: On Thu, 19 Sep 2002, Nils Wagner wrote: > Hi, > > To finish the discussion on linalg.eig ... > > w, vl, vr = linalg.eig(A,B,left=1,right=1) > > Please correct me, but I guess that the output of > linalg.eig(A,B,left=1,right=1) > is as follows > > vr are the right eigenvectors > > but vl are the complex c o n j u g a t e left eigenvectors Yes, you are right. This is also what linalg.eig.__doc__ says. Note that linalg.eig uses LAPACK convention. In matrix notation, we have w, vl, vr = linalg.eig(a,b,left=1,right=1) such that a * vr = d * b * vr a^H * vl = d^H * b^H * vl or vl^H * a = d * vl^H * b where `*' denotes matrix multiplication and d is a diagonal matrix of eigenvalues: d = diag(w). Pearu From skip at pobox.com Thu Sep 19 15:37:34 2002 From: skip at pobox.com (Skip Montanaro) Date: Thu, 19 Sep 2002 14:37:34 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? Message-ID: <15754.10110.524315.625132@12-248-11-90.client.attbi.com> I just got this warning: .../scipy/linalg/lapack.py:24: UserWarning: exceptions.ImportError: No \ module named clapack so I went and grabbed CLAPACK and am in the process of building it. It seems to be creating a lapack_.a file just like vanilla LAPACK does. I see no mention of it in the SciPy install notes. Am I barking up the wrong tree? If so, what do I do to get a clapack module in SciPy? Thx, -- Skip Montanaro - skip at pobox.com The need for gutters to be cleaned is directly proportional to how hard it happens to be raining at the moment. From pearu at cens.ioc.ee Thu Sep 19 15:51:10 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 19 Sep 2002 22:51:10 +0300 (EEST) Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: <15754.10110.524315.625132@12-248-11-90.client.attbi.com> Message-ID: On Thu, 19 Sep 2002, Skip Montanaro wrote: > > I just got this warning: > > .../scipy/linalg/lapack.py:24: UserWarning: exceptions.ImportError: No \ > module named clapack > > so I went and grabbed CLAPACK and am in the process of building it. It > seems to be creating a lapack_.a file just like vanilla LAPACK > does. I see no mention of it in the SciPy install notes. Am I barking up > the wrong tree? If so, what do I do to get a clapack module in SciPy? Yes, that's a wrong tree. clapack module is actually a wrapper for atlas library (hmm, may be we should rename clapack to atlas?). Anyway, how and where did you install atlas? What is the output of python scipy_distutils/system_info.py ? Pearu From skip at pobox.com Thu Sep 19 16:01:37 2002 From: skip at pobox.com (Skip Montanaro) Date: Thu, 19 Sep 2002 15:01:37 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: References: <15754.10110.524315.625132@12-248-11-90.client.attbi.com> Message-ID: <15754.11553.945593.939151@12-248-11-90.client.attbi.com> Pearu> Yes, that's a wrong tree. clapack module is actually a wrapper Pearu> for atlas library (hmm, may be we should rename clapack to Pearu> atlas?). Anyway, how and where did you install atlas? What is the Pearu> output of Pearu> python scipy_distutils/system_info.py Pearu> ? Renaming clapack to atlas seems like a no-brainer to me, but I don't have to worry much about backward compatibility. At the moment I don't have Atlas installed. I'm just using stock lapack and blas. I guess it's time to revisit building atlas. Thanks, Skip From pearu at cens.ioc.ee Thu Sep 19 16:17:38 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Thu, 19 Sep 2002 23:17:38 +0300 (EEST) Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: <15754.11553.945593.939151@12-248-11-90.client.attbi.com> Message-ID: On Thu, 19 Sep 2002, Skip Montanaro wrote: > Renaming clapack to atlas seems like a no-brainer to me, but I don't have to > worry much about backward compatibility. Sorry, I don't understand what do you mean by no-brainer within this context. English is not my first language and sometimes I don't get its slang... > At the moment I don't have Atlas installed. I'm just using stock > lapack and blas. I guess it's time to revisit building atlas. Using atlas instead of stock lapack/blas can give upto 10 times speed up for linalg functions. But if that is not important, then one needs not to build atlas, linalg still has the same functionality based on Fortran lapack. Pearu From skip at pobox.com Thu Sep 19 18:00:46 2002 From: skip at pobox.com (Skip Montanaro) Date: Thu, 19 Sep 2002 17:00:46 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: References: <15754.11553.945593.939151@12-248-11-90.client.attbi.com> Message-ID: <15754.18702.840989.329325@12-248-11-90.client.attbi.com> >> Renaming clapack to atlas seems like a no-brainer to me, but I don't >> have to worry much about backward compatibility. Pearu> Sorry, I don't understand what do you mean by no-brainer within Pearu> this context. English is not my first language and sometimes I Pearu> don't get its slang... It means it seems obvious to me that a module related to atlas should be named "atlas", not "clapack". In the absence of any other constraints (like backward compatibility issues) I'd change it immediately. This is a bit off-topic, but you might find Wayne Magnuson's idioms website useful: http://home.t-online.de/home/toni.goeller/idiom_wm/ He doesn't have "no brainer". He is fairly responsive. I'll suggest he add it. >> At the moment I don't have Atlas installed. I'm just using stock >> lapack and blas. I guess it's time to revisit building atlas. Pearu> Using atlas instead of stock lapack/blas can give upto 10 times Pearu> speed up for linalg functions. But if that is not important, then Pearu> one needs not to build atlas, linalg still has the same Pearu> functionality based on Fortran lapack. Speed isn't an issue for me. All I'm worried about is getting SciPy and friends built. ;-) Still, I have an atlas build going now. Should be finished in about 10 hours... Skip From eric at enthought.com Thu Sep 19 18:12:37 2002 From: eric at enthought.com (eric jones) Date: Thu, 19 Sep 2002 17:12:37 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: Message-ID: <000601c26029$a9e24860$6b01a8c0@ericlaptop> I like keeping the name of clapack and flapack, or rename them to lapackc and lapackf if the names really are that confusing. These names convey meaning, not the underlying implementation. clapack wraps lapack for C ordered arrays, flapjack wraps lapack for fortran ordered arrays. This is equivalent to fblas and cblas. Multiple parties provide C versions of the blas routines I believe (I think the MKL from Intel does). Altas happens to be the only library that provides C interfaces to the lapack routines at the moment, but this could change. It is unfortunate that there is also a package called clapack which is just an f2c version of the standard fortran lapack. Skip, the clapack and cblas stuff will only work when ATLAS is linked in.However, the library should still work with only the flapack and fblas libraries. Pearu set it up so that lapack first checks for clapack and fails over to flapack if they aren't available. Eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Pearu Peterson > Sent: Thursday, September 19, 2002 3:18 PM > To: scipy-user at scipy.net > Subject: Re: [SciPy-user] CLAPACK vs. LAPACK? > > > On Thu, 19 Sep 2002, Skip Montanaro wrote: > > > Renaming clapack to atlas seems like a no-brainer to me, but I don't > have to > > worry much about backward compatibility. > > Sorry, I don't understand what do you mean by no-brainer within this > context. English is not my first language and sometimes I don't get > its slang... > > > At the moment I don't have Atlas installed. I'm just using stock > > lapack and blas. I guess it's time to revisit building atlas. > > Using atlas instead of stock lapack/blas can give upto 10 times speed up > for linalg functions. But if that is not important, then one needs not to > build atlas, linalg still has the same functionality based on Fortran > lapack. > > Pearu > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From skip at pobox.com Thu Sep 19 18:27:09 2002 From: skip at pobox.com (Skip Montanaro) Date: Thu, 19 Sep 2002 17:27:09 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: <000601c26029$a9e24860$6b01a8c0@ericlaptop> References: <000601c26029$a9e24860$6b01a8c0@ericlaptop> Message-ID: <15754.20285.515492.39728@12-248-11-90.client.attbi.com> >>>>> "eric" == eric jones writes: eric> I like keeping the name of clapack and flapack, or rename them to eric> lapackc and lapackf if the names really are that confusing. It's not so much that they are confusing, but that when missing the warning message is misleading. I saw the warning about "clapack" missing and went looking for a CLAPACK library, which does exist. Perhaps the warning should (if it doesn't already) suggest the user install atlas. eric> Skip, the clapack and cblas stuff will only work when ATLAS is eric> linked in. However, the library should still work with only the eric> flapack and fblas libraries. Pearu set it up so that lapack first eric> checks for clapack and fails over to flapack if they aren't eric> available. Which is just as well, because the friggin' atlas build just failed again for me. Skip From eric at enthought.com Fri Sep 20 03:12:01 2002 From: eric at enthought.com (eric jones) Date: Fri, 20 Sep 2002 02:12:01 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: <15754.20285.515492.39728@12-248-11-90.client.attbi.com> Message-ID: <000c01c26075$0457ac90$6b01a8c0@ericlaptop> > >>>>> "eric" == eric jones writes: > > eric> I like keeping the name of clapack and flapack, or rename them > to > eric> lapackc and lapackf if the names really are that confusing. > > It's not so much that they are confusing, but that when missing the > warning > message is misleading. I saw the warning about "clapack" missing and went > looking for a CLAPACK library, which does exist. Perhaps the warning > should (if it doesn't already) suggest the user install atlas. Perhaps we should just remove the warning since things will work correctly, albeit a little slower, with the flapack wrappers. Pearu, what do you think? Eric From pearu at cens.ioc.ee Fri Sep 20 03:26:20 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Fri, 20 Sep 2002 10:26:20 +0300 (EEST) Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: <000c01c26075$0457ac90$6b01a8c0@ericlaptop> Message-ID: On Fri, 20 Sep 2002, eric jones wrote: > > >>>>> "eric" == eric jones writes: > > > > eric> I like keeping the name of clapack and flapack, or rename > them > > to > > eric> lapackc and lapackf if the names really are that confusing. > > > > It's not so much that they are confusing, but that when missing the > > warning > > message is misleading. I saw the warning about "clapack" missing and > went > > looking for a CLAPACK library, which does exist. Perhaps the warning > > should (if it doesn't already) suggest the user install atlas. > > Perhaps we should just remove the warning since things will work > correctly, albeit a little slower, with the flapack wrappers. Pearu, > what do you think? I was thinking to make these warnings more clear but also removing them would be a solution. In fact, someone asked before how to suppress these warnings in case the speed of linalg is not a problem. We could add the corresponding warning to tests scripts if clapack is not available and suppress it in normal usage. Pearu From eric at enthought.com Fri Sep 20 06:05:44 2002 From: eric at enthought.com (eric jones) Date: Fri, 20 Sep 2002 05:05:44 -0500 Subject: [SciPy-user] CLAPACK vs. LAPACK? In-Reply-To: Message-ID: <001601c2608d$48baeba0$6b01a8c0@ericlaptop> > We could add the corresponding warning to tests scripts if clapack is not > available and suppress it in normal usage. I like this idea. Lets do it. Eric From dmorrill at enthought.com Fri Sep 20 18:34:52 2002 From: dmorrill at enthought.com (David C. Morrill) Date: Fri, 20 Sep 2002 17:34:52 -0500 Subject: [SciPy-user] Announce: First installable version of Chaco plotting toolkit is now available Message-ID: <001201c260f5$efcabb10$6501a8c0@Dave> We are pleased to announce that the first installable version of the Chaco plotting toolkit is now available for download at: http://www.scipy.org/site_content/chaco This package includes both the low-level Kiva drawing API as well as the high-level Chaco plotting toolkit (and demo). Its very early code with lots of features still missing; but it does work and there is a lot of function already available, so we would encourage anyone who has an interest to give it a try. We are now in the process of setting up an issue tracking system for Chaco. Anyone having trouble accessing or using the system should in the meantime feel free to use the scipy-chaco at scipy.org mailing list to report problems, make comments, request features, etc. Enjoy! -------------- next part -------------- An HTML attachment was scrubbed... URL: From topkeun at hotmail.com Fri Sep 20 22:35:28 2002 From: topkeun at hotmail.com (Keun Park) Date: Sat, 21 Sep 2002 11:35:28 +0900 Subject: [SciPy-user] "import scipy" fails Message-ID: Hi! I've installed the latest SciPy(SciPy-0.2.0_alpha_130.4149.win32-py2.2.exe) successfully. However, when importing the module this is the result: ---------------------------------------------------------------------------- PythonWin 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32. Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - see 'Help/About PythonWin' for further copyright information. >>>from scipy import * Traceback (most recent call last): File "", line 1, in ? File "C:\Python22\Lib\site-packages\scipy\__init__.py", line 49, in ? import special, io, linalg, stats, fftpack File "C:\Python22\Lib\site-packages\scipy\special\__init__.py", line 328, in ? import orthogonal File "C:\Python22\Lib\site-packages\scipy\special\orthogonal.py", line 59, in ? from scipy.linalg import eig File "C:\Python22\Lib\site-packages\scipy\linalg\__init__.py", line 42, in ? from basic import * File "C:\Python22\Lib\site-packages\scipy\linalg\basic.py", line 11, in ? from lapack import get_lapack_funcs File "C:\Python22\Lib\site-packages\scipy\linalg\lapack.py", line 9, in ? from scipy_distutils.misc_util import PostponedException File "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line 20, in ? if terminal_has_colors(): File "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line 6, in terminal_has_colors if not sys.stdout.isatty(): return 0 File "C:\Python22\Lib\site-packages\Pythonwin\pywin\mfc\object.py", line 18, in __getattr__ return getattr(o, attr) AttributeError: isatty >>> --------------------------------------------------------------------------------- Can someone please tell me what's wrong? Thanks. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From travis at enthought.com Fri Sep 20 23:34:27 2002 From: travis at enthought.com (Travis N. Vaught) Date: Fri, 20 Sep 2002 22:34:27 -0500 Subject: [SciPy-user] "import scipy" fails In-Reply-To: Message-ID: Hmmm... I just tried it too (we've just reinstated the 'nightly' builds and are working though some kinks) and I duplicated your error in pythonwin. It does work from the command prompt (dos shell, cmd.exe)--so you might want to check it out from there until it gets fixed in pythonwin. I'll have to see why the pythonwin ide command line isn't playing well with the color terminal code. Travis > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]On > Behalf Of Keun Park > Sent: Friday, September 20, 2002 9:35 PM > To: scipy-user at scipy.net > Subject: [SciPy-user] "import scipy" fails > > > > > > Hi! > > I've installed the latest > SciPy(SciPy-0.2.0_alpha_130.4149.win32-py2.2.exe) > successfully. However, when importing the module this is the result: > > ------------------------------------------------------------------ > ---------- > PythonWin 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] > on win32. > Portions Copyright 1994-2001 Mark Hammond > (mhammond at skippinet.com.au) - see > 'Help/About PythonWin' for further copyright information. > > >>>from scipy import * > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python22\Lib\site-packages\scipy\__init__.py", line 49, in ? > import special, io, linalg, stats, fftpack > File "C:\Python22\Lib\site-packages\scipy\special\__init__.py", > line 328, > in ? > import orthogonal > File > "C:\Python22\Lib\site-packages\scipy\special\orthogonal.py", line 59, > in ? > from scipy.linalg import eig > File "C:\Python22\Lib\site-packages\scipy\linalg\__init__.py", > line 42, in > ? > from basic import * > File "C:\Python22\Lib\site-packages\scipy\linalg\basic.py", > line 11, in ? > from lapack import get_lapack_funcs > File "C:\Python22\Lib\site-packages\scipy\linalg\lapack.py", > line 9, in ? > from scipy_distutils.misc_util import PostponedException > File "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line > 20, in ? > if terminal_has_colors(): > File > "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line 6, > in terminal_has_colors > if not sys.stdout.isatty(): return 0 > File > "C:\Python22\Lib\site-packages\Pythonwin\pywin\mfc\object.py", line > 18, in __getattr__ > return getattr(o, attr) > AttributeError: isatty > >>> > > ------------------------------------------------------------------ > --------------- > Can someone please tell me what's wrong? Thanks. > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From eric at enthought.com Fri Sep 20 23:43:01 2002 From: eric at enthought.com (eric jones) Date: Fri, 20 Sep 2002 22:43:01 -0500 Subject: [SciPy-user] "import scipy" fails In-Reply-To: Message-ID: <002801c26120$fc5ac4d0$6b01a8c0@ericlaptop> This is a bug in the latest nightly build we'll get it fixed before the next one is made. Thanks for the report. eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Keun Park > Sent: Friday, September 20, 2002 9:35 PM > To: scipy-user at scipy.net > Subject: [SciPy-user] "import scipy" fails > > > > > Hi! > > I've installed the latest SciPy(SciPy-0.2.0_alpha_130.4149.win32- > py2.2.exe) > successfully. However, when importing the module this is the result: > > ------------------------------------------------------------------------ -- > -- > PythonWin 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on > win32. > Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - > see > 'Help/About PythonWin' for further copyright information. > > >>>from scipy import * > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python22\Lib\site-packages\scipy\__init__.py", line 49, in ? > import special, io, linalg, stats, fftpack > File "C:\Python22\Lib\site-packages\scipy\special\__init__.py", line > 328, > in ? > import orthogonal > File "C:\Python22\Lib\site-packages\scipy\special\orthogonal.py", line > 59, > in ? > from scipy.linalg import eig > File "C:\Python22\Lib\site-packages\scipy\linalg\__init__.py", line 42, > in > ? > from basic import * > File "C:\Python22\Lib\site-packages\scipy\linalg\basic.py", line 11, in > ? > from lapack import get_lapack_funcs > File "C:\Python22\Lib\site-packages\scipy\linalg\lapack.py", line 9, in > ? > from scipy_distutils.misc_util import PostponedException > File "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line > 20, in ? > if terminal_has_colors(): > File "C:\Python22\Lib\site-packages\scipy_distutils\misc_util.py", line > 6, > in terminal_has_colors > if not sys.stdout.isatty(): return 0 > File "C:\Python22\Lib\site-packages\Pythonwin\pywin\mfc\object.py", line > 18, in __getattr__ > return getattr(o, attr) > AttributeError: isatty > >>> > > ------------------------------------------------------------------------ -- > ------- > Can someone please tell me what's wrong? Thanks. > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From skip at pobox.com Sun Sep 22 09:19:31 2002 From: skip at pobox.com (Skip Montanaro) Date: Sun, 22 Sep 2002 08:19:31 -0500 Subject: [SciPy-user] Re: [SciPy-dev] Announce: First installable version of Chaco plotting toolkit is now available In-Reply-To: <001201c260f5$efcabb10$6501a8c0@Dave> References: <001201c260f5$efcabb10$6501a8c0@Dave> Message-ID: <15757.50019.436297.174799@12-248-11-90.client.attbi.com> Dave> We are pleased to announce that the first installable version of Dave> the Chaco plotting toolkit is now available for download at: Dave> http://www.scipy.org/site_content/chaco What versions of other stuff are required? I'm having trouble building wxPython and wxGTK on both Linux (using gcc/g++) and Solaris (using suncc/sunc++). Thx, Skip From farhanul_haq at yahoo.com Sun Sep 22 11:31:35 2002 From: farhanul_haq at yahoo.com (ulhaq farhan) Date: Sun, 22 Sep 2002 08:31:35 -0700 (PDT) Subject: [SciPy-user] k means Message-ID: <20020922153135.55219.qmail@web40112.mail.yahoo.com> Dear sir, i am a student doing Masters in Computer Science. I am doing a project on parallel computing. For that my instructor wants me to run K-Means algorithm on a cluster of 5 nodes and d some some sort of performance analysis of this distributed architecture...since u were in search of the source code..i request u if u could help me in providing teh algorithm in c or c++ which could be implemented in pararl;lel here..i would be extremely grateful if u help me M farhan ul haq --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at enthought.com Sun Sep 22 15:58:08 2002 From: eric at enthought.com (eric jones) Date: Sun, 22 Sep 2002 14:58:08 -0500 Subject: [SciPy-user] k means In-Reply-To: <20020922153135.55219.qmail@web40112.mail.yahoo.com> Message-ID: <000001c26272$60074c40$777ba8c0@ericlaptop> The expensive part of kmeans is the underlying vq algorithm. It is very parallelizable. The kmeans algorithm lives in scipy/cluster/vq.py. The C++ version of the vq algorithm lives in scipy/cluster/src/vq.h. There is a template in this algorithm that looks like: template void tvq(T* obs,T* code_book, int Nobs, int Ncodes, int Nfeatures, int* codes, T* lowest_dist) { int i; for( i = 0; i < Nobs; i++) { tvq_obs(&(obs[i*Nfeatures]),code_book,Ncodes,Nfeatures, codes[i],lowest_dist[i]); } } Parallelizing this loop with MPI or whatever is probably a good first cut. Good luck with your project, eric ------ Dear sir, i am a student doing Masters in Computer Science. I am doing a project on parallel computing. For that my instructor wants me to run K-Means algorithm on a cluster of 5 nodes and d some some sort of performance analysis of this distributed architecture...since u were in search of the source code..i request u if u could help me in providing teh algorithm in c or c++ which could be implemented in pararl;lel here..i would be extremely grateful if u help me M farhan ul haq Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! From ademilar at brturbo.com Sat Sep 21 22:17:12 2002 From: ademilar at brturbo.com (ademilar at brturbo.com) Date: Sun, 22 Sep 2002 23:17:12 2100 Subject: [SciPy-user] Compare Consórcio de Imóveis x SFH Message-ID: <1032747432.217@brturbo.com> 1. CONS?RCIO ADEMILAR x SISTEMA FINANCEIRO DE HABITA??O -------------------------------------------------------------------------- | | CONS?RCIO | SFH (1) | CONS?RCIO | SFH (1) | | | ADEMILAR | | ADEMILAR | | -------------------------------------------------------------------------- | Valor do |R$ 50.000,00 | R$ 50.000,00 |R$ 50.000,00 | R$ 50.000,00 | | Cr?dito | | | | | -------------------------------------------------------------------------- | N?mero de | 100 | 100 | 180 | 180 | | Parcelas | Meses | Meses | Meses | Meses | -------------------------------------------------------------------------- | Presta??o | R$ 567,50 | R$ 1.125,00 | R$ 354,25 | R$ 755,86 | | | | | | | -------------------------------------------------------------------------- | Valor Total |R$ 57.650,00 | R$ 112.500,00 |R$ 63.765,00 | R$ 136.054,80 | | Saldo Devedor| | | | | | (2) | | | | | -------------------------------------------------------------------------- | Percentual do| 15,30 % | 125,00 % | 27,53 % | 172,10 % | | saldo devedor| | | | | | sobre cr?dito| | | | | -------------------------------------------------------------------------- | Corre??o | CUB Mensal | TR + | CUB Mensal | TR + | | | (3) | 1% / M?s (4) | (3) | 1% / M?s (4) | -------------------------------------------------------------------------- Observa??o: Os n?meros e valores deste demonstrativo s?o apenas um exemplo. (1) Caixa Econ?mica Federal, (2) Com base no valor da 1a. presta??o, antes da corre??o de cada alternativa (3) Varia??o mensal utilizada pelo cons?rcio, (4) Varia??o utilizada pela CEF 2. CONS?RCIO ADEMILAR a) A Ademilar se destaca no mercado por sua atua??o pioneira no Estado do Paran?, especialista no segmento de cons?rcio imobili?rio com o prop?sito de oferecer a melhor das alternativas ao mercado imobili?rio; b) Foi a primeira no Pa?s a obter autoriza??o junto ao Banco Central do Brasil para desenvolver suas atividades em regime de empresa Sociedade An?nima, com Certificado de Autoriza??o n? 92060028; c) Esta em as cinco maiores administradoras de cons?rcio de im?veis do Brasil e conta com a confian?a de mais de 3.000 fam?lias que receberam seus im?veis, num total de mais de R$ 100.000.000,00 em cr?ditos entregues. 3. VANTAGENS DO CONS?RCIO ADEMILAR a) Aquisi??o de im?veis Residenciais ou Comerciais (novos ou usados), Terrenos, Constru??o, Reforma e Amplia??o (im?vel pr?prio), na Cidade, Praia e Campo; b) Equipar ou modernizar a sua micro-empresa, escrit?rio ou consult?rio (im?vel pr?prio); c) Utilizar o FGTS como lance (Conforme normas da CEF); d) Quitar d?vida junto ao Sistema Financeiro de Habita??o; e) Sem necessidade de comprova??o de renda; f) Liberdade para aquisi??o de um ou mais cr?ditos mesmo possuindo outro im?vel, seja quitado ou financiado; g) As contempla??es s?o mensais, uma por Sorteio pela Loteria Federal e outra por Lance; h) Possu?mos v?rias cartas de Cr?ditos com prazos diversos adequando ao seu or?amento familiar. 4. VANTAGENS DO INVESTIMENTO EM IM?VEIS a) "Dinheiro na m?o ? vendaval", j? cantava Paulinho da Viola. O im?vel imp?e excelente disciplina de poupar ao investidor; b) Os alugu?is podem oferecer um bom complemento na aposentadoria. Reinvestir os alugu?is recebidos atrav?s do cons?rcio impulsiona novas aquisi??es e torna-se uma alternativa ?s aplica??es financeiras; c) ?tima prote??o contra a infla??o no m?dio e longo prazo; d) Viver no que ? seu ? algo que d? muito prazer; e) Comprar um im?vel proporciona uma sensa??o de vit?ria e tranq?ilidade para voc? e sua fam?lia. 5. CONTATO Marisa Gasparim Rosa Assessora Comercial ademilar at brturbo.com www.ademilar.brturbo.com (41) 353-2850 / (41) 9994-6590 Curitiba - Paran? From ademilar at brturbo.com Sat Sep 21 22:17:12 2002 From: ademilar at brturbo.com (ademilar at brturbo.com) Date: Sun, 22 Sep 2002 23:17:12 2100 Subject: [SciPy-user] Compare Consórcio de Imóveis x SFH Message-ID: <1032747432.389@brturbo.com> 1. CONS?RCIO ADEMILAR x SISTEMA FINANCEIRO DE HABITA??O -------------------------------------------------------------------------- | | CONS?RCIO | SFH (1) | CONS?RCIO | SFH (1) | | | ADEMILAR | | ADEMILAR | | -------------------------------------------------------------------------- | Valor do |R$ 50.000,00 | R$ 50.000,00 |R$ 50.000,00 | R$ 50.000,00 | | Cr?dito | | | | | -------------------------------------------------------------------------- | N?mero de | 100 | 100 | 180 | 180 | | Parcelas | Meses | Meses | Meses | Meses | -------------------------------------------------------------------------- | Presta??o | R$ 567,50 | R$ 1.125,00 | R$ 354,25 | R$ 755,86 | | | | | | | -------------------------------------------------------------------------- | Valor Total |R$ 57.650,00 | R$ 112.500,00 |R$ 63.765,00 | R$ 136.054,80 | | Saldo Devedor| | | | | | (2) | | | | | -------------------------------------------------------------------------- | Percentual do| 15,30 % | 125,00 % | 27,53 % | 172,10 % | | saldo devedor| | | | | | sobre cr?dito| | | | | -------------------------------------------------------------------------- | Corre??o | CUB Mensal | TR + | CUB Mensal | TR + | | | (3) | 1% / M?s (4) | (3) | 1% / M?s (4) | -------------------------------------------------------------------------- Observa??o: Os n?meros e valores deste demonstrativo s?o apenas um exemplo. (1) Caixa Econ?mica Federal, (2) Com base no valor da 1a. presta??o, antes da corre??o de cada alternativa (3) Varia??o mensal utilizada pelo cons?rcio, (4) Varia??o utilizada pela CEF 2. CONS?RCIO ADEMILAR a) A Ademilar se destaca no mercado por sua atua??o pioneira no Estado do Paran?, especialista no segmento de cons?rcio imobili?rio com o prop?sito de oferecer a melhor das alternativas ao mercado imobili?rio; b) Foi a primeira no Pa?s a obter autoriza??o junto ao Banco Central do Brasil para desenvolver suas atividades em regime de empresa Sociedade An?nima, com Certificado de Autoriza??o n? 92060028; c) Esta em as cinco maiores administradoras de cons?rcio de im?veis do Brasil e conta com a confian?a de mais de 3.000 fam?lias que receberam seus im?veis, num total de mais de R$ 100.000.000,00 em cr?ditos entregues. 3. VANTAGENS DO CONS?RCIO ADEMILAR a) Aquisi??o de im?veis Residenciais ou Comerciais (novos ou usados), Terrenos, Constru??o, Reforma e Amplia??o (im?vel pr?prio), na Cidade, Praia e Campo; b) Equipar ou modernizar a sua micro-empresa, escrit?rio ou consult?rio (im?vel pr?prio); c) Utilizar o FGTS como lance (Conforme normas da CEF); d) Quitar d?vida junto ao Sistema Financeiro de Habita??o; e) Sem necessidade de comprova??o de renda; f) Liberdade para aquisi??o de um ou mais cr?ditos mesmo possuindo outro im?vel, seja quitado ou financiado; g) As contempla??es s?o mensais, uma por Sorteio pela Loteria Federal e outra por Lance; h) Possu?mos v?rias cartas de Cr?ditos com prazos diversos adequando ao seu or?amento familiar. 4. VANTAGENS DO INVESTIMENTO EM IM?VEIS a) "Dinheiro na m?o ? vendaval", j? cantava Paulinho da Viola. O im?vel imp?e excelente disciplina de poupar ao investidor; b) Os alugu?is podem oferecer um bom complemento na aposentadoria. Reinvestir os alugu?is recebidos atrav?s do cons?rcio impulsiona novas aquisi??es e torna-se uma alternativa ?s aplica??es financeiras; c) ?tima prote??o contra a infla??o no m?dio e longo prazo; d) Viver no que ? seu ? algo que d? muito prazer; e) Comprar um im?vel proporciona uma sensa??o de vit?ria e tranq?ilidade para voc? e sua fam?lia. 5. CONTATO Marisa Gasparim Rosa Assessora Comercial ademilar at brturbo.com www.ademilar.brturbo.com (41) 353-2850 / (41) 9994-6590 Curitiba - Paran? From yhou1 at cs.uic.edu Mon Sep 23 14:51:18 2002 From: yhou1 at cs.uic.edu (Yijue Hou) Date: Mon, 23 Sep 2002 13:51:18 -0500 (CDT) Subject: [SciPy-user] about using python class in weave Message-ID: weave.inline call use python integers directly, but while I tried to use python classes, it doesn't work. suppose s is a python class, my code: weave.inline("s.blah();",['s']) it said it unable to convert to c++ types, so how to call python classes in c function using weave? Thanks From eric at enthought.com Mon Sep 23 16:03:20 2002 From: eric at enthought.com (eric jones) Date: Mon, 23 Sep 2002 15:03:20 -0500 Subject: [SciPy-user] about using python class in weave In-Reply-To: Message-ID: <000001c2633c$43860780$6b01a8c0@ericlaptop> Instance conversion isn't supported in the released version, but the CVS version handles it. CVS also has limited support for working with attributes. I'm in the process of augmenting SCXX for this sort of thing. Support for calling methods (what you want) hasn't been added yet, but probably will appear within the next week or so. It's worth noting that, unless your Python class is a wrapper around a C++ class (using SWIG or boost or whatever), the performance is going to be lousy for this because it has to call back into Python. It's actually worse than Python because of the overhead in the C++ classes used to represent Pyhon objects (perhaps this can be reduced). So, if your app needs to access the python class information within a computational loop, weave isn't going to help much. However, if you can do something like: a = s.blah() weave.inline("", ['a']) then you could get big wins. To get back to the same speed as Python (possibly even 10-100% faster actually), you can manipulate py_s instead of s. py_s is a raw PyObject* and you can use the Python C API on this guy until your hearts content. The other option is to tackle the problem of writing type converters that are based on the boost library. This library is a lot more complex than SCXX (which we use now), but it is also more powerful. Something along the lines of what you want is probably likely using it. Regards, Eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Yijue Hou > Sent: Monday, September 23, 2002 1:51 PM > To: scipy-user at scipy.net > Subject: [SciPy-user] about using python class in weave > > weave.inline call use python integers directly, > but while I tried to use python classes, it doesn't work. > > suppose s is a python class, > my code: > weave.inline("s.blah();",['s']) > > it said it unable to convert to c++ types, so how to call python > classes in c function using weave? > > Thanks > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From jcao at cs.uchicago.edu Mon Sep 23 16:31:37 2002 From: jcao at cs.uchicago.edu (Jing (George) Cao) Date: Mon, 23 Sep 2002 15:31:37 -0500 (CDT) Subject: [SciPy-user] about using python class in weave In-Reply-To: <000001c2633c$43860780$6b01a8c0@ericlaptop> Message-ID: I am now want to make SWIG and python work together, so I guess I met the same problem. Dave told me weave works fine with previous version of SWIG, and I also found a directory named swig in WEAVE. Is there any document about what you've done to make weave and previous SWIG works together and where can I find it? Thank you. Jing On Mon, 23 Sep 2002, eric jones wrote: > Instance conversion isn't supported in the released version, but the CVS > version handles it. CVS also has limited support for working with > attributes. I'm in the process of augmenting SCXX for this sort of > thing. Support for calling methods (what you want) hasn't been added > yet, but probably will appear within the next week or so. > > It's worth noting that, unless your Python class is a wrapper around a > C++ class (using SWIG or boost or whatever), the performance is going to > be lousy for this because it has to call back into Python. It's > actually worse than Python because of the overhead in the C++ classes > used to represent Pyhon objects (perhaps this can be reduced). > > So, if your app needs to access the python class information within a > computational loop, weave isn't going to help much. However, if you can > do something like: > > a = s.blah() > weave.inline("", ['a']) > > then you could get big wins. > > To get back to the same speed as Python (possibly even 10-100% faster > actually), you can manipulate py_s instead of s. py_s is a raw > PyObject* and you can use the Python C API on this guy until your hearts > content. > > The other option is to tackle the problem of writing type converters > that are based on the boost library. This library is a lot more complex > than SCXX (which we use now), but it is also more powerful. Something > along the lines of what you want is probably likely using it. > > Regards, > Eric > > > -----Original Message----- > > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] > On > > Behalf Of Yijue Hou > > Sent: Monday, September 23, 2002 1:51 PM > > To: scipy-user at scipy.net > > Subject: [SciPy-user] about using python class in weave > > > > weave.inline call use python integers directly, > > but while I tried to use python classes, it doesn't work. > > > > suppose s is a python class, > > my code: > > weave.inline("s.blah();",['s']) > > > > it said it unable to convert to c++ types, so how to call python > > classes in c function using weave? > > > > Thanks > > > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user > From dmorrill at enthought.com Mon Sep 23 18:26:29 2002 From: dmorrill at enthought.com (David C. Morrill) Date: Mon, 23 Sep 2002 17:26:29 -0500 Subject: [SciPy-user] Chaco discussion on scipy-chaco mailing list Message-ID: <00c501c26350$42ff0d20$6501a8c0@Dave> Just wanted to mention that Chaco has its own mailing list on scipy-chaco at scipy.org. To avoid unnecessary cross-posting on the other SciPy lists, hopefully future Chaco discussion will occur there. In particular, I just posted a note there on the progress I've made in fixing the Chaco Linux problem that has been reported by several people. See ya there... Dave Morrill -------------- next part -------------- An HTML attachment was scrubbed... URL: From josegomez at gmx.net Tue Sep 24 07:50:59 2002 From: josegomez at gmx.net (=?iso-8859-15?q?Jos=E9=20Luis=20G=F3mez=20Dans?=) Date: Tue, 24 Sep 2002 12:50:59 +0100 Subject: [SciPy-user] Problem installing binaries/source on Debian Message-ID: <20020924115651.ED5283EACE@www.scipy.com> Hi, I had been using the debian packages of scipy 0.1, but since I did a couple of upgrades in the system, these disappeared from sight (sigh!). So I set out to install from source, and wasn't able to do it (there was a missing module; unfortunately, I do not have a log of that, and hard disk space is tight at the moment to submit a proper report). I got hold of the binary packages, and tar -zxvf'd the download file for Python2.1 on /usr/lib/python2.1/site-packages/. Trying my scripts results in: Traceback (most recent call last): File "./extract_data.py", line 5, in ? from scipy import * ImportError: No module named scipy I then changed some of the permissions of the downloaded files (they had numeric UID and so on), but still get the same result. So I installed python2.2, and gave it a try. this time, the package is found (I did install in /usr/local/lib/python2.2/site-packages/, realising that it was a far more logical place for it to be). This is a traceback: Python 2.2.1 (#2, Sep 13 2002, 23:25:07) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from scipy import * Traceback (most recent call last): File "", line 1, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/__init__.py", line 62, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/weave/__init__.py", line 14, in ? ImportError: cannot import name inline So, no scipy module available... Having said that, I have just tried to import the io module and have succeeded by doing this: from scipy_base import * from scipy import * Traceback (most recent call last): File "./extract_data.py", line 6, in ? from scipy import * File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/__init__.py", line 62, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/weave/__init__.py", line 14, in ? ImportError: cannot import name inline from scipy import * from scipy.io import * (Note that I had to import scipy twice). So I import scipy, I get an error on the weave/inline_tools import, saying that it cannot import inline. However, if I retry this same statement, it can the import inline namespace thing. If you need any more info, please let me know. Any hints on what's going on much appreciated!!!! Jose -- Jos? L G?mez Dans PhD student Tel: +44 114 222 5582 Radar & Communications Group FAX; +44 870 132 2990 Department of Electronic Engineering University of Sheffield UK From pearu at cens.ioc.ee Tue Sep 24 08:12:45 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 24 Sep 2002 15:12:45 +0300 (EEST) Subject: [SciPy-user] Problem installing binaries/source on Debian In-Reply-To: <20020924115651.ED5283EACE@www.scipy.com> Message-ID: On Tue, 24 Sep 2002, [iso-8859-15] Jos? Luis G?mez Dans wrote: > Having said that, I have just tried to import the io module and have > succeeded by doing this: > from scipy_base import * > from scipy import * > Traceback (most recent call last): > File "./extract_data.py", line 6, in ? > from scipy import * > File > "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/__init__.py", > line 62, in ? > File > "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/weave/__init__.py", > line 14, in ? > ImportError: cannot import name inline > from scipy import * > from scipy.io import * > > (Note that I had to import scipy twice). So I import scipy, I get an > error on the weave/inline_tools import, saying that it cannot import > inline. However, if I retry this same statement, it can the import > inline namespace thing. First, why don't you install scipy properly from sources? Especially, since you are using debian where the build process should be easy. Second, do you need weave? If not then you can disable it easily by modifying scipy/__init__.py. This is just to get pass weave import error but I suspect that you'll see more.. Third, don't get excited if scipy import succeeds in the second try because it doesn't. In the second import, the import command sees from looking sys.modules that 'scipy' module is already imported (though unsuccesfully but the import command does not know that) and therefore does nothing. Pearu From josegomez at gmx.net Tue Sep 24 08:20:09 2002 From: josegomez at gmx.net (=?iso-8859-15?q?Jos=E9=20Luis=20G=F3mez=20Dans?=) Date: Tue, 24 Sep 2002 13:20:09 +0100 Subject: [SciPy-user] Problem installing binaries/source on Debian In-Reply-To: References: Message-ID: <20020924122558.2FFF13EAD2@www.scipy.com> Hi Pearu, On Tuesday 24 September 2002 13:12, Pearu Peterson wrote: > First, why don't you install scipy properly from sources? Especially, > since you are using debian where the build process should be easy. Will do, it did fail when I first tried it, and I was in a rush to finish some work off ;) > Second, do you need weave? If not then you can disable it easily by > modifying scipy/__init__.py. This is just to get pass weave import > error but I suspect that you'll see more. I got rid of that import statement, and it works fine now. Ugly hack tho' Many thanks for your help. Jose -- Jos? L G?mez Dans PhD student Tel: +44 114 222 5582 Radar & Communications Group FAX; +44 870 132 2990 Department of Electronic Engineering University of Sheffield UK From karshi.hasanov at utoronto.ca Tue Sep 24 19:49:46 2002 From: karshi.hasanov at utoronto.ca (karshi) Date: Tue, 24 Sep 2002 19:49:46 -0400 Subject: [SciPy-user] error? Message-ID: <3D90FA1A.26FA7DB4@utoronto.ca> Hi all, I've installed the latest SciPy*.exe on Windows2000. On my desktop everything went o.k., but my laptop is giving me this error: --------------------------------------------------------- C:\>python Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import scipy zeta domain error >>> ---------------------------------- I don't understand what this error means. Is this something to do with the cygwin I've on my laptop? From taketu at lapis.plala.or.jp Wed Sep 25 00:58:03 2002 From: taketu at lapis.plala.or.jp (=?ISO-2022-JP?B?GyRCJCo2YkJfJDckXiQ5GyhC?=) Date: Wed, 25 Sep 2002 13:58:03 +0900 (JST) Subject: [SciPy-user] =?ISO-2022-JP?B?GyRCTCQ+NUJ6OS05cCIoNEpDMU07O3EbKEI=?= Message-ID: <200209250458.g8P4w3O68553@mx0.sa.il24.net> $B!c;v6He$N(B $B%o%$%I%m!<%s(B $B$*Ld$$9g$;4?7^!*(B $B0lK\2=BP1~@_Dj!*Hf$Y$F(B $B$/$@$5$$Dc6bMx!*(B $B>\$7$/$O%U%j!<%@(B $B%$%d%k$G!*(B $B5.J}$N(B????????? $B-j(B????$B?.HN(B From xboxer4life at lvcm.com Wed Sep 25 01:54:36 2002 From: xboxer4life at lvcm.com (Xboxer) Date: Tue, 24 Sep 2002 22:54:36 -0700 Subject: [SciPy-user] quick question Message-ID: <01b601c26458$07ca8e10$6400a8c0@yourkf1y8xksrv> Can you let me know if the $5.00 for report works? I'm contemplating it so please let me know. Have you made money? Thanks, George in Henderson, Nevada. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taketu at lapis.plala.or.jp Wed Sep 25 02:45:56 2002 From: taketu at lapis.plala.or.jp (=?ISO-2022-JP?B?GyRCJCo2YkJfJDckXiQ5GyhC?=) Date: Wed, 25 Sep 2002 15:45:56 +0900 (JST) Subject: [SciPy-user] =?ISO-2022-JP?B?GyRCTCQ+NUJ6OS05cCIoNEpDMU07O3EbKEI=?= Message-ID: <200209250645.g8P6juO04381@mx0.sa.il24.net> $B!c;v6He$N(B $B%o%$%I%m!<%s(B $B$*Ld$$9g$;4?7^!*(B $B0lK\2=BP1~@_Dj!*Hf$Y$F(B $B$/$@$5$$Dc6bMx!*(B $B>\$7$/$O%U%j!<%@(B $B%$%d%k$G(B $B5.J}$N(B????????? $B-j(BKM?????? From DoNotReply at notthere.com Wed Sep 25 10:31:32 2002 From: DoNotReply at notthere.com (DoNotReply at notthere.com) Date: Wed, 25 Sep 2002 15:31:32 +0100 Subject: [SciPy-user] Tired with the Windows XP search Facility, Check this out Message-ID: <20020925143213.COJE13996.mta05-svc.ntlworld.com@thehammer> http://www.findfilesxp.com This program is up to 100 times faster than the XP search, with much more functionality. It has many more features like multiple string searches (With replace options), and can prieview Movies, Pictures and ascii (Text) files, Can search selected drives and folders (and NOT search too). Its also free to try, and only $10 to buy. From lcordier at dsp.sun.ac.za Mon Sep 30 15:01:38 2002 From: lcordier at dsp.sun.ac.za (Louis Cordier) Date: Mon, 30 Sep 2002 21:01:38 +0200 (SAST) Subject: [SciPy-user] atlas/clapack/etc problems. Message-ID: Hi, I need lots of help, pleeeeeeeease (; My goal is to run Python2.2 on a 60 Workstation Cluster (Debian3.0), using scipy.cow. However I cant even get scipy to work. I tried to build scipy on a Red Hat 7.3 box, and after the clapack/cblas module import errors, I gave up and moved on to Debian 3.0 (woody). Especially after I read about Automatic ATLAS support under Debian GNU/Linux http://lists.debian.org/debian-devel/2001/debian-devel-200111/msg00823.html Don't get your hopes up thou. I tried just about everything, using only BLAS/LAPACK, building ATLAS from source (many many times), this makes .so's. Then making the symlinks from the *.so.2 -> *.so so that scipy_distutils/system_info.py can detect them. With the right values for {$ATLAS,$BLAS,$LAPACK}, else it has difficulty finding them even with site.cfg setup right. I even tried the binary prebuild scipy. I tried both these methods: http://www.scipy.org/site_content/tutorials/install_binaries http://www.scipy.org/site_content/tutorials/build_instructions Nothing works, the binary install needs access to the header files and after a copied it from the source and ran the {setup_scipy.py,setup_scipy_base.py,setup_scipy_distutils.py} scripts, this is as far as I get. Python 2.2.1 (#1, Sep 7 2002, 14:34:30) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import scipy Traceback (most recent call last): File "", line 1, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/__init__.py", line 78, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/__init__.py", line 1, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/interface.py", line 12, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/interface.py", line 9, in _intialize File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/pyPlot.py", line 103, in __init__ File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/pyPlot.py", line 697, in _defaults File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/pyPlot.py", line 820, in _send IOError: [Errno 32] Broken pipe ------------------------------------ I have the following, can someone please give me a sort of HOW-TO to get a working scipy up and running : Debian 3.0 (woody) Python 2.2.1 (#1, Sep 7 2002, 14:34:30) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 gcc version 2.95.4 20011002 (Debian prerelease) g77 version 2.95.4 20011002 (Debian prerelease) f2c (installed on the system, but if I have F2PY do I really need it ?) Numeric.__version__ = 21.0 (apt-get install python2.2-numeric) Numeric-22.0.tar.gz (source) atlas3.4.1.tar.bz2 (source) atlas3.4.1_Linux_PIIISSE1.tgz Prebuild binary ATLAS, http://www.netlib.org/atlas/archives/linux/ It has the following files: include/{cblas.h,clapack.h} lib/{libatlas.a,libf77blas.a,libcblas.a,liblapac.a} F2PY-2.23.190-1359 SciPy-0.2.0_alpha_105.3699_src SciPy-0.2.0_alpha_105.3699.linux2_py2.2.tar.gz Prebuild binaries with ATLAS 3.3.15, also .so's seems to have the ATLAS/LAPACK stuff statically linked in. I believe the wxPython & fftw is optional. Here is just a list of some of the errors I have experienced. When I fix one a new one pops up. This is really discouraging :( ---8<---------------------------------------------------------- >>> import scipy exceptions.ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined symbol: sgesdd_ exceptions.ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/_flinalg.so: undefined symbol: dlaswp_ Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/scipy/__init__.py", line 42, in ? import special, io, linalg, stats, fftpack File "/usr/lib/python2.2/site-packages/scipy/special/__init__.py", line 325, in ? import orthogonal File "/usr/lib/python2.2/site-packages/scipy/special/orthogonal.py", line 59, in ? from scipy.linalg import eig File "/usr/lib/python2.2/site-packages/scipy/linalg/__init__.py", line 40, in ? from basic import * File "/usr/lib/python2.2/site-packages/scipy/linalg/basic.py", line 17, in ? import calc_lwork ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/calc_lwork.so: undefined symbol: ieeeck_ >>> ---8<---------------------------------------------------------- Python 2.2.1 (#1, Sep 7 2002, 14:34:30) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import scipy Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/scipy/__init__.py", line 29, in ? from scipy_base import * File "scipy_base/__init__.py", line 97, in ? import scipy_base.fastumath ImportError: No module named fastumath In this one fastumath.so usually exists and I can import it from that directory manually, with import fastumath, dir(fastumath) also return usefull info, but then if I try to import scipy other stuff fail. ---8<---------------------------------------------------------- >>> import clapack Traceback (most recent call last): File "", line 1, in ? ImportError: ./clapack.so: undefined symbol: clapack_sgetri >>> elkalab-130:/tmp/SciPy-0.2.0_alpha_105.3699/build/lib.linux-i686-2.2/scipy/linalg# ldd clapack.so liblapack.so.2 => /usr/lib/sse/atlas/liblapack.so.2 (0x40025000) libf77blas.so.2 => /usr/lib/sse/libf77blas.so.2 (0x40552000) libcblas.so.2 => /usr/lib/sse/libcblas.so.2 (0x4056a000) libatlas.so.2 => /usr/lib/sse/libatlas.so.2 (0x4058c000) libm.so.6 => /lib/libm.so.6 (0x40861000) libc.so.6 => /lib/libc.so.6 (0x40882000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) I believe the problem here was due to an old atlas version. bash# apt-get install atlas2 atlas2-sse bash# cat /usr/share/doc/atlas2-base/used_lapack_version These atlas libraries were build using the following Debian lapack source package: lapack (3.0.20000531a-16) unstable; urgency=high ---8<---------------------------------------------------------- -------------------------------------------------------------- Louis Cordier, c:+27721472305, h:+27218865145, w:+27218084315 lcordier at dsp.sun.ac.za, http://www.dsp.sun.ac.za/~lcordier/ University of Stellenbosch - Electric & Electronic Engineering -------------------------------------------------------------- From pearu at cens.ioc.ee Mon Sep 30 18:16:42 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Tue, 1 Oct 2002 01:16:42 +0300 (EEST) Subject: [SciPy-user] atlas/clapack/etc problems. In-Reply-To: Message-ID: On Mon, 30 Sep 2002, Louis Cordier wrote: > > Hi, I need lots of help, pleeeeeeeease (; > > My goal is to run Python2.2 on a 60 Workstation Cluster (Debian3.0), > using scipy.cow. However I cant even get scipy to work. > > I tried to build scipy on a Red Hat 7.3 box, and after the clapack/cblas > module import errors, I gave up and moved on to Debian 3.0 (woody). > Especially after I read about Automatic ATLAS support under Debian GNU/Linux > http://lists.debian.org/debian-devel/2001/debian-devel-200111/msg00823.html > Don't get your hopes up thou. I tried just about everything, > using only BLAS/LAPACK, building ATLAS from source (many many times), > this makes .so's. Then making the symlinks from the *.so.2 -> *.so so > that scipy_distutils/system_info.py can detect them. With the right values > for {$ATLAS,$BLAS,$LAPACK}, else it has difficulty finding them even with > site.cfg setup right. I even tried the binary prebuild scipy. > > I tried both these methods: > > http://www.scipy.org/site_content/tutorials/install_binaries > http://www.scipy.org/site_content/tutorials/build_instructions These instructions are rather old. Please see scipy/INSTALL.txt for the most uptodate scipy building notes. > Nothing works, the binary install needs access to the header files > and after a copied it from the source and ran the > {setup_scipy.py,setup_scipy_base.py,setup_scipy_distutils.py} scripts, > this is as far as I get. > > Python 2.2.1 (#1, Sep 7 2002, 14:34:30) > [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import scipy > Traceback (most recent call last): > File "", line 1, in ? > "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/gplt/pyPlot.py", > line 820, in _send > IOError: [Errno 32] Broken pipe I don't know why you get this error, at least it is not related to linalg module. You can temporarily disable gplt module from scipy/__init__.py file. > ------------------------------------ > > I have the following, can someone please give me a sort of > HOW-TO to get a working scipy up and running : > > Debian 3.0 (woody) > Python 2.2.1 (#1, Sep 7 2002, 14:34:30) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 > > gcc version 2.95.4 20011002 (Debian prerelease) > g77 version 2.95.4 20011002 (Debian prerelease) > f2c (installed on the system, but if I have F2PY do I really need it ?) No, you don't need f2c. Nothing in scipy uses it. > Numeric.__version__ = 21.0 (apt-get install python2.2-numeric) > > Numeric-22.0.tar.gz (source) > atlas3.4.1.tar.bz2 (source) > > atlas3.4.1_Linux_PIIISSE1.tgz > Prebuild binary ATLAS, http://www.netlib.org/atlas/archives/linux/ > It has the following files: > include/{cblas.h,clapack.h} > lib/{libatlas.a,libf77blas.a,libcblas.a,liblapac.a} It is absolutely crusial to follow the instructions in http://math-atlas.sourceforge.net/errata.html#completelp > F2PY-2.23.190-1359 > SciPy-0.2.0_alpha_105.3699_src > > SciPy-0.2.0_alpha_105.3699.linux2_py2.2.tar.gz > Prebuild binaries with ATLAS 3.3.15, also .so's seems to > have the ATLAS/LAPACK stuff statically linked in. > > I believe the wxPython & fftw is optional. Yes. > Here is just a list of some of the errors I have experienced. > When I fix one a new one pops up. This is really discouraging :( Actually, it should be encouraging if you are able to fix something ;-) It is be much frustrating if fixes don't have any effect ... > > ---8<---------------------------------------------------------- > > >>> import scipy > exceptions.ImportError: > /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined > symbol: sgesdd_ See the second problem in KNOWN PROBLEMS section of scipy/INSTALL.txt > ---8<---------------------------------------------------------- > > Python 2.2.1 (#1, Sep 7 2002, 14:34:30) > [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import scipy > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.2/site-packages/scipy/__init__.py", line 29, in ? > from scipy_base import * > File "scipy_base/__init__.py", line 97, in ? > import scipy_base.fastumath > ImportError: No module named fastumath > > In this one fastumath.so usually exists and I can import it from > that directory manually, with import fastumath, dir(fastumath) also > return usefull info, but then if I try to import scipy other stuff fail. Your current directory is /path/to/sources/of/scipy and there import scipy picks up only sources, not the installed scipy. Change to another directory and try again. > ---8<---------------------------------------------------------- > > >>> import clapack > Traceback (most recent call last): > File "", line 1, in ? > ImportError: ./clapack.so: undefined symbol: clapack_sgetri > >>> > > elkalab-130:/tmp/SciPy-0.2.0_alpha_105.3699/build/lib.linux-i686-2.2/scipy/linalg# > ldd clapack.so > liblapack.so.2 => /usr/lib/sse/atlas/liblapack.so.2 (0x40025000) > libf77blas.so.2 => /usr/lib/sse/libf77blas.so.2 (0x40552000) > libcblas.so.2 => /usr/lib/sse/libcblas.so.2 (0x4056a000) > libatlas.so.2 => /usr/lib/sse/libatlas.so.2 (0x4058c000) > libm.so.6 => /lib/libm.so.6 (0x40861000) > libc.so.6 => /lib/libc.so.6 (0x40882000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > I believe the problem here was due to an old atlas version. Correct. > bash# apt-get install atlas2 atlas2-sse > bash# cat /usr/share/doc/atlas2-base/used_lapack_version > These atlas libraries were build using the following Debian lapack source > package: lapack (3.0.20000531a-16) unstable; urgency=high Currently scipy_distutils/system_info.py does not recognize atlas2 libraries by default. I'll fix it when I get a chance.. Meanwhile you can either use site.cfg or/and atlas libraries that you built from sources. Most of your problems are typical and have known solutions. If you apply the instructions in http://math-atlas.sourceforge.net/errata.html#completelp then I think you'll get scipy running. If you experience still problems, then include the output of python scipy_distutils/system_info.py to your message. This output can be very helpful for giving best suggestions for resolving installation problems. Pearu From herald at ns1.nabitel.com Mon Sep 30 22:29:31 2002 From: herald at ns1.nabitel.com (herald at ns1.nabitel.com) Date: Tue, 1 Oct 2002 11:29:31 +0900 Subject: [SciPy-user] (ad)Strong WebRobot/eMailId Collector: Free Download ! Message-ID: Sorry for interrupting you - click refuse for no more mail... ? - Welcome to NabiTel's software products and portal services - Software Products Web Robot: also called web spider or web crawler, collects useful web page informations by navigating world wide web sites. Download free trial version now ! eMail ID Collector: Collects email ids publicly opened on various web pages, with good intention. Download free trial version now ! Portal Services Web Portal: Do you have your own home page and want to broadcast it all over the world ? Register your home page to NabiTel Portal Now !! (nabi=a butterfly) Register your home page now, it's free ! Automobiles: Do you want to sell or buy automobiles ? Cars, trucks, limos, airplanes, ships,.... All That Cars are here ! Register your vehicles now, it's free ! Computers: Do you want to sell or buy computers ? PCs, printers, scanners, servers, mainframes, .... All That Computers are here ! Register your computers now, it's free ! Food & Restaurants: Are you seeking for a nice place to eat ? Or do you run a restaurant ? Foods of the world, restaurants of the world, .... All That Foods are here ! Register your restaurant now, it's free ! Have a nice day. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From herald at ns1.nabitel.com Mon Sep 30 22:29:31 2002 From: herald at ns1.nabitel.com (herald at ns1.nabitel.com) Date: Tue, 1 Oct 2002 11:29:31 +0900 Subject: [SciPy-user] (ad)Strong WebRobot/eMailId Collector: Free Download ! Message-ID: Sorry for interrupting you - click refuse for no more mail... ? - Welcome to NabiTel's software products and portal services - Software Products Web Robot: also called web spider or web crawler, collects useful web page informations by navigating world wide web sites. Download free trial version now ! eMail ID Collector: Collects email ids publicly opened on various web pages, with good intention. Download free trial version now ! Portal Services Web Portal: Do you have your own home page and want to broadcast it all over the world ? Register your home page to NabiTel Portal Now !! (nabi=a butterfly) Register your home page now, it's free ! Automobiles: Do you want to sell or buy automobiles ? Cars, trucks, limos, airplanes, ships,.... All That Cars are here ! Register your vehicles now, it's free ! Computers: Do you want to sell or buy computers ? PCs, printers, scanners, servers, mainframes, .... All That Computers are here ! Register your computers now, it's free ! Food & Restaurants: Are you seeking for a nice place to eat ? Or do you run a restaurant ? Foods of the world, restaurants of the world, .... All That Foods are here ! Register your restaurant now, it's free ! Have a nice day. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Mon Sep 30 23:00:29 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 1 Oct 2002 08:30:29 +0530 Subject: [SciPy-user] atlas/clapack/etc problems. In-Reply-To: References: Message-ID: <15769.4045.442880.462542@monster.linux.in> >>>>> "LC" == Louis Cordier writes: LC> Hi, I need lots of help, pleeeeeeeease (; LC> My goal is to run Python2.2 on a 60 Workstation Cluster LC> (Debian3.0), using scipy.cow. However I cant even get scipy to LC> work. Instructions for Debian. 1. apt-get install lapack-dev blas-dev fftw-dev 2. Download ATLAS-3.4.x. Build it and also do this: http://math-atlas.sourceforge.net/errata.html#completelp 3. Download Numeric-22.0. Debian's python-numeric is old and does not have enough. Build Numeric and install it in /usr/local like so: python setup.py install --prefix=/usr/local 4. cd /usr/include/python2.2/ mv Numeric Numeric.old ln -s /usr/local/include/python2.2/Numeric . 5. Get scipy cvs (follow instructions on the web). 6. Then do the following: cd scipy # dont know if this is still necessary. ln -s /path/to/Numeric-22_src/ Numerical export ATLAS=/full/path/to/your/freshly/built/atlas/*.a python setup.py build # su or sudo python setup.py install --prefix=/usr/local LC> I tried to build scipy on a Red Hat 7.3 box, and after the LC> clapack/cblas module import errors, I gave up and moved on to LC> Debian 3.0 (woody). Especially after I read about Automatic LC> ATLAS support under Debian GNU/Linux LC> http://lists.debian.org/debian-devel/2001/debian-devel-200111/msg00823.html No, dont use these. These are a little too old. scipy needs a more recent atlas version building it by hand is actually pretty easy. Hope this helps. prabhu From skip at pobox.com Mon Sep 30 23:37:25 2002 From: skip at pobox.com (Skip Montanaro) Date: Mon, 30 Sep 2002 22:37:25 -0500 Subject: [SciPy-user] atlas/clapack/etc problems. In-Reply-To: <15769.4045.442880.462542@monster.linux.in> References: <15769.4045.442880.462542@monster.linux.in> Message-ID: <15769.6261.434511.89927@12-248-11-90.client.attbi.com> Prabhu> export ATLAS=/full/path/to/your/freshly/built/atlas/*.a Is this correct? I've never seen any sort of library or library directory reference like this before. I don't recall seeing it documented this way. Looking back at INSTALL.txt I don't see anything specifying the format of the ATLAS environment variable. I would have expected a directory reference like export ATLAS=/full/path/to/your/freshly/built/atlas (which is what I've been using) or a pointer to a single library like export ATLAS=/full/path/to/your/freshly/built/atlas/libatlas.a -- Skip Montanaro - skip at pobox.com "Airplanes don't fly until the paperwork equals the weight of the aircraft. Same with i18N." - from the "Perl, Unicode and i18N FAQ"