473,692 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble installing numeric

I'm trying to install numeric on my MacOS X box using Darwin, with the
eventual goal of satisfying all of PyGame's dependencies so I can
finally start working on my semester project. I would be using MacPython,
except that I can't seem to get its Package Manager to work. Anyway,
when I try to install numeric, I get the following error:

[HMC-58-125:~/proj/Numeric-23.7] chriswei% sudo ./setup.py install
Password:
running install
running build
running build_py
running build_ext
building 'lapack_lite' extension
gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.6.0-
Power_Macintosh-2.3/Src/lapack_litemodu le.o build/temp.darwin-7.6.0-
Power_Macintosh-2.3/Src/blas_lite.o build/temp.darwin-7.6.0-Power_
Macintosh-2.3/Src/f2c_lite.o build/temp.darwin-7.6.0-Power_Macintosh-2.3/
Src/zlapack_lite.o build/temp.darwin-7.6.0-Power_Macintosh-2.3/Src/
dlapack_lite.o -L/usr/lib/atlas -llapack -lcblas -lf77blas -latlas -lg2c -
o build/lib.darwin-7.6.0-Power_Macintosh-2.3/lapack_lite.so -framework
vecLib
ld: can't locate file for: -llapack
error: command 'gcc' failed with exit status 1

Previously it had been complaining about a missing directory '/usr/lib/
atlas', but I just created that (without any idea what it wanted it for
or why it couldn't create it itself, natch). From what I've found online,
it's now having problems because a linear algebra module it needs (
lapack) can't be found. However, isn't numeric supposed to have its own
"light" linear algebra code? Looking in setup.py, I found the following
section:

# delete all but the first one in this list if using your own LAPACK/
BLAS
sourcelist = [os.path.join('S rc', 'lapack_litemod ule.c'),
# os.path.join('S rc', 'blas_lite.c'),
# os.path.join('S rc', 'f2c_lite.c'),
# os.path.join('S rc', 'zlapack_lite.c '),
# os.path.join('S rc', 'dlapack_lite.c ')
] ]

I tried uncommenting the lines, but no dice.

I've also installed the numarray module; it claims to be a descendant of
numeric that should be usable for the same thing. If it turns out that I
can't use numeric, for whatever reason, does anyone have advice for
getting numarray to work with pygame?

Thanks for any help you can provide. If I can't get this working soon,
I'll have to return to using C++ for this project. I know that at least
works.

--
"Don't take life so serious, son - it ain't nohow permanent." -
Porkypine
http://www.cs.hmc.edu/~cweisige
Jul 18 '05 #1
4 2499
Chris Weisiger wrote:
I'm trying to install numeric on my MacOS X box using Darwin, with the
eventual goal of satisfying all of PyGame's dependencies so I can
finally start working on my semester project. I would be using MacPython,
except that I can't seem to get its Package Manager to work. Anyway,
when I try to install numeric, I get the following error:

[HMC-58-125:~/proj/Numeric-23.7] chriswei% sudo ./setup.py install
Password:
running install
running build
running build_py
running build_ext
building 'lapack_lite' extension
gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.6.0-
Power_Macintosh-2.3/Src/lapack_litemodu le.o build/temp.darwin-7.6.0-
Power_Macintosh-2.3/Src/blas_lite.o build/temp.darwin-7.6.0-Power_
Macintosh-2.3/Src/f2c_lite.o build/temp.darwin-7.6.0-Power_Macintosh-2.3/
Src/zlapack_lite.o build/temp.darwin-7.6.0-Power_Macintosh-2.3/Src/
dlapack_lite.o -L/usr/lib/atlas -llapack -lcblas -lf77blas -latlas -lg2c -
o build/lib.darwin-7.6.0-Power_Macintosh-2.3/lapack_lite.so -framework
vecLib
ld: can't locate file for: -llapack
error: command 'gcc' failed with exit status 1

Previously it had been complaining about a missing directory '/usr/lib/
atlas', but I just created that (without any idea what it wanted it for
or why it couldn't create it itself, natch).
You can delete it. That is the directory specified by default to look
for the ATLAS libraries which are a portable optimized LAPACK and BLAS.
You don't need it on the Mac because you have vecLib, which is an
Apple-provided version of ATLAS, pre-installed.
From what I've found online,
it's now having problems because a linear algebra module it needs (
lapack) can't be found. However, isn't numeric supposed to have its own
"light" linear algebra code?
Yes, however, the ATLAS or vecLib libraries will be much, much faster.
Looking in setup.py, I found the following
section:

