From h.jansen at fel.tno.nl Fri Dec 21 03:22:56 2001 From: h.jansen at fel.tno.nl (H Jansen) Date: Fri, 21 Dec 2001 09:22:56 +0100 Subject: [SciPy-user] "import scipy" fails with Python-2.2a4 Message-ID: <3C22F160.E5D911D3@fel.tno.nl> I've compiled the latest SciPy successfully. However, when importing the module this is the result: [44]jans2 at stbsl1:~%> python Python 2.2a4 (#7, Oct 5 2001, 11:45:35) [GCC 2.95.3 20010315 (release)] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import scipy Traceback (most recent call last): File "", line 1, in ? File "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/__init__.py", line 42, in ? from misc import * File "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/misc.py", line 21, in ? import scipy.stats File "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/__init__.py", line 4, in ? from stats import * File "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/stats.py", line 204, in ? import math, string, sys, pstat, copy File "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/pstat.py", line 176 exec execstring SyntaxError: unqualified exec is not allowed in function 'colex' it contains a nested function with free variables >>> Can someone please tell me what's wrong? Thanks. Henk -------------- next part -------------- A non-text attachment was scrubbed... Name: h.jansen.vcf Type: text/x-vcard Size: 472 bytes Desc: Card for H Jansen URL: From oliphant at ee.byu.edu Fri Dec 21 11:18:08 2001 From: oliphant at ee.byu.edu (Travis Oliphant) Date: Fri, 21 Dec 2001 11:18:08 -0500 (EST) Subject: [SciPy-user] "import scipy" fails with Python-2.2a4 In-Reply-To: <3C22F160.E5D911D3@fel.tno.nl> Message-ID: > I've compiled the latest SciPy successfully. However, when importing the > module this is the result: > "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/pstat.py", > line 176 > exec execstring > SyntaxError: unqualified exec is not allowed in function 'colex' it > contains a nested function with free variables > >>> > This is a documented error for Python 2.2 which changed the implementation of exec. The pstat functions using exec must be re-written. Until this is done, disable the stats package by not including it in the list of subpackages to be imported in the main __init__.py file scipy/__init__.py -Travis From oliphant at ee.byu.edu Fri Dec 21 11:18:08 2001 From: oliphant at ee.byu.edu (Travis Oliphant) Date: Fri, 21 Dec 2001 11:18:08 -0500 (EST) Subject: [SciPy-user] "import scipy" fails with Python-2.2a4 In-Reply-To: <3C22F160.E5D911D3@fel.tno.nl> Message-ID: > I've compiled the latest SciPy successfully. However, when importing the > module this is the result: > "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/pstat.py", > line 176 > exec execstring > SyntaxError: unqualified exec is not allowed in function 'colex' it > contains a nested function with free variables > >>> > This is a documented error for Python 2.2 which changed the implementation of exec. The pstat functions using exec must be re-written. Until this is done, disable the stats package by not including it in the list of subpackages to be imported in the main __init__.py file scipy/__init__.py -Travis From rodsenra at gpr.com.br Mon Dec 31 21:13:15 2001 From: rodsenra at gpr.com.br (Rodrigo Senra) Date: Tue, 1 Jan 2002 00:13:15 -0200 Subject: [SciPy-user] [numarray] packaging and names In-Reply-To: References: Message-ID: <20030509124512.09C4229C097@botucatu.terra.com.br> On Wed, 7 May 2003 16:35:36 -0400 "Perry Greenfield" wrote about [SciPy-user] [numarray] packaging and names: -------------------------------------------- | | 1) What should the package be called? numarray is a possiblity, | but we have an opportunity to take a different approach. For | example if we could name the package "array" (unfortunately, | we can't) then the following becomes possible (these are just | examples, we haven't settled on any naming scheme yet). | ... | I've polled people locally and arrays and ndarray were the most | popular, but there doesn't seem to be a clear winner. I tend toward | arr somewhat because of the brevity but do realize it isn't | terribly descriptive. The drawback of "arrays" is that it may be | visually confused with array. Why not Array ? regards Senra -- Rodrigo Senra (ICQ 114477550) MSc Computer Engineer rodsenra at gpr.com.br GPr Sistemas Ltda http://www.gpr.com.br