472,337 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,337 software developers and data experts.

a scipy installation problem?

Hi. I need to use SciPy (a library of scientific tools for python) but
I runned upon a problem after installing it. I downloaded the binaries
from scipy.org and copied the contents of the archive in the
/usr/lib/python2.2/site-packages/ (there I have a number of other
modules and the "/usr/lib/python2.2/site-packages" is in the
sys.path). What I use are: Python 2.2.1 on linux2 and
SciPy-0.2.0_alpha_200.4161.linux2_py.tar.gz
Then, this is what I get...
from scipy import * Segmentation fault (core dumped)

Everything seems to be ok when I import a different module (for
plotting) that comes together with scipy (simply, it is another folder
isnide of the same folder /usr/lib/python2.2/site-packages/chaco):
from chaco import *


This is probably something simple, but I just start to use python and
have no experience in programming, so I can not figure out where the
problem is.
Does anyone know what's needed to do so as to make it working?
Thanks in advance.
Regards

avik
Jul 18 '05 #1
3 1838
avik <av*****@netscape.net> wrote:
Hi. I need to use SciPy (a library of scientific tools for python) but
I runned upon a problem after installing it. I downloaded the binaries
from scipy.org and copied the contents of the archive in the
/usr/lib/python2.2/site-packages/ (there I have a number of other
modules and the "/usr/lib/python2.2/site-packages" is in the
sys.path). What I use are: Python 2.2.1 on linux2 and
SciPy-0.2.0_alpha_200.4161.linux2_py.tar.gz
Then, this is what I get...
from scipy import * Segmentation fault (core dumped)

Everything seems to be ok when I import a different module (for
plotting) that comes together with scipy (simply, it is another folder
isnide of the same folder /usr/lib/python2.2/site-packages/chaco):
from chaco import *


This is probably something simple, but I just start to use python and
have no experience in programming, so I can not figure out where the
problem is.
Does anyone know what's needed to do so as to make it working?
Thanks in advance.
Regards


What happens if you do "import scipy" instead of "from scipy import *"?

"from ... import *" is _almost_ always a bad idea anyway, since it
clutters up your namespace. It also causes issues with the reload()
function. Avoid that usage unless you *really* know what you're doing.

--
Robin Munn
rm***@pobox.com
Jul 18 '05 #2
Robin Munn <rm***@pobox.com> wrote in message
What happens if you do "import scipy" instead of "from scipy import *"?

"from ... import *" is _almost_ always a bad idea anyway, since it
clutters up your namespace. It also causes issues with the reload()
function. Avoid that usage unless you *really* know what you're doing.


Actually, up to now (during a short time, anyway) I have always used
"import <module>" without having any special reason to avoid "from
<module> import *" :-).
In the case of scipy I just tried out the first thing that's written
in its short tutorial and

the same is with that:
import scipy

Segmentation fault (core dumped)

Regards

avik
Jul 18 '05 #3
avik <av*****@netscape.net> wrote:
Robin Munn <rm***@pobox.com> wrote in message
What happens if you do "import scipy" instead of "from scipy import *"?

"from ... import *" is _almost_ always a bad idea anyway, since it
clutters up your namespace. It also causes issues with the reload()
function. Avoid that usage unless you *really* know what you're doing.


Actually, up to now (during a short time, anyway) I have always used
"import <module>" without having any special reason to avoid "from
<module> import *" :-).
In the case of scipy I just tried out the first thing that's written
in its short tutorial and

the same is with that:
import scipy

Segmentation fault (core dumped)

Regards


OK, so "from ... import *" isn't the culprit.

I see in your original post that you downloaded the binaries and copied
them into your site-packages. It may be that the binaries you downloaded
were linked against a library version you don't have. Try downloading a
source archive and doing "python setup.py install" to install it. I'm
guessing that will fix the segfault problem.

--
Robin Munn
rm***@pobox.com
Jul 18 '05 #4

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

Similar topics

2
by: Z.L. | last post by:
I am a newbie to python, and have not so much experiences on package installation and related issues. I am looking for Scipy binaries for python...
4
by: jelle | last post by:
Hi, I dearly miss having the power of SciPy on my python 2.4 installation. The topic of SciPy python 2.4 wintel binaries has been discussed...
1
by: tkpmep | last post by:
I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with the current version of SciPy), and had some teething troubles. I looked around...
3
by: vml | last post by:
Hello, I am really new in python scipy win32com and scipy I tried to setup a COM server to interact with vb 6 the pythom COM server is : from...
1
by: 1960_j | last post by:
I have tried to install numpy and scipy on python 5.2. Using gcc 2.95.3, lapack 3.1.1 and ATLAS 3.6.0. When installin numpy it seems to work but...
2
by: Frank Moyles | last post by:
Hi, I want to use SciPy library. I am using W2k, and ActiveState Python 2.5. I have succesfully numpy, but when I run the...
0
by: Frank Moyles | last post by:
Hi, I want to use SciPy library. I am using W2k, and the standard Python 2.5.1 binary distribution from www.pthon.org I have already succesfully...
3
by: chapagainanish | last post by:
Hi!! I'm having installation problem for installing numpy and scipy in Cygwin for Python, and am obstruct in madway for project, i followed...
4
by: Ivan Reborin | last post by:
I'm relatively new to python. I'm following a tutorial I found on the net, and it uses scipy's gplt for plotting. I installed scipy from their...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

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.