473,378 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 1894
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 2.4 on windows. Could somebody here kindly give...
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 before on this list, but I haven't been able to find a...
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 for help and observed that the tutorial is dated...
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 win32com.server import exception, register import...
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 when I try to run test get error no test for numpy....
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 scipy-0.6.0.win32-py2.5.exe (from the downloads section on the SciPy...
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 installed numpy, but when I try to install SciPy...
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 scipy.org guidelines but there's few error thrown as...
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 website (win32 installation), numpy also, but when I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.