[Pythonmac-SIG] Install problem

Bryce maskedrider@earthlink.net
Sun, 4 Nov 2001 10:23:40 -0700


Hi Just,

Recall: python 2.1, OSX.1, and Numerc 20.2.0.

Well I ran the installer again for Numeric and this time I noticed an 
error, here is the dump:

running install
running build
running build_py
creating build
creating build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/ArrayPrinter.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/LinearAlgebra.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/Matrix.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/MLab.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/Numeric.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/numeric_version.py -> build/lib.darwin-1.4-Power 
Macintosh-2.1
copying Lib/Precision.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/RandomArray.py -> build/lib.darwin-1.4-Power Macintosh-2.1
copying Lib/UserArray.py -> build/lib.darwin-1.4-Power Macintosh-2.1
running build_ext
building '_numpy' extension
creating build/temp.darwin-1.4-Power Macintosh-2.1
cc -g -O2 -Wall -Wstrict-prototypes -IInclude 
-I/usr/local/include/python2.1 -c Src/_numpymodule.c -o 
build/temp.darwin-1.4-Power Macintosh-2.1/_numpymodule.o
In file included from /usr/local/include/python2.1/pyport.h:84,
                  from /usr/local/include/python2.1/Python.h:54,
                  from Src/_numpymodule.c:2:
/usr/include/math.h:191: warning: function declaration isn't a prototype
In file included from Src/_numpymodule.c:4:
Include/Numeric/arrayobject.h:228: warning: function declaration isn't a 
prototype
Src/_numpymodule.c:18: warning: function declaration isn't a prototype
cc -g -O2 -Wall -Wstrict-prototypes -IInclude 
-I/usr/local/include/python2.1 -c Src/arrayobject.c -o 
build/temp.darwin-1.4-Power Macintosh-2.1/arrayobject.o
In file included from /usr/local/include/python2.1/pyport.h:84,
                  from /usr/local/include/python2.1/Python.h:54,
                  from Src/arrayobject.c:18:
/usr/include/math.h:191: warning: function declaration isn't a prototype
In file included from Src/arrayobject.c:25:
Include/Numeric/arrayobject.h:228: warning: function declaration isn't a 
prototype
cc -g -O2 -Wall -Wstrict-prototypes -IInclude 
-I/usr/local/include/python2.1 -c Src/ufuncobject.c -o 
build/temp.darwin-1.4-Power Macintosh-2.1/ufuncobject.o
In file included from /usr/local/include/python2.1/pyport.h:84,
                  from /usr/local/include/python2.1/Python.h:54,
                  from Src/ufuncobject.c:14:
/usr/include/math.h:191: warning: function declaration isn't a prototype
In file included from Src/ufuncobject.c:21:
Include/Numeric/arrayobject.h:228: warning: function declaration isn't a 
prototype
Src/ufuncobject.c:406: warning: function declaration isn't a prototype
Src/ufuncobject.c: In function `PyUFunc_GenericReduceAt':
Src/ufuncobject.c:634: warning: `os' might be used uninitialized in this 
function
Src/ufuncobject.c: In function `ufunc_generic_call':
Src/ufuncobject.c:765: warning: suggest explicit braces to avoid 
ambiguous `else'

cc -bundle -undefined suppress build/temp.darwin-1.4-Power 
Macintosh-2.1/_numpymodule.o build/temp.darwin-1.4-Power 
Macintosh-2.1/arrayobject.o build/temp.darwin-1.4-Power 
Macintosh-2.1/ufuncobject.o -o build/lib.darwin-1.4-Power 
Macintosh-2.1/_numpy.so

/usr/bin/ld: -undefined error must be used when -twolevel_namespace is 
in effect
error: command 'cc' failed with exit status 1
----------

Then when I check the sites-packages there is no Numeric directory or 
Numeric.pth file in that directory.

Any suggestions.  Thanks !!!

Bryce


On Sunday, November 4, 2001, at 12:38 AM, Just van Rossum wrote:

> Bryce wrote:
>
>> I installed the OS X.1 Darwin version of Python ok (BSD and all of that
>> command line stuff). I installed Numeric 20.2.0 into /usr/loca/ and set
>> the PYTHONPATH to include the lib directories in Numeric. When I run
>> test.py in the Test directory of Numeric, I get this error:
>
> I have NumPy working under Python 2.1.1 & 10.0.4. If I remember 
> correctly, all I
> did was run
>
> sudo python setup.py install
>
> in the appropriate Numeric directory. I didn't have to muck with 
> PYTHONPATH,
> didn't install "by hand". Using Numeric's setup.py a directory called 
> Numeric
> and a file called Numeric.pth will be installed in site-packages. That 
> should be
> all there is to it, but I haven't tried this with 2.1 under 10.1...
>
> Just
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>