From Brian.Lamarche at pnl.gov Mon Jul 1 15:26:56 2002 From: Brian.Lamarche at pnl.gov (Lamarche, Brian L) Date: Mon, 01 Jul 2002 12:26:56 -0700 Subject: [SciPy-user] Workshop Message-ID: <1B1080D3ADDF8D4AB59832DE0A02C52AF0369E@pnlmse06.pnl.gov> To whom it may concern; I am interested in the SciPy workshop, however, it looks as though I, and colleagues, will not be able to attend the workshop. Assuming there will be workshop books and tutorials, is there anyway we could receive a workshop booklet? Thanks, Brian LaMarche Molecular Theory and Modeling 376-6979 From mpeti_k at mail.com Thu Jul 4 10:46:24 2002 From: mpeti_k at mail.com (Laurent Mpeti Kabila) Date: Thu, 4 Jul 2002 16:46:24 +0200 Subject: [SciPy-user] please kindly get back to me Message-ID: <20020704145356.9C04D3EABC@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:joseph edward. I count on your honour to keep my secret, SECRET. Looking forward for your urgent reply Thanks. Best Regards MPETI L. KABILA (Jnr) From mpeti_k at mail.com Thu Jul 4 10:46:26 2002 From: mpeti_k at mail.com (Laurent Mpeti Kabila) Date: Thu, 4 Jul 2002 16:46:26 +0200 Subject: [SciPy-user] please kindly get back to me Message-ID: <20020704145358.431873EABD@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:joseph edward. I count on your honour to keep my secret, SECRET. Looking forward for your urgent reply Thanks. Best Regards MPETI L. KABILA (Jnr) From MemberServices at hotmail.com Thu Jul 11 01:50:18 2002 From: MemberServices at hotmail.com (MemberServices at hotmail.com) Date: Wed, 10 Jul 2002 22:50:18 -0700 Subject: [SciPy-user] Account expiration notice Message-ID: <20020711055440.EC7E73EABC@www.scipy.com> An HTML attachment was scrubbed... URL: From will_woods2 at yahoo.co.uk Thu Jul 11 05:57:18 2002 From: will_woods2 at yahoo.co.uk (=?iso-8859-1?q?William=20Woods?=) Date: Thu, 11 Jul 2002 10:57:18 +0100 (BST) Subject: [SciPy-user] Linux binaries problem Message-ID: <20020711095718.604.qmail@web20202.mail.yahoo.com> I am trying to get the linux binaries to work with Mandrake 8.2, but I get the following: Python 2.2.1 (#1, Jul 11 2002, 10:55:54) [GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from scipy import * Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/PIL/__init__.py", line 29, in ? # ;-) File "/usr/lib/python2.2/site-packages/PIL/__init__.py", line 98, in ? # ;-) File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy_base/limits.py", line 12, in ? File "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy_base/type_check.py", line 51, in ? NameError: name '_unsigned' is not defined >>> Any suggestions? Thanks, Will __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com From eric at enthought.com Fri Jul 12 13:51:27 2002 From: eric at enthought.com (eric jones) Date: Fri, 12 Jul 2002 12:51:27 -0500 Subject: [SciPy-user] SciPy 02 -- lightning talks and BOF sessions Message-ID: <000001c229cc$bf545f00$6b01a8c0@ericlaptop> Hello crew, Here are some notes on the upcoming SciPy 02 workshop. I've sent this to all the registered conference participants and scipy-user at scipy.org. Please sign up on scipy-user at scipy.org if you haven't already done so. Here is the link: http://scipy.net/mailman/listinfo/scipy-user Workshop Registration The SciPy 02 workshop sign-up is full, and it looks like a great group of people. I'm looking forward to lively and interesting discussion in numerous areas. If you missed registration, but would still like to come, drop me a line and we'll put you on the waiting list. On the other hand, if you registered but now believe you won't be able to attend, please let us know (leah at enthought.com) so that we can make room for others. The registration payment site isn't available yet, but should be within a week or two. Lightning Talks -- Request for Submissions One of the major goals of the workshop is to encourage collaboration across projects. To facilitate this, we're having a session of "Lightning Talks" for people to discuss their projects with the community. Lightning talks are generally short (10 minute or so) and informal overviews of your latest and greatest stuff. The Python conferences have used these with great success, and I think it is a perfect format for the workshop. If you'd like to give a Lightning Talk, please send me (eric at enthought.com) a brief description of the topic. I'd like to have as many of these as time will allow, so send me even half baked ideas and we can discuss them. Birds of a Feather Sessions If you'd like to have a roundtable discussion on a topic that isn't on the agenda, this is your chance. BOF sessions are open discussions on a topic that generally last 30-45 minutes. Send your topics to (eric at enthought.com). Please feel free to discuss potential BOF or lightning talk topics on scipy-user at scipy.org. I look forward to seeing you all in September, eric From eric at enthought.com Wed Jul 17 02:43:29 2002 From: eric at enthought.com (eric jones) Date: Wed, 17 Jul 2002 01:43:29 -0500 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. Message-ID: <000001c22d5d$42dca4c0$6b01a8c0@ericlaptop> Hey group, Here is what we have so far: Lightning talks Adding Python to a monolithic FORTRAN simulation code By Robert Ferrell Fuzzy Logic in Numeric Python ground echo vs weather echo discrimination in weather radars. By Joe Van Andel Biggles -- A scientific plotting module for Python By Michael Nolta PyQuante, and open-source quantum chemistry suite written in Python. By Rick Muller BoFs Astronomy BoF Perry Greenfield I'd like to see at least twice this many Lightning talks -- hopefully more. Also, there is quite a large Bioinformatics contingency coming, so hopefully more of you in this community will have projects to present. Please keep the ideas coming. Thanks, eric From andrew.straw at adelaide.edu.au Wed Jul 17 03:25:10 2002 From: andrew.straw at adelaide.edu.au (Andrew Straw) Date: Wed, 17 Jul 2002 16:55:10 +0930 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <000001c22d5d$42dca4c0$6b01a8c0@ericlaptop> Message-ID: <53BC8E7C-9956-11D6-86A7-00039311EA24@adelaide.edu.au> In theory, the Vision Egg ( http://www.visionegg.org/ ) might be a good presentation. In practice, I can't see how I'll get the time or travel money to get to Pasadena by then... As much as I'd love to... Andrew On Wednesday, July 17, 2002, at 04:13 PM, eric jones wrote: > I'd like to see at least twice this many Lightning talks -- hopefully > more. Also, there is quite a large Bioinformatics contingency coming, > so hopefully more of you in this community will have projects to > present. From prabhu at aero.iitm.ernet.in Wed Jul 17 03:46:14 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 17 Jul 2002 13:16:14 +0530 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <000001c22d5d$42dca4c0$6b01a8c0@ericlaptop> References: <000001c22d5d$42dca4c0$6b01a8c0@ericlaptop> Message-ID: <15669.8390.218134.58062@monster.linux.in> >>>>> "EJ" == eric jones writes: EJ> Lightning talks [snip] EJ> Please keep the ideas coming. I cant make it and it would be nice if someone could atleast demo MayaVi (http://mayavi.sourceforge.net) and Python-VTK. I'm not sure if anyone would want to take that up. cheers, prabhu From eric at enthought.com Wed Jul 17 16:13:17 2002 From: eric at enthought.com (eric jones) Date: Wed, 17 Jul 2002 15:13:17 -0500 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <15669.8390.218134.58062@monster.linux.in> Message-ID: <000001c22dce$63780c80$6b01a8c0@ericlaptop> > >>>>> "EJ" == eric jones writes: > > EJ> Lightning talks > > [snip] > > EJ> Please keep the ideas coming. > > I cant make it and it would be nice if someone could atleast demo > MayaVi (http://mayavi.sourceforge.net) and Python-VTK. I'm not sure > if anyone would want to take that up. I agree. It is a very powerful tool that useful across many scientific disciplines. Is there anyone using MayaVi in there research that could give a review of MayaVi and how they are using it? eric From eric at enthought.com Wed Jul 17 16:20:37 2002 From: eric at enthought.com (eric jones) Date: Wed, 17 Jul 2002 15:20:37 -0500 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <53BC8E7C-9956-11D6-86A7-00039311EA24@adelaide.edu.au> Message-ID: <000101c22dcf$69e46090$6b01a8c0@ericlaptop> > > In theory, the Vision Egg ( http://www.visionegg.org/ ) might be a good > presentation. In practice, I can't see how I'll get the time or travel > money to get to Pasadena by then... As much as I'd love to... Geez, this looks cool. How did I not know about this project? Andrew, I hope you can figure out a way to come because I'd like to hear from you. If not, is there someone state side using it and willing to talk about it? Thanks, eric > > Andrew > > On Wednesday, July 17, 2002, at 04:13 PM, eric jones wrote: > > > I'd like to see at least twice this many Lightning talks -- hopefully > > more. Also, there is quite a large Bioinformatics contingency coming, > > so hopefully more of you in this community will have projects to > > present. > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From asfandyar_k at yahoo.com Fri Jul 19 19:03:55 2002 From: asfandyar_k at yahoo.com (Asfandyar Khan) Date: Fri, 19 Jul 2002 16:03:55 -0700 (PDT) Subject: [SciPy-user] Help required in Installing SciPy Message-ID: <20020719230355.71161.qmail@web11508.mail.yahoo.com> 1) Platform information: Redhat Linux 7.0 (posix linux2) 2) gcc : Version 2.96 g77 : Version 0.5.26 3) Python version: 2.2 4) Python Numeric version: 20.2.1 5) f2py version: 2.13.175-1250 6) ATLAS version : 3.4.1 7) The output of the following commands atlas_info: FOUND: libraries = ['lapack', 'f77blas', 'cblas', 'atlas'] library_dirs = ['/usr/local/lib/atlas3.4.1'] blas_info: NOT AVAILABLE blas_src_info: NOT AVAILABLE fftw_info: NOT AVAILABLE lapack_info: NOT AVAILABLE lapack_src_info: NOT AVAILABLE x11_info: FOUND: libraries = ['X11'] library_dirs = ['/usr/X11R6/lib'] include_dirs = ['/usr/X11R6/include'] python scipy_distutils/command/build_flib.py command: f77 -V -c /tmp/__dummy.f -o /tmp/__dummy.o 256 f77: installation problem, cannot exec `f771': No such file or directory f77: file path prefix `/usr/lib/gcc-lib/i386-redhat-linux/-c/' never used command: f77 -version 256 f77: unrecognized option `-version' /usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(open.o): In function `f_open': open.o(.text+0x4e6): the use of `tempnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(main.o): In function `main': main.o(.text+0x2a): undefined reference to `MAIN__' collect2: ld returned 1 exit status command: f90 -V 32512 sh: f90: command not found command: ifc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o 32512 sh: ifc: command not found command: efc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o 32512 sh: efc: command not found command: f95 -V 32512 sh: f95: command not found command: fort -V 32512 sh: fort: command not found command: DF /what 32512 sh: DF: command not found command: g77 --version 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.0) Copyright (C) 1997 Free Software Foundation, Inc. For more version information on components of the GNU Fortran compilation system, especially useful when reporting bugs, type the command `g77 --verbose'. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. command: vf90 -v 32512 sh: vf90: command not found command: f90 +version 32512 sh: f90: command not found command: g77 --version 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.0) Copyright (C) 1997 Free Software Foundation, Inc. For more version information on components of the GNU Fortran compilation system, especially useful when reporting bugs, type the command `g77 --verbose'. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. command: F -V 32512 sh: F: command not found command: g77 --version 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.0) Copyright (C) 1997 Free Software Foundation, Inc. For more version information on components of the GNU Fortran compilation system, especially useful when reporting bugs, type the command `g77 --verbose'. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. Gnu 0.5.26 8) Installation log : attatched __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: install.log Type: application/octet-stream Size: 53116 bytes Desc: install.log URL: From targetemailextractor at btamail.net.cn Sat Jul 20 08:09:20 2002 From: targetemailextractor at btamail.net.cn (targetemailextractor at btamail.net.cn) Date: Sat, 20 Jul 2002 20:09:20 +0800 Subject: [SciPy-user] ADV: Direct email blaster, email addresses extractor, maillist verify, maillist manager........... Message-ID: <20020720121335.958113EAC0@www.scipy.com> An HTML attachment was scrubbed... URL: From targetemailextractor at btamail.net.cn Sat Jul 20 11:35:40 2002 From: targetemailextractor at btamail.net.cn (targetemailextractor at btamail.net.cn) Date: Sat, 20 Jul 2002 23:35:40 +0800 Subject: [SciPy-user] ADV: Direct email blaster, email addresses extractor, maillist verify, maillist manager........... Message-ID: <20020720154002.577603EAC0@www.scipy.com> An HTML attachment was scrubbed... URL: From mazer at socrates.berkeley.edu Sun Jul 21 22:56:30 2002 From: mazer at socrates.berkeley.edu (James Mazer) Date: Sun, 21 Jul 2002 19:56:30 -0700 Subject: [SciPy-user] matlab griddata() clone? Message-ID: <15675.29790.217826.966171@mdma.jlg.berkeley.edu> Hi - Before I reinvent the wheel, I was wondering if anyone's already written a scipy/Numeric implementation of the matlab griddata() function for 2d interpolation of *non-gridded* datasets they would like to share? Unfortunately, my dataset is irregularly sampled, so I can't use the scipy InterpolatingFunction generator. Thanks a lot, /jamie -- office: 510-643-3573 mail: 3210 Tolman Hall #1650 lab: 510-642-1950 U.C. Berkeley fax: 801-697-4179 Berkeley, CA 94720-1650 email: mazer at socrates.berkeley.edu From bhoel at web.de Mon Jul 22 14:36:15 2002 From: bhoel at web.de (Berthold =?iso-8859-15?q?H=F6llmann?=) Date: 22 Jul 2002 20:36:15 +0200 Subject: [SciPy-user] CVS problem Message-ID: Hello, Following the instructions on http://www.scipy.org/site_content/tutorials/CVSInstruct I tried to download a CVS copy of scipy. But the cvs -d :pserver:anonymous at scipy.org:/home/cvsroot co scipy never returns. The last message from the call is U scipy/xplt/gist/xfont.h U scipy/xplt/gist/xicky.c U scipy/xplt/gist/xicky.h and waiting for up to some hours did not show any differences. What is going wrong here? Anyone with better luck? Greetings Berthold -- bhoel at web.de / http://starship.python.net/crew/bhoel/ It is unlawful to use this email address for unsolicited ads (USC Title 47 Sec.227). I will assess a US$500 charge for reviewing and deleting each unsolicited ad. From pearu at cens.ioc.ee Mon Jul 22 16:04:42 2002 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Mon, 22 Jul 2002 23:04:42 +0300 (EEST) Subject: [SciPy-user] CVS problem In-Reply-To: Message-ID: Hi Berthold, On 22 Jul 2002, Berthold [iso-8859-15] H?llmann wrote: > Hello, > > Following the instructions on > > http://www.scipy.org/site_content/tutorials/CVSInstruct > > I tried to download a CVS copy of scipy. But the > > cvs -d :pserver:anonymous at scipy.org:/home/cvsroot co scipy > > never returns. The last message from the call is > > U scipy/xplt/gist/xfont.h > U scipy/xplt/gist/xicky.c > U scipy/xplt/gist/xicky.h > > and waiting for up to some hours did not show any differences. What is > going wrong here? Anyone with better luck? This is known problem and is related to cvs server at scipy.org. See http://www.scipy.org/site_content/remap?rmurl=http%3A//66.106.86.196/pipermail/scipy-user/2002-May/000390.html File scipy/xplt/gist/xicky.h is the last one from the CVS repository. So it is safe to cancel the checkout (with Ctrl-C) and proceed with scipy build/install/.. HTH, Pearu From fperez at pizero.colorado.edu Mon Jul 22 18:08:31 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Mon, 22 Jul 2002 16:08:31 -0600 (MDT) Subject: [SciPy-user] weave and access to Numeric arrays Message-ID: Hi folks, I have a weave question. Is it possible to access the data for a 1-d Numeric array as a raw C array through weave? Up to now I've successfully used the blitz type converters, but I'm writing a sparse matrix algorithm where I want to do the pointer arithmetic by hand, as it's very straightforward and I need the thing to run really fast. So if say A=Numeric.array([1,4.5,3.6]), is there a way in inlined weave code to do something like sum=0.0; for(i=0;i Message-ID: <000001c231e4$82c57b80$69167343@ericlaptop> Hey Fernando, Here is an example that hopefully does what you want. eEric # f.py from scipy import weave def sum(x): code = """ float result=0; for (i = 0; i < _Nx; i++) result += x_data[i]; return_val = Py::new_reference_to(Py::Float(result)); """ return weave.inline(code,['x']) from scipy import * x = ones(10,typecode=Float32) print sum(x) C:\home\eric\STSci\chaco>python f.py 10.0 > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Fernando Perez > Sent: Monday, July 22, 2002 5:09 PM > To: scipy-user at scipy.org > Subject: [SciPy-user] weave and access to Numeric arrays > > Hi folks, > > I have a weave question. Is it possible to access the data for a 1-d > Numeric > array as a raw C array through weave? Up to now I've successfully used the > blitz type converters, but I'm writing a sparse matrix algorithm where I > want > to do the pointer arithmetic by hand, as it's very straightforward and I > need > the thing to run really fast. > > So if say A=Numeric.array([1,4.5,3.6]), is there a way in inlined weave > code > to do something like > > sum=0.0; > for(i=0;i sum += *(A_data+i); > } > > for some way of having A_data be the pointer to the 'real' data in the > Numeric > array A? > > Thanks, > > f. > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From fperez at pizero.colorado.edu Mon Jul 22 21:19:25 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Mon, 22 Jul 2002 19:19:25 -0600 (MDT) Subject: [SciPy-user] weave and access to Numeric arrays In-Reply-To: <000001c231e4$82c57b80$69167343@ericlaptop> Message-ID: On Mon, 22 Jul 2002, eric jones wrote: > # f.py > from scipy import weave > > def sum(x): > code = """ > float result=0; > for (i = 0; i < _Nx; i++) > result += x_data[i]; > return_val = Py::new_reference_to(Py::Float(result)); > """ > return weave.inline(code,['x']) > > from scipy import * > > x = ones(10,typecode=Float32) > print sum(x) > > C:\home\eric\STSci\chaco>python f.py > 10.0 Wow, Eric, hold it! How does that code work? I had to test it on my machine before I actually believed it! A few questions: 1. Why don't you need to declare i? I was always declaring my counters everywhere. What are the rules for what gets magically created by weave? I wasn't aware of this. 2. Who creates x_data and _Nx? How can I know which magical variables exist, and what they correspond to in the Numeric C API? I've read what a numeric array looks like in C, so if there's a way of knowing how the various fields of that structure are visible in the weave code, that would be great. Esp. for multi-dimensional arrays are there various _N's? If this is documented somewhere, feel free to tell me to RTFM. But I've read in the past the weave docs and certainly all of this is news to me. I have that page of weave examples I told you about and I could include and document some of this for public consumption once I understand it. I read all the examples in weave/examples, and I see some of this _N stuff but zero comments about it. I'd greatly appreciate it if you give me a couple of pointers on this. I'll pay you back by adding the newly gained wisdom to my weave examples page and reposting it here on the list for other's benefit. Thanks a lot, f. ps. And yes, what you gave me is exactly what I wanted. I just now want to really understand how it ticks for other more complicated cases I need to deal with. From fperez at pizero.colorado.edu Mon Jul 22 22:13:36 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Mon, 22 Jul 2002 20:13:36 -0600 (MDT) Subject: [SciPy-user] weave and access to Numeric arrays In-Reply-To: Message-ID: Hi Eric, here's a followup. I suspect your 'from scipy import *' was triggering a call to the normal Numeric sum() function instead of the C one you gave me. Because when I moved that code to another file it didn't work :) Don't worry about details now, by compiling the code with verbose=2 I found where the .cpp file was and now I'm reading that. So the details are coming to light :) I'm wondering why you chose the following: int* _Nx = x->dimensions; int* _Sx = x->strides; int _Dx = x->nd; float* x_data = (float*) x->data; why not x_dimensions, x_strides, ..? esp. since you have x_data? It seems like a slightly more natural naming convention. But I guess now at least I realize that the lines py_x= get_variable("x",raw_locals,raw_globals); PyArrayObject* x = convert_to_numpy(py_x,"x"); mean that x is available in all its glory in the C code, so as long as I read the Numpy C API docs I should be able to survive. Thanks a lot for your help. Once I understand all this I'll update my weave_examples page and post the link here. Cheers, f. From fperez at pizero.colorado.edu Mon Jul 22 22:55:15 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Mon, 22 Jul 2002 20:55:15 -0600 (MDT) Subject: [SciPy-user] Re: weave and access to Numeric arrays In-Reply-To: Message-ID: Final followup. Here's a modified version of your code with some extra comments which may be useful for others in this situation. Now I see how nice some of the type handling magic that weave does is! #!/usr/bin/env python import Numeric as N from scipy import weave def sumC(x): """Return the sum of the elements of a 1-d array. An example of how weave accesses a Numeric array without blitz. """ num_types = {N.Float:'double', N.Float32:'float'} x_type = num_types[x.typecode()] code = """ double result=0.0; double element; for (int i = 0; i < _Nx[0]; i++){ // Note the type of the pointer below is computed in python //element = *(%s *)(x->data+i*x->strides[0]); // Weave's magic does the above for us: element = x_data[i]; result += element; cout << "Element " << i << " = " << element << "\n"; } cout << "size x " << _Nx[0] << "\n"; return_val = Py::new_reference_to(Py::Float(result)); """ % x_type; return weave.inline(code,['x'],verbose=0) x = N.ones(5,typecode=N.Float32) y = N.array([4.3,1.5,5.6],typecode=N.Float) z = N.array([4.3,1.5,5.6],typecode=N.Float32) print x print sumC(x) print print y print sumC(y) print print z print sumC(z) #--------------------------------------------------------------------------- I've posted an updated version of my weave examples with this at: http://www-hep.colorado.edu/~fperez/python/python-c/weave_examples.html http://www-hep.colorado.edu/~fperez/python/python-c/weave_examples.py One is color highlighted, the other pure text for python use. Again, thanks a lot Eric. Cheers, f. From russellcecala at netscape.net Tue Jul 23 14:12:34 2002 From: russellcecala at netscape.net (Russell Cecala) Date: Tue, 23 Jul 2002 14:12:34 -0400 Subject: [SciPy-user] weave.test() fails Message-ID: <461D1C83.528E3FB1.22BCE93B@netscape.net> I hope that someone might be able to help me: I was following the very simple instructions for installing weave on a windows OS. Basically all one is suppose to do is have Python installed and download and run weave-0.2.3.win32.exe and then test the installation like so ... Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. IDLE 0.8 -- press F1 for help >>> import weave >>> weave.test() FAILURE to import weave.blitz_spec weave\blitz_spec.py:3: ImportError: No module named Numeric (in ?) Caught CompileError FAILURE to import weave.test_ex E:\russ\python\lib\distutils\core.py:157: CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 (in setup) creating test suite for: weave.ast_tools !! FAILURE building test for weave.ast_tools weave\tests\test_ast_tools.py:2: ImportError: No module named Numeric (in ?) No test suite found for weave.base_info No test suite found for weave.base_spec No test suite found for weave.blitz_info No test suite found for weave.blitz_tools creating test suite for: weave.build_tools creating test suite for: weave.catalog No test suite found for weave.code_blocks No test suite found for weave.common_info creating test suite for: weave.common_spec No test suite found for weave.conversion_code No test suite found for weave.conversion_code_classes No test suite found for weave.conversion_code_old No test suite found for weave.cxx_info No test suite found for weave.dumbdbm_patched No test suite found for weave.dumb_shelve creating test suite for: weave.ext_tools building extensions here: C:\TEMP\python22_compiled\3572 building extensions here: C:\TEMP\python22_compiled\3573 No test suite found for weave.inline_info creating test suite for: weave.inline_tools !! FAILURE building test for weave.inline_tools weave\tests\test_inline_tools.py:2: ImportError: No module named Numeric (in ?) No test suite found for weave.lib2def No test suite found for weave.misc No test suite found for weave.scalar_info creating test suite for: weave.scalar_spec creating test suite for: weave.sequence_spec No test suite found for weave.size_check creating test suite for: weave.slice_handler No test suite found for weave.standard_array_info No test suite found for weave.standard_array_spec No test suite found for weave.swig_info No test suite found for weave.wx_info No test suite found for weave.wx_spec warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations ....warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations ...............................EEE.EEEEEEEE....EEEE....EEE....EEEE................ ====================================================================== ERROR: check_file_to_py (test_common_spec.test_file_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 32, in check_file_to_py file = inline_tools.inline(code,['file_name']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_py_to_file (test_common_spec.test_file_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 17, in check_py_to_file inline_tools.inline(code,['file']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_call_function (test_common_spec.test_callable_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 56, in check_call_function actual = inline_tools.inline(code,['func','search_str','sub_str']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_multi_functions (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 37, in check_multi_functions mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_return_tuple (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 94, in check_return_tuple mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: Simplest possible module ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 27, in check_simple mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_string_and_int (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 73, in check_string_and_int mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_with_include (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 58, in check_with_include mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: Simplest possible function ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 108, in check_simple mod.compile(location = build_dir) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_int_return (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 109, in check_int_return mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_int_var_local (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 90, in check_int_var_local mod.compile(location = test_dir, compiler= self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_var_in (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 65, in check_var_in mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_return (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 183, in check_float_return mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_var_in (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 140, in check_float_var_in mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_var_local (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 164, in check_float_var_local mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_return (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 256, in check_complex_return mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_var_in (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 213, in check_complex_var_in mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_var_local (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 237, in check_complex_var_local mod.compile(location = test_dir, compiler = self.compiler) File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_dict (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 12, in check_convert_to_dict inline_tools.inline("",['d']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_list (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 15, in check_convert_to_list inline_tools.inline("",['l']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_string (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 18, in check_convert_to_string inline_tools.inline("",['s']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_tuple (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 21, in check_convert_to_tuple inline_tools.inline("",['t']) File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ---------------------------------------------------------------------- Ran 86 tests in 12.338s FAILED (errors=22) >>> What did I do wrong? Thanks __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From fperez at pizero.colorado.edu Tue Jul 23 14:18:20 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Tue, 23 Jul 2002 12:18:20 -0600 (MDT) Subject: [SciPy-user] weave.test() fails In-Reply-To: <461D1C83.528E3FB1.22BCE93B@netscape.net> Message-ID: On Tue, 23 Jul 2002, Russell Cecala wrote: > I was following the very simple instructions for > installing weave on a windows OS. > > Basically all one is suppose to do is have Python > installed and download and run weave-0.2.3.win32.exe > and then test the installation like so ... > > Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 > Type "copyright", "credits" or "license" for more information. > IDLE 0.8 -- press F1 for help > >>> import weave > >>> weave.test() > FAILURE to import weave.blitz_spec > weave\blitz_spec.py:3: ImportError: No module named Numeric (in ?) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a much better report. The above line is your first problem. Weave depends on Numeric, which you seem not to have installed on your system. You can find Numeric at http://sourceforge.net/project/showfiles.php?group_id=1369 Note that you want to download one of the Numeric-21 releases, NOT a numarray- one. Numarray is a new generation of Numeric, still experimental. After Numeric loads correctly you may still see other problems, but take one step at a time. cheers, f From russellcecala at netscape.net Tue Jul 23 14:35:08 2002 From: russellcecala at netscape.net (Russell Cecala) Date: Tue, 23 Jul 2002 14:35:08 -0400 Subject: [SciPy-user] weave.test() fails (Caught CompileError) Message-ID: <4E9A7AC4.5489C75E.22BCE93B@netscape.net> Thanks! Fernando, Please excuse my ignorance. I am new to Python, weave, and windows. I finally figured out to use IDLE. But the only way I know to start IDLE is to find a .py file in "Windows Explorer" and click on it. Is there a IDLE.exe I can run from a command-line? (*not a important question*) I have installed Numeric Here's what is going on now. I downloaded and executed Numeric-21.0.win32.py2.2.exe Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. IDLE 0.8 -- press F1 for help >>> import weave >>> weave.test() Caught CompileError FAILURE to import weave.test_ex E:\russ\python\lib\distutils\core.py:157: CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 (in setup) creating test suite for: weave.ast_tools No test suite found for weave.base_info No test suite found for weave.base_spec No test suite found for weave.blitz_info No test suite found for weave.blitz_spec creating test suite for: weave.blitz_tools creating test suite for: weave.build_tools creating test suite for: weave.catalog No test suite found for weave.code_blocks No test suite found for weave.common_info creating test suite for: weave.common_spec No test suite found for weave.conversion_code No test suite found for weave.conversion_code_classes No test suite found for weave.conversion_code_old No test suite found for weave.cxx_info No test suite found for weave.dumbdbm_patched No test suite found for weave.dumb_shelve creating test suite for: weave.ext_tools building extensions here: C:\TEMP\python22_compiled\3610 building extensions here: C:\TEMP\python22_compiled\3611 No test suite found for weave.inline_info creating test suite for: weave.inline_tools No test suite found for weave.lib2def No test suite found for weave.misc No test suite found for weave.scalar_info creating test suite for: weave.scalar_spec creating test suite for: weave.sequence_spec creating test suite for: weave.size_check creating test suite for: weave.slice_handler No test suite found for weave.standard_array_info creating test suite for: weave.standard_array_spec No test suite found for weave.swig_info No test suite found for weave.wx_info No test suite found for weave.wx_spec ... Expression: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1]+ b[1:-1,2:] + b[1:-1,:-2]) / 5. Run: (10, 10) f Ewarning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations ....warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations ...............................EEE.EEEEEEEEE....EEEE....EEE....EEEE............................................................................................. ====================================================================== ERROR: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1] ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\russ\python\weave\tests\test_blitz_tools.py", line 154, in check_5point_avg_2d self.generic_2d(expr) File "E:\russ\python\weave\tests\test_blitz_tools.py", line 128, in generic_2d mod_location) File "E:\russ\python\weave\tests\test_blitz_tools.py", line 84, in generic_test blitz_tools.blitz(expr,arg_dict,{},verbose=0) #, File "weave\blitz_tools.py", line 99, in blitz File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 138, in setup dist.run_commands() File "E:\russ\python\lib\distutils\dist.py", line 893, in run_commands self.run_command(cmd) File "E:\russ\python\lib\distutils\dist.py", line 913, in run_command cmd_obj.run() File "E:\russ\python\lib\distutils\command\build_ext.py", line 230, in run force=self.force) File "E:\russ\python\lib\distutils\ccompiler.py", line 957, in new_compiler return klass (verbose, dry_run, force) File "weave\build_tools.py", line 375, in __init__ File "weave\build_tools.py", line 421, in build_import_library ImportError: No module named lib2def ====================================================================== ERROR: check_file_to_py (test_common_spec.test_file_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 32, in check_file_to_py File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_py_to_file (test_common_spec.test_file_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 17, in check_py_to_file File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_call_function (test_common_spec.test_callable_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_common_spec.py", line 56, in check_call_function File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_multi_functions (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 37, in check_multi_functions File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_return_tuple (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 94, in check_return_tuple File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: Simplest possible module ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 27, in check_simple File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_string_and_int (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 73, in check_string_and_int File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_with_include (test_ext_tools.test_ext_module) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 58, in check_with_include File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: Simplest possible function ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_ext_tools.py", line 108, in check_simple File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_exceptions (test_inline_tools.test_inline) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_inline_tools.py", line 23, in check_exceptions File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_int_return (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 109, in check_int_return File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_int_var_local (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 90, in check_int_var_local File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_var_in (test_scalar_spec.test_msvc_int_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 65, in check_var_in File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_return (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 183, in check_float_return File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_var_in (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 140, in check_float_var_in File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_float_var_local (test_scalar_spec.test_msvc_float_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 164, in check_float_var_local File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_return (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 256, in check_complex_return File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_var_in (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 213, in check_complex_var_in File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_complex_var_local (test_scalar_spec.test_msvc_complex_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_scalar_spec.py", line 237, in check_complex_var_local File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_dict (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 12, in check_convert_to_dict File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_list (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 15, in check_convert_to_list File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_string (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 18, in check_convert_to_string File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ====================================================================== ERROR: check_convert_to_tuple (test_sequence_spec.test_sequence_specification) ---------------------------------------------------------------------- Traceback (most recent call last): File "weave\tests\test_sequence_spec.py", line 21, in check_convert_to_tuple File "weave\inline_tools.py", line 327, in inline File "weave\inline_tools.py", line 426, in compile_function File "weave\ext_tools.py", line 349, in compile File "weave\build_tools.py", line 194, in build_extension File "E:\russ\python\lib\distutils\core.py", line 157, in setup raise SystemExit, "error: " + str(msg) CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 ---------------------------------------------------------------------- Ran 168 tests in 15.202s FAILED (errors=24) >>> __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From eric at enthought.com Tue Jul 23 14:51:57 2002 From: eric at enthought.com (eric jones) Date: Tue, 23 Jul 2002 13:51:57 -0500 Subject: [SciPy-user] weave and access to Numeric arrays In-Reply-To: Message-ID: <000001c2327a$07040ca0$3001a8c0@ericlaptop> Hey Fernando, I sent that code out to fast -- when it works you believe it even when you shouldn't. :) The "sum" that your printing is actually imported by the "from scipy import *" -- not the weavified sum. So of course it works. I've included a new example and with verbose=2, you see the code compile (and can be sure it actually is used). You'll note that "i" is now defined. :) As far as the magic variables, I don't think they are documented anywhere so the only place to look is the source. Look in weave.standard_array_spec.py. The following code snippet reveals (somewhat cryptically) the magic variables. def inline_decl_code(self): type = numeric_to_c_type_mapping[self.numeric_type] name = self.name #dims = self.dims var_name = self.retrieve_py_variable(inline=1) templ = '// %(name)s array declaration\n' \ <...> 'int* _N%(name)s = %(name)s->dimensions;\n' \ 'int* _S%(name)s = %(name)s->strides;\n' \ 'int _D%(name)s = %(name)s->nd;\n' \ '%(type)s* %(name)s_data = (%(type)s*) %(name)s->data;\n' code = templ % locals() return code For our example where "x" is an array, _Nx is the array with lengths to each dimension, _Sx is the strides array, _Dx is the number of dimensions, and x_data is the array data. eric ############################################################## #f.py from scipy import weave def my_sum(x): code = """ float result=0; for (int i = 0; i < _Nx[0]; i++) result += x_data[i]; return_val = Py::new_reference_to(Py::Float(result)); """ return weave.inline(code,['x'],verbose=2) from scipy import * x = ones(10,typecode=Float32) print my_sum(x) > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Fernando Perez > Sent: Monday, July 22, 2002 8:19 PM > To: scipy-user at scipy.net > Subject: RE: [SciPy-user] weave and access to Numeric arrays > > On Mon, 22 Jul 2002, eric jones wrote: > > > # f.py > > from scipy import weave > > > > def sum(x): > > code = """ > > float result=0; > > for (i = 0; i < _Nx; i++) > > result += x_data[i]; > > return_val = Py::new_reference_to(Py::Float(result)); > > """ > > return weave.inline(code,['x']) > > > > from scipy import * > > > > x = ones(10,typecode=Float32) > > print sum(x) > > > > C:\home\eric\STSci\chaco>python f.py > > 10.0 > > Wow, Eric, hold it! How does that code work? I had to test it on my > machine > before I actually believed it! A few questions: > > 1. Why don't you need to declare i? I was always declaring my counters > everywhere. What are the rules for what gets magically created by weave? > I > wasn't aware of this. > > 2. Who creates x_data and _Nx? How can I know which magical variables > exist, > and what they correspond to in the Numeric C API? I've read what a numeric > array looks like in C, so if there's a way of knowing how the various > fields > of that structure are visible in the weave code, that would be great. Esp. > for > multi-dimensional arrays are there various _N's? > > If this is documented somewhere, feel free to tell me to RTFM. But I've > read > in the past the weave docs and certainly all of this is news to me. I have > that page of weave examples I told you about and I could include and > document > some of this for public consumption once I understand it. I read all the > examples in weave/examples, and I see some of this _N stuff but zero > comments > about it. > > I'd greatly appreciate it if you give me a couple of pointers on this. > I'll > pay you back by adding the newly gained wisdom to my weave examples page > and > reposting it here on the list for other's benefit. > > Thanks a lot, > > f. > > ps. And yes, what you gave me is exactly what I wanted. I just now want to > really understand how it ticks for other more complicated cases I need to > deal > with. > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From boyle5 at llnl.gov Tue Jul 23 15:21:05 2002 From: boyle5 at llnl.gov (boyle5 at llnl.gov) Date: Tue, 23 Jul 2002 12:21:05 -0700 Subject: [SciPy-user] chaco: maccore2d where is W? Message-ID: <555EACF2-9E71-11D6-94F2-003065D7F43A@llnl.gov> I got chaco off cvs and attempted to run the maccore2d.py code which generates test samples. The code fails at the line(586): import W The developers page indicates that the Mac OSX code has no other dependencies outside of Numeric. I am at a loss as where this module ( 'W' ) should come from. Looking at the code it is some graphics /gui stuff since it has W.widget and W.window methods. I am using OS X 10.1.5, python 2.2.1,Numeric 21.0. Thanks for any help Jim From fperez at pizero.colorado.edu Tue Jul 23 17:02:58 2002 From: fperez at pizero.colorado.edu (Fernando Perez) Date: Tue, 23 Jul 2002 15:02:58 -0600 (MDT) Subject: [SciPy-user] weave.test() fails (Caught CompileError) In-Reply-To: <4E9A7AC4.5489C75E.22BCE93B@netscape.net> Message-ID: > Please excuse my ignorance. I am new > to Python, weave, and windows. > I finally figured out to use IDLE. > But the only way I know to start > IDLE is to find a .py file in "Windows Explorer" > and click on it. Is there a IDLE.exe I can > run from a command-line? (*not a important question*) Well, I've installed python on windows in the past, and I did get a python menu in the start menu with IDLE as one of the options. Look for that. > I have installed Numeric > Here's what is going on now. > I downloaded and executed Numeric-21.0.win32.py2.2.exe Good. Now the Numeric errors are gone. > Ewarning: specified build_dir '_bad_path_' does not exist or is or is not > writable. Trying default locations This seems to be the heart of the problem. Unfortunately I don't know enough about weave's internals to be of help here, sorry. Cheers, f. From russellcecala at netscape.net Tue Jul 23 17:29:47 2002 From: russellcecala at netscape.net (Russell Cecala) Date: Tue, 23 Jul 2002 17:29:47 -0400 Subject: [SciPy-user] weave.test() fails (Caught CompileError) Message-ID: <60308EA5.082ED762.22BCE93B@netscape.net> Thanks Fernando Perez! You have restored my faith in Python and SciPy. I will post a quetion about _bad_path_ errors I am getting. Again Thanks! __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From boyle5 at llnl.gov Tue Jul 23 17:49:29 2002 From: boyle5 at llnl.gov (boyle5 at llnl.gov) Date: Tue, 23 Jul 2002 14:49:29 -0700 Subject: [SciPy-user] chaco:I found W, now what? In-Reply-To: Message-ID: <10BD65B6-9E86-11D6-94F2-003065D7F43A@llnl.gov> Thanks Rob, I found W as part ot the MacPython distribution. Still no joy - there seems to be some incompatibility between the Carbon libs I have and those used by W. Also I do not have 'waste'. I think my difficulties stem from my utter lack of understanding of the relation between mac-python, macho-python, python-python. Maybe the Chaco developer's page could describe the python installation for OSX that is being used for their testing. Jim On Tuesday, July 23, 2002, at 12:40 PM, Rob Managan wrote: >> I got chaco off cvs and attempted to run the maccore2d.py code which >> generates test >> samples. >> The code fails at the line(586): >> import W >> >> The developers page indicates that the Mac OSX code has no other >> dependencies outside of Numeric. >> >> I am at a loss as where this module ( 'W' ) should come from. Looking >> at the code it is some graphics /gui stuff >> since it has W.widget and W.window methods. >> >> I am using OS X 10.1.5, python 2.2.1,Numeric 21.0. >> >> Thanks for any help >> >> Jim > I am ignorant of the detail but can tell you that module W is part of > the MacPython IDE. You probably have the pure unix Python installed. > -- *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- > Rob Managan > LLNL ph: 925-423-0903 > P.O. Box 808, L-095 FAX: 925-422-3389 > Livermore, CA 94551-0808 > > From eric at enthought.com Tue Jul 23 20:38:53 2002 From: eric at enthought.com (eric jones) Date: Tue, 23 Jul 2002 19:38:53 -0500 Subject: [SciPy-user] chaco:I found W, now what? In-Reply-To: <10BD65B6-9E86-11D6-94F2-003065D7F43A@llnl.gov> Message-ID: <000201c232aa$7cf07e00$3001a8c0@ericlaptop> Hey Jim, Chaco itself is in quite a state of flux with things breaking and getting fixed on a daily or at least weekly basis. Until it stabilizes a little more, keeping the docs updated will be difficult. Sorry about that, and I ask for your patience. :) Also, most advances are made in wxPython first. On the positive side, it is getting close to being a full implementation -- well as full of implementation as we plan. My experience with a the Mac and Python cover a total of maybe 2 days, and the whole thing continues to befuddle me. Line endings, framework vs. non-framework builds, resource forks, creator type, etc. I haven't figured them out yet. The main reason of porting to the Mac OS (so far) is to compare Chaco against Quartz's behavior. They should be pretty much the same. I managed to get an initial test of the mac stuff working, but, after seeing that it looked the same, I haven't maintained it. I'm hoping someone more comfortable on OSX will pick it up at some point. All of that said, I think it should all still run. As I remember, the tests were done from the MacPython command line. The following might work. >>> import maccore2d >>> maccore2d.show_all_samplers() Sorry I can't be of more help. Eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of boyle5 at llnl.gov > Sent: Tuesday, July 23, 2002 4:49 PM > To: scipy-user at scipy.net > Subject: [SciPy-user] chaco:I found W, now what? > > Thanks Rob, I found W as part ot the MacPython distribution. > > Still no joy - there seems to be some incompatibility between the Carbon > libs I have > and those used by W. Also I do not have 'waste'. > > I think my difficulties stem from my utter lack of understanding of the > relation between mac-python, macho-python, python-python. > > Maybe the Chaco developer's page could describe the python installation > for OSX that is being used for their testing. > > Jim > > > On Tuesday, July 23, 2002, at 12:40 PM, Rob Managan wrote: > > >> I got chaco off cvs and attempted to run the maccore2d.py code which > >> generates test > >> samples. > >> The code fails at the line(586): > >> import W > >> > >> The developers page indicates that the Mac OSX code has no other > >> dependencies outside of Numeric. > >> > >> I am at a loss as where this module ( 'W' ) should come from. Looking > >> at the code it is some graphics /gui stuff > >> since it has W.widget and W.window methods. > >> > >> I am using OS X 10.1.5, python 2.2.1,Numeric 21.0. > >> > >> Thanks for any help > >> > >> Jim > > I am ignorant of the detail but can tell you that module W is part of > > the MacPython IDE. You probably have the pure unix Python installed. > > -- *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- > > Rob Managan > > LLNL ph: 925-423-0903 > > P.O. Box 808, L-095 FAX: 925-422-3389 > > Livermore, CA 94551-0808 > > > > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From russellcecala at netscape.net Tue Jul 23 22:47:11 2002 From: russellcecala at netscape.net (russell cecala) Date: Tue, 23 Jul 2002 19:47:11 -0700 Subject: [SciPy-user] weave install problems. Message-ID: <3D3E152F.9080703@netscape.net> Hi, I don't I am installing weave correctly ... Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. IDLE 0.8 -- press F1 for help >>> import weave >>> weave.test() FAILURE to import weave.blitz_spec C:\Joe\Python\weave\blitz_spec.py:3: ImportError: No module named Numeric (in ?) Caught CompileError 1) result was: 2 FAILURE to import weave.test_ex C:\Joe\Python\lib\distutils\core.py:157: CompileError: error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"' failed with exit status 2 (in setup) creating test suite for: weave.ast_tools !! FAILURE building test for weave.ast_tools C:\Joe\Python\weave\tests\test_ast_tools.py:2: ImportError: No module named Numeric (in ?) No test suite found for weave.base_info No test suite found for weave.base_spec ... please help. Thanks From eric at enthought.com Wed Jul 24 18:32:11 2002 From: eric at enthought.com (eric jones) Date: Wed, 24 Jul 2002 17:32:11 -0500 Subject: [SciPy-user] weave install problems. In-Reply-To: <3D3E152F.9080703@netscape.net> Message-ID: <000101c23361$f3e4af10$b201a8c0@ericlaptop> Hey Russell, It looks like your still having troubles importing Numeric. Try the following: >>> import Numeric >>> import weave If the first works, but the 2nd doesn't, saying it can't find Numeric, then weave might be munging the PYTHONPATH in some way that it isn't finding it. It does play with the path some, but I have never seen it break the path so that other modules aren't found. Eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of russell cecala > Sent: Tuesday, July 23, 2002 9:47 PM > To: scipy-user at scipy.net > Cc: Russell Cecala > Subject: [SciPy-user] weave install problems. > > Hi, > > I don't I am installing weave correctly ... > > Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32 > Type "copyright", "credits" or "license" for more information. > IDLE 0.8 -- press F1 for help > >>> import weave > >>> weave.test() > FAILURE to import weave.blitz_spec > C:\Joe\Python\weave\blitz_spec.py:3: ImportError: No module named > Numeric (in ?) > Caught CompileError > 1) result was: 2 > FAILURE to import weave.test_ex > C:\Joe\Python\lib\distutils\core.py:157: CompileError: error: command > '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"' failed with > exit status 2 (in setup) > creating test suite for: weave.ast_tools > !! FAILURE building test for weave.ast_tools > C:\Joe\Python\weave\tests\test_ast_tools.py:2: ImportError: No > module named Numeric (in ?) > No test suite found for weave.base_info > No test suite found for weave.base_spec > > ... please help. > > Thanks > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From russellcecala at netscape.net Wed Jul 24 21:42:37 2002 From: russellcecala at netscape.net (russell cecala) Date: Wed, 24 Jul 2002 18:42:37 -0700 Subject: [SciPy-user] weave install problems Message-ID: <3D3F578D.5080301@netscape.net> Hey Eric, You are right. I am not able to import Numeric. Looky ... >>> import Numeric Traceback (most recent call last): File "", line 1, in ? import Numeric ImportError: No module named Numeric >>> ... I could of soar I installed it. :/ How would I check to see if Numeric is installed correctly? Russ From doug at idsia.ch Thu Jul 25 12:52:35 2002 From: doug at idsia.ch (Douglas Eck) Date: Thu, 25 Jul 2002 18:52:35 +0200 Subject: [SciPy-user] Newbie question Message-ID: <3D402CD3.40408@idsia.ch> Can someone help me with this. Please? I'm using python 2.2 with scipy version '0.2.0_alpha_105.3694' on a debian sid (unstable) box. I also installed wxGTK-gl-2.3.2 so that python 2.2 would work. I am heavily using plt.plot and think it's very nice. Thanks. The problem is, only sometimes does the zooming work. I'd say about 33% of the time. Other times, no error is seen, the plot displays, but the zoom never comes up. I have to restart the python interpreter and run my program again. 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. wxGTK? Python 2.2? my X server? SciPy? Bad karma with tkinter's guithread? Thanks for any help! Doug Eck -- Dr. Douglas Eck, http://www.idsia.ch/~doug Istituto Dalle Molle di Studi sull'Intelligenza Artificiale (IDSIA) Neural Networks, Rhythm Perception and Production, Dynamical Systems From prabhu at aero.iitm.ernet.in Thu Jul 25 13:23:31 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 25 Jul 2002 22:53:31 +0530 Subject: [SciPy-user] Newbie question In-Reply-To: <3D402CD3.40408@idsia.ch> References: <3D402CD3.40408@idsia.ch> Message-ID: <15680.13331.209812.253246@monster.linux.in> >>>>> "DE" == Douglas Eck writes: DE> The problem is, only sometimes does the zooming work. I'd say DE> about 33% of the time. Other times, no error is seen, the plot DE> displays, but the zoom never comes up. I have to restart the DE> python interpreter and run my program again. DE> I think it is a threading issue but I'm not really sure how to DE> track it down nor how to fix it. Are you sure you are importing gui_thread before you start using plt? IIRC you need to do something like: import gui_thread from scipy import plt plt.plot([1,2,3]) etc. The first line is extremely important and if not done can cause random behaviour. cheers, prabhu From doug at idsia.ch Thu Jul 25 13:32:47 2002 From: doug at idsia.ch (Douglas Eck) Date: Thu, 25 Jul 2002 19:32:47 +0200 Subject: [SciPy-user] Newbie question References: <3D402CD3.40408@idsia.ch> <15680.13331.209812.253246@monster.linux.in> Message-ID: <3D40363F.80407@idsia.ch> That did it. I had it backwards. I knew that *when* gui_thread loaded was important... but I thought it was to be loaded last not first. Thanks for your note. It saves me a lot of restarts. Cheers, Doug Prabhu Ramachandran wrote: >>>>>>"DE" == Douglas Eck writes: >>>>> > > > DE> The problem is, only sometimes does the zooming work. I'd say > DE> about 33% of the time. Other times, no error is seen, the plot > DE> displays, but the zoom never comes up. I have to restart the > DE> python interpreter and run my program again. > > DE> I think it is a threading issue but I'm not really sure how to > DE> track it down nor how to fix it. > > Are you sure you are importing gui_thread before you start using plt? > IIRC you need to do something like: > > import gui_thread > from scipy import plt > plt.plot([1,2,3]) > > etc. > > The first line is extremely important and if not done can cause random > behaviour. > > cheers, > prabhu > From jocash at hotmail.com Mon Jul 29 12:23:55 2002 From: jocash at hotmail.com (jocash at hotmail.com) Date: Mon, 29 Jul 2002 12:23:55 -0400 Subject: [SciPy-user] Its so easy.......... Message-ID: <411-220027129162355140@jotux@usb> I?ll make you a promise. READ THIS TO THE END! Follow what it says to the letter and you will not worry whether a RECESSION is coming or not, who is President, or whether you keep your current job or not. Yes, I know what you are thinking. I never responded to one of these before either. One day though, something just said you throw away $25.00 going to a movie for 2 hours. What the heck. Believe me, no matter where you believe those feelings come from, I thank goodness every day that I had that feeling. I cannot imagine where I would be or what I would be doing had I not. Read on. It?s true. Every word of it. It is legal. I checked. Simply because you are buying something of value. AS SEEN ON NATIONAL TV: Making over half million dollars every 4 to 5 months from your home. THANK?S TO THE COMPUTER AGE AND THE INTERNET! ===================================================== BE AN INTERNET MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say, Bull, please read the following. This is the letter you have been hearing about on the news lately. Due to the popularity of this letter on the Internet, a national weekly news program recently devoted entire show to the investigation of this program described below, to see if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are absolutely NO Laws prohibiting the participation in the program and if people can follow the simple instruction they are bound to make some mega bucks with only $25 out of pocket cost. DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER. This is what one had to say: Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I am so glad I finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received a total $610,470.00 in 21 weeks, with money still coming in. Pam Hedland, Fort Lee, New Jersey. ===================================================== Another said: this program has been around for a long time but I never believed in it. But one day when I received this again in the mail I decided to gamble my $25 on it. I followed the simple instructions and walaa.3 weeks later the money started to come in. First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00. So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I am playing it again. The key to success in this program is to follow the simple steps and NOT change anything. More testimonials later but first: =========PRINT THIS NOW FOR YOUR FUTURE REFERENCE======= $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following,THEN READ IT AGAIN and AGAIN!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: ========Order all 5 reports shown on the list below========= For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail problems. =====WHEN YOU PLACE YOUR ORDER, MAKE SURE YOU ORDER EACH OF THE 5 REPORTS===== You will need all 5 reports so that you can save them on your computer and resell them. YOUR TOTAL COST $5 X 5 = $25.00 Within a few days you will receive, via e-mail, each of the 5 reports from these 5 different individuals. Save them on your computer so they will be accessible for you to send to the 1,000?s of people who will order them from you. Also, make a floppy of these reports and keep it on your desk in case something happens to your computer. IMPORTANT DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than what is instructed below in step 1 through 6 or you will loose out on the majority of your profits. Once you understand the way this works, you will also see how it does not work if you change it. Remember, this method has been tested, and if you alter it, it will NOT work!!! People have tried to put their friends/relatives names on all five thinking they could get all they money. But it doesn?t work this way. Believe us, some have tried to be greedy and then nothing happened. So Do Not try to change anything other than what is instructed. Because if you do, it will not work for you. Remember, honesty reaps the reward!!! This IS a legitimate BUSINESS. You are offering a product for sale and getting paid for it. Treat it as such and you will be VERY profitable in a short period of time. 1. After you have ordered all 5 reports, take this advertisement and REMOVE the name & address of the person in REPORT #5. This person has made it through the cycle and is doubt counting their fortune. 2. Move the name & address in REPORT #4 down to REPORT #5. 3. Move the name & address in REPORT #3 down to REPORT #4. 4. Move the name & address in REPORT #2 down to REPORT #3. 5. Move the name & address in REPORT #1 down to REPORT #2. 6. Insert YOUR name & address in the REPORT #1 Position. PLEASE MAKE SURE you copy every name & address ACCURATELY! This is critical to YOUR success. ===================================================== *****Take this entire letter, with the modified list of names, and save it on your computer. DO NOT MAKE ANY OTHER CHANGES. Save this on a disk as well just in case if you lose any data. To assist you with marketing your business on the internet, the 5 reports you purchase will provide you with invaluable marketing information which includes how to send bulk e-mails legally, where to find thousands of free classified ads and much more. There are 2 Primary methods to get this venture going: METHOD#1: BY SENDING BULK E-MAIL LEGALLY ===================================================== Let?s say that you decide to start small, just to see how it goes, and we will assume you and those involved send out only 5,000 e-mails each. Let?s also assume that the mailing receive only a 0.2% (2/10 of 1%) response (the response could be much better but lets just say it is only 0.2%). Also many people will send out hundreds of thousands e-mails instead of only 5,000 each). Continuing with this example, you send out only 5,000 e-mails. With a 0.2% response, that is only 10 orders for report #1. Those 10 people responded by sending out 5,000 e-mails each for a total of 50,000. Out of those 50,000 e-mails only 0.2% responded with orders. That?s=100 people responded and ordered Report #2. Those 100 people mail out 5,000 e-mails each for a total of 500,000 e-mails. The 0.2% response to that is1000 orders for Report #3. Those 1000 people send 5,000 e-mails each for a total of 5 million e-mails sent out. The 0.2% response is 10,000 orders for Report #4. Those 10,000 people send out 5,000 e-mails each for a total of 50,000,000 (50 million) e-mails. The 0.2% response to that is 100,000 orders for Report #5. THAT?S 100,000 ORDERS TIMES $5 EACH = $500,000.00 (half a million dollars). Your total income in this example is: 1. $50+2.. $500+3.. $5,000+4.. $50,000+5. $500,000. Grand total $555,550.00 NUMBERS DO NOT LIE. GET A PENCIL & PAPER AND FIGURE OUT THE WORST POSSIBLE RESPONSES AND NO MATTER HOW YOU CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY! ===================================================== REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE ORDERING OUT OF 5,000 YOU MAILED TO. Dare to think for a moment what would happen if everyone or half or even 4th of those people mailed 100,000 e-mails each or more? There are over 150 million people on the Internet worldwide and counting, with thousands more coming on line every day. Believe me, many people will do just that and more! METHOD #2: BY PLACING FREE ADS ON THE INTERNET ===================================================== Advertising on the net is very, very inexpensive and there are hundreds if FREE places to advertise. Placing a lot of free ads on the Internet will easily get a larger response. We strongly suggest you start with Method #1 and add Method #2 as you go along. For every $5 you receive, all you must do is e-mail them the Report they ordered. That?s it. Always provide same day service on all orders. This will guarantee that the e-mail they send out, with your name and address on it, will be prompt because they cannot advertise until they receive the report. ========AVAILABLE REPORTS========================= The reason for the cash is not because this is illegal or somehow wrong. It is simply about time. Time for checks or credit cards to be cleared or approved, etc. Concealing it is simply so no one can SEE there is money in the envelope and steal it before it gets to you. ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes: Always send $5 cash (U.S. CURRENCY) for each Report. Checks NOT accepted. Make sure the cash is concealed by wrapping it in at least 2 sheets of paper. On one of those sheets of paper write the NUMBER & NAME of the Report you are ordering, YOUR E-MAIL ADDRESS and your name and postal address. PLACE YOUR ORDER FOR THESE REPORTS NOW: ===================================================== REPORT #1: The Insider?s Guide to Advertising for Free On The Net Order Report #1 from: Joe Romano 361 Avenue U Brooklyn, NY 11223 USA ____________________________________________________________ REPORT #2: The Insider?s Guide to Sending Bulk Email on the Net Order Report #2 from: Dave Armstrong 1211 35th Street N.E Cedar Rapids, IA 52402 USA ____________________________________________________________ REPORT #3: Secret to Multilevel Marketing On The Net Order Report #3 from: Randy Dallard P.O. Box 8 Osprey, FL 34229 ____________________________________________________________ REPORT #4: How To Become a Millionaire Using MLM & The Net Order Report #4 from: Carla Brown P.O. Box 39093 Sarasota, FL 34238 USA ____________________________________________________________ REPORT #5: How To Send Out One Million Emails for Free Order Report #5 From: Glynn Schmidt P.O. Box 19424 Sarasota, FL 34276 USA ____________________________________________________________ $$$$$$$$$$$$$$$YOUR SUCCESS GUIDELINES$$$$$$$$$$$$$ Follow these guidelines to guarantee your success: ======If you do not receive at lest 10 orders for Report #1 within 2 weeks, continue sending e-mails until you do. ======After you have received 10 orders, 2 to 3 weeks after that you should receive 100 orders or more for REPORT #2. If you did not, continue advertising or sending e-mails until you do. **Once you have received 100 or more orders for Report #2, YOU CAN RELAX, because the system is already working for you, and the cash will continue to roll in! THIS IS IMPORTANT TO REMEMBER: Every time your name is moved down on the list, you are placed on a different report. You can KEEP TRACK of your PROGRESS by watching which report people are ordering from you. IF YOU WANT TO GENERATE MORE INCOME SEND ANOTHER BATCH OF E-MAILS AND START THE WHOLE PROCESS AGAIN. There is NO LIMIT to the income you can generate from this business!!! ===================================================== FOLLOWING IS A NOTE FROM THE ORGINATOR OF THIS PROGRAM: You have just received information that can give you financial freedom for the rest of your life, with NO RISK and JUST A LITTLE BIT OF EFFORT. You can make more money in the next few weeks and months than you have ever imagined. Follow the program EXACTLY AS INSTRUCTED. Do Not change it in any way. It works exceedingly well as it is now. Remember to e-mail a copy of this exciting report after you have put your name and address in Report #1 and moved others to #2..#5 as instructed above. One of the people you send this to may send out 100,000 or more e-mails and your name will be on every one of them. Remember though, the more you send out the more potential customers you will reach. So my friend, I have given you the ideas, information, materials and opportunity to become financially independent. IT IS UP TO YOU NOW!!! ===============MORE TESTIMONIALS==================== My name is Mitchell. My wife, Jody and I live in Chicago. I am an accountant with a major U.S. Corporation and I make pretty good money. When I received this program I grumbled to Jody about receiving junk mail. I made fun of the whole thing, spouting my knowledge of the population and percentages involved. I knew it wouldn?t work. Jody totally ignored my supposed intelligence and few days later she jumped in with both fee. I made merciless fun of her, and was ready to lay the old I told you so on her when the thing didn?t work. Well, the laugh was on me! Within 3 weeks she had received 50 responses. Within the next 45 days she received total $147,200.00..all cash! I was shocked. I have joined Jody in her hobby. Mitchell Wolf C.P.A., Chicago, Illinois ===================================================== Not being the gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative as I am, I decided that the initial investment was so little that there was just no way that I wouldn?t get enough orders to at least get my money back. I was surprised when I found my medium size post office box crammed with orders. I made $319,210.00 in the first 12 weeks. The nice thing about this deal is that it does not matter where people live. There simply isn?t a better investment with a faster return and so big. Dan Sondstrum Alberta, CA ===================================================== I had received this program before. I deleted it, but later I wondered if I should have given it a try. Of course, I had no idea who to contact to get another copy, so I had to wait until I was e-mailed again by someone else. 11 months passed then it luckily came again I did not delete this one! I made more than $490,000.00 on my first try and all the money came within 22 weeks. Susan De Suza, New York, N.Y. ===================================================== It really is a great opportunity to make relatively easy money with little cost to you. I followed the simple instructions carefully and within 10 days the money started to come in. My first month I made $20,560.00 and by the end of the third month my total cash count was $362,840.00. Life is beautiful, Thanks to the Internet. Fred Dellaca, Westport, New Zealand ===================================================== ORDER YOUR REPORTS TODAY AND GET STARTED ON YOUR ROAD TO FINANCIAL FREEDOM! ===================================================== If you have any questions of the legality of this program contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer Protection, and Washington, D.C. ===================================================== ONE TIME MAILING, NO NEED TO REMOVE ===================================================== From finnefro at sas.upenn.edu Mon Jul 29 12:36:02 2002 From: finnefro at sas.upenn.edu (Adam C. Finnefrock) Date: 29 Jul 2002 12:36:02 -0400 Subject: [SciPy-user] call plt.image from a wx GUI? Message-ID: <41y9buij9p.fsf@localhost.localdomain> Hi all, I have a GUI that uses wxWindows. Following the tutorial, I've been starting it like: >>> import gui_thread >>> import wxCCD >>> proxy_class = gui_thread.register(wxCCD.MainWindow) >>> win = proxy_class() Now the GUI starts without tying up the command line. I'd like the GUI to display some data in another window, so it calls plt.image(scaled_data,None,None,colormap,'no') which hangs. A simple call to plt.plot([1,2,3],[4,5,6]) does that same. (Note: plt.image, plt.plot work fine from the command line, even with the wx GUI running.) Is there a good way to call the plt functions from within a wx GUI? Thanks, Adam scipy cvs_version = (1,105,1464,3694) Python 2.2.1 Redhat 7.3 From justin at ks.uiuc.edu Tue Jul 30 16:47:55 2002 From: justin at ks.uiuc.edu (Justin Gullingsrud) Date: Tue, 30 Jul 2002 15:47:55 -0500 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <000001c22dce$63780c80$6b01a8c0@ericlaptop> References: <15669.8390.218134.58062@monster.linux.in> <000001c22dce$63780c80$6b01a8c0@ericlaptop> Message-ID: <20020730204753.GA16075@aberdeen.ks.uiuc.edu> Hi Eric, Is there still room for another Lightning Talk? I'd like to present what we've been doing with VMD and Python. Cheers, Justin On Wed, Jul 17, 2002 at 03:13:17PM -0500, eric jones wrote: > > >>>>> "EJ" == eric jones writes: > > > > EJ> Lightning talks > > > > [snip] > > > > EJ> Please keep the ideas coming. > > > > I cant make it and it would be nice if someone could atleast demo > > MayaVi (http://mayavi.sourceforge.net) and Python-VTK. I'm not sure > > if anyone would want to take that up. > > I agree. It is a very powerful tool that useful across many scientific > disciplines. Is there anyone using MayaVi in there research that could > give a review of MayaVi and how they are using it? > > eric > > > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user -- Justin Gullingsrud 3111 Beckman Institute 217-244-8946 I been dropping the new science, and I be kicking the new knowledge, and I'm seeing to a degree that you can't get in college. -- b.boys From eric at enthought.com Tue Jul 30 18:11:11 2002 From: eric at enthought.com (eric jones) Date: Tue, 30 Jul 2002 17:11:11 -0500 Subject: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. In-Reply-To: <20020730204753.GA16075@aberdeen.ks.uiuc.edu> Message-ID: <000e01c23816$0353e160$777ba8c0@ericlaptop> Hey Justin, Yep. I'm happy to have more talks. You'll have to tell me what VMD is though. :) I'm guessing it is something to do with molecular dynamics??? Thanks, eric > -----Original Message----- > From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net] On > Behalf Of Justin Gullingsrud > Sent: Tuesday, July 30, 2002 3:48 PM > To: scipy-user at scipy.net > Subject: Re: [SciPy-user] SciPy02 -- Lightning talks and BoFs so far. > > Hi Eric, > > Is there still room for another Lightning Talk? I'd like to present > what we've been doing with VMD and Python. > > Cheers, > > Justin > > > On Wed, Jul 17, 2002 at 03:13:17PM -0500, eric jones wrote: > > > >>>>> "EJ" == eric jones writes: > > > > > > EJ> Lightning talks > > > > > > [snip] > > > > > > EJ> Please keep the ideas coming. > > > > > > I cant make it and it would be nice if someone could atleast demo > > > MayaVi (http://mayavi.sourceforge.net) and Python-VTK. I'm not sure > > > if anyone would want to take that up. > > > > I agree. It is a very powerful tool that useful across many scientific > > disciplines. Is there anyone using MayaVi in there research that could > > give a review of MayaVi and how they are using it? > > > > eric > > > > > > _______________________________________________ > > SciPy-user mailing list > > SciPy-user at scipy.net > > http://www.scipy.net/mailman/listinfo/scipy-user > > -- > > Justin Gullingsrud 3111 Beckman Institute 217-244-8946 > I been dropping the new science, and I be kicking the new knowledge, > and I'm seeing to a degree that you can't get in college. -- b.boys > _______________________________________________ > SciPy-user mailing list > SciPy-user at scipy.net > http://www.scipy.net/mailman/listinfo/scipy-user From Gavin.Huttley at anu.edu.au Wed Jul 31 00:47:03 2002 From: Gavin.Huttley at anu.edu.au (Gavin Huttley) Date: Wed, 31 Jul 2002 14:47:03 +1000 Subject: [SciPy-user] Darwin install prob - how to specify temp dir names? Message-ID: Hi all: I am having a problem with compiling SciPy that appears related to a peculiarity of Darwin, the inclusion of spaces in pathnames. When I manually repeat the either of the commands (ranlib, or g77) below as is, the fail, when I insert a \ before the ' ', they succeed. This suggest simply inserting an '_' in the dirs generated by the install script should solve the problem. Can anyone tell me how I might do this? Assistance much appreciated :) G ****************** Installation error: ranlib build/temp.darwin-5.5-Power Macintosh-2.2/libgist.a ranlib: can't open file: build/temp.darwin-5.5-Power (No such file or directory) ranlib: can't open file: Macintosh-2.2/libgist.a (No such file or directory) Ignoring failure during build (exit status = 256) running run_f2py running build_flib scipy_distutils.command.build_flib.gnu_fortran_compiler command: g77 --version 0 GNU Fortran (GCC 3.1 20020420 (prerelease)) 3.1 20020420 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. using Gnu (GCC Fortran compiler building 'mach' library g77 -Wall -fno-second-underscore -fPIC -O3 -funroll-loops -c /Users/gavin/Desktop/SciPy-0.2.0_alpha_105.3698/special/mach/d1mach.f -o build/temp.darwin-5.5-Power Macintosh-2.2/d1mach.o g77: cannot specify -o with -c or -S and multiple compilations error: failure during compile (exit status = 256) ******************** 1) Platform information: 'Darwin', 'localhost', '5.5', 'Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC ', 'Power Macintosh' 2) Information about C,C++,Fortran compilers/linkers as reported by the compilers when requesting their version information, e.g., the output of gcc -v Reading specs from /usr/local/lib/gcc-lib/powerpc-apple-darwin5.4/3.1/specs Configured with: ../gcc3/configure --enable-pfe --disable-nls --enable-languages=c,f77 Thread model: single Apple Computer, Inc. GCC version 1110, based on gcc version 3.1 20020420 (prerelease) g77 --version GNU Fortran (GCC 3.1 20020420 (prerelease)) 3.1 20020420 (prerelease) 3) Python version: 2.2 (#1, Apr 19 2002, 03:34:05) 4) Python Numeric version: 21.3 5) f2py version: 2.13.175-1250 6) ATLAS version, the locations of atlas and lapack libraries, building information if any. 3.4.1 7) The output of the following commands python scipy_distutils/system_info.py [localhost:~/Desktop/SciPy-0.2.0_alpha_105.3698] gavin% python scipy_distutils/system_info.py atlas_info: FOUND: libraries = ['lapack', 'f77blas', 'cblas', 'atlas'] library_dirs = ['/usr/lib/ATLAS'] blas_info: NOT AVAILABLE blas_src_info: NOT AVAILABLE fftw_info: NOT AVAILABLE lapack_info: NOT AVAILABLE lapack_src_info: NOT AVAILABLE x11_info: FOUND: libraries = ['X11'] library_dirs = ['/usr/X11R6/lib'] include_dirs = ['/usr/X11R6/include'] python scipy_distutils/command/build_flib.py [localhost:~/Desktop/SciPy-0.2.0_alpha_105.3698] gavin% python scipy_distutils/command/build_flib.py command: f77 -V -c /tmp/__dummy.f -o /tmp/__dummy.o 256 zsh: command not found: f77 command: f77 -version 256 zsh: command not found: f77 command: f90 -V 256 zsh: command not found: f90 command: ifc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o 256 zsh: command not found: ifc command: efc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o 256 zsh: command not found: efc command: f95 -V 256 zsh: command not found: f95 command: fort -V 256 zsh: command not found: fort command: DF /what 0 DF: /what: No such file or directory command: g77 --version 0 GNU Fortran (GCC 3.1 20020420 (prerelease)) 3.1 20020420 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. command: vf90 -v 256 zsh: command not found: vf90 command: f90 +version 256 zsh: command not found: f90 command: g77 --version 0 GNU Fortran (GCC 3.1 20020420 (prerelease)) 3.1 20020420 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. command: F -V 256 zsh: command not found: F command: g77 --version 0 GNU Fortran (GCC 3.1 20020420 (prerelease)) 3.1 20020420 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. Gnu (GCC From andrew.straw at adelaide.edu.au Wed Jul 31 01:28:41 2002 From: andrew.straw at adelaide.edu.au (Andrew Straw) Date: Wed, 31 Jul 2002 14:58:41 +0930 Subject: [SciPy-user] Darwin install prob - how to specify temp dir names? In-Reply-To: Message-ID: <5FAB1566-A446-11D6-8521-00039311EA24@adelaide.edu.au> On Wednesday, July 31, 2002, at 02:17 PM, Gavin Huttley wrote: > This suggest simply inserting an '_' in the dirs generated by the > install > script should solve the problem. Can anyone tell me how I might do this? Hi Gavin, If you modify distutils in the following way, this should do the trick for you! diff -r Python-2.2.1/Lib/distutils/util.py Python-2.2.1-andrew/Lib/distutils/util.py 71c71,72 < return "%s-%s-%s" % (osname, release, machine) --- > return string.replace("%s-%s-%s" % (osname, release, machine),' ','_') Cheers! Andrew ________________________________________________________ Andrew Straw Ph.D. student -- Department of Physiology, University of Adelaide, Australia Developer -- The Vision Egg -- http://www.visionegg.org/ andrew.straw at adelaide.edu.au ________________________________________________________ From Gavin.Huttley at anu.edu.au Wed Jul 31 02:58:31 2002 From: Gavin.Huttley at anu.edu.au (Gavin Huttley) Date: Wed, 31 Jul 2002 16:58:31 +1000 Subject: [SciPy-user] Darwin install prob - how to specify temp dir names? In-Reply-To: <5FAB1566-A446-11D6-8521-00039311EA24@adelaide.edu.au> Message-ID: That worked! For completeness, I also ran into a problem with an absence of the following 2 files from the SciPy-0.2.0_alpha_105.3698_src.tar.gz file. Specifically, fastumath_nounsigned.inc and fastumath_unsigned.inc were missing from /scipy_base. Got latest versions from CVS and installation completed. Now to test ;) Cheers, G