# delete all but the first one in this list if using your own LAPACK/
BLAS
sourcelist = [os.path.join('S rc', 'lapack_litemod ule.c'),
# os.path.join('S rc', 'blas_lite.c'),
# os.path.join('S rc', 'f2c_lite.c'),
# os.path.join('S rc', 'zlapack_lite.c '),
# os.path.join('S rc', 'dlapack_lite.c ')
] ]

I tried uncommenting the lines, but no dice.


Also modify the library_dirs_li st and libraries_list variables, but keep
these *_lite.c files commented out.

library_dirs_li st = []
libraries_list = []

That way, Numeric will just pick up vecLib.

This is fixed in CVS.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #2
On 1/29/05 11:38 PM, Robert Kern wrote:
Chris Weisiger wrote:
I'm trying to install numeric on my MacOS X box using Darwin, with
the eventual goal of satisfying all of PyGame's dependencies so I
can finally start working on my semester project. I would be using
MacPython, except that I can't seem to get its Package Manager to
work.
<snip>
This is fixed in CVS.


Thanks; I've now successfully installed Numeric, as well as all of the
other dependencies listed for PyGame. However, PyGame appears to still
not be working. When I try to run the program at the top of this page:
http://www.pygame.org/docs/tut/tom/games2.html
I get the following error:

% python main.py
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort

Is this a problem with PyGame or with something else? I can run a simple
Hello World program, so I'm assuming that Python itself is fine. Any
ideas?

--
"Don't take life so serious, son - it ain't nohow permanent." -
Porkypine
http://www.cs.hmc.edu/~cweisige
Jul 18 '05 #3
Chris Weisiger wrote:
Thanks; I've now successfully installed Numeric, as well as all of the
other dependencies listed for PyGame. However, PyGame appears to still
not be working. When I try to run the program at the top of this page:
http://www.pygame.org/docs/tut/tom/games2.html
I get the following error:

% python main.py
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort


A couple things:

* Are you sure you are using the same python executable that you
compiled the extension modules against?

* If you aren't using the X11 versions of SDL et al., then you need to
run your scripts with pythonw, which will run the framework's
interpreter in such a way that it can communicate with the native window
server. This shouldn't give you the error above, though.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #4
Are you using Python 2.3? Pygame doesn't work with 2.4, unfortunately.
It's the reason I removed 2.4 from my machine. I'll upgrade once PyGame
upgrades.

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2909
by: Dennis Hore | last post by:
I'm trying to install Nick Patavalis' ppgplot package on Mac OS X 10.3 with python 2.3. I first sent this message to Nick, but he said he doesn't have any experience with the Mac platform. after installing using python setup.py install (using Numeric; no error messages), and then in python trying >>> import ppgplot i get:
26
1982
by: Jive | last post by:
I just now installed 2.4. I naively copied my site-package from 2.3. The first program I tried to run, which uses the gnuplot package, got this error, complaining about module Numeric: ImportError: Module use of python23.dll conflicts with this version of Python. Grumble: Why does Numeric reference a module by release number? My real question is, what all do I have to do in order to get the programs I
9
3072
by: drife | last post by:
Hello, Could someone please provide instructions for install Numeric with ATLAS and LAPACK? I've actually done this correctly, I think. But I don't see any difference in the speed. I'm calculating eigenvalues for a 3600 X 3600 covariance matrix.
2
1468
by: Richard | last post by:
Hi all, I had a stored procedure that i wanted to be able to pass parameters to so i used dynamic SQL. I am getting very strange errors though when i try to execute it. My code works just fine, but when i add the dynamic sql parts in, it gives the strangest errors. Here is the code that executes it... Declare @data_source varchar(50)
1
1539
by: ajackson | last post by:
i am having some trouble installing SQl server Reporting Services. well, in order to install the reporting services i have to install Service Pack 3a. so through my installation of package 3a i am encoutering some trouble. i was able to comlete the first part of the installation i receive this error message: Instance name specified is invalid so, my question is: once you have SQL Server installed, where can you
2
1256
by: Don Glover | last post by:
have a machine that had c#standard 2002 on it, had trouble uninstalling. Now I am trying to install 2003 and it is failing, it is also failing to create the error log files. So I can not even see what it thinks the error is. this is an xp machine with all the latest patches.
13
3915
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a dependency nightmares, so after unpacking the downloaded file "numpy-0.9.6.tar.gz"
2
2273
by: goetzie | last post by:
I am using Python 2.4.1 and Numeric 23.8 and running on Windows XP. I am passing a Numeric array of strings (objects) to a C Extension module using the following python code: import Numeric import TestDLL # my C Extension Module a = Numeric.array(, 'O' ) print 'a =', a print 'type a =', type(a)
15
1895
by: W. Watson | last post by:
For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32-py2.4.exe Numeric-24.2.win32-py2.4.exe Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
0
8604
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9083
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8961
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8801
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6459
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1957
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.