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 3 1916
avik <av*****@netsca pe.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
Robin Munn <rm***@pobox.co m> 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
avik <av*****@netsca pe.net> wrote: Robin Munn <rm***@pobox.co m> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 some suggestion to this?
Thanks in advance.
|
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 compiled binary. I'm
one of the 'compiled-challenged'; anything more complex than 'python
setup.py build' leaves me at the grace of the non-challenged... SciPy
is a complex software engineering project, so I'm hangin on the mercy
of others...
|
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 October 2004,
and is not as thorough as Python's documentation. Is there an
alternative source of information that lists all the functions and
their usage?
I tried using scipy.info to get information on the std function in the
stats libary,...
|
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 pythoncom, win32pdhutil, winerror
import math
import numpy
import sys
|
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.
When I try to Install scipy only get error.
Any ideas on how to install would be appreciated.
Thanks
| |
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
page), nothing happens - i.e. no information is printed on the console,
and the setup application simply quits with no warning/error message.
has anyone managed to succesfully install SciPy using
scipy-0.6.0.win32-py2.5.exe & ActiveState Python on...
|
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 (by running the binary provided at scipy.org) -
scipy-0.6.0.win32-py2.5.exe I get nothing.
That is to say, nothing happens - i.e. no information is printed on the
console, and the setup application simply quits with no warning/error
message.
|
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
failed..with exit status 1
please if someone has installed these module help me
thank's and regard's
Anish
|
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 do
from scipy import gplt
it gives this error:
Traceback (most recent call last):
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |