Re: Trouble installing Scigraphica.
Ferry Dave Jäckel <[email protected]> Mon, 24 Nov 2003 21:22:35 +0000
| Newsgroups | gmane.comp.scigraphica.devel |
|---|---|
| Message-ID | <[email protected]> |
On Monday, 24. of November 2003 18:45 wrote Denís Fernández Cabrera: > Salut. Hello Denis Fernández! > I am sure it is prepotent of me to demand a quick and accurate answer, but > I am a physics student and I do need to get Scigraphica up and running. I > intend to use it for my thermodinamic's lab memories, and we have to > process the data soon. As I'm a student of physics and I was in need for a replacement of origin, too, I will try to help you quick. But I'm sorry this is can't be accurate :) > Mandrake 9.0 installed. When I try to run Scigraphica, it loads, but claims > that modules "Numeric" and "gtk" cannot be found (but I installed numeric > python and I do have the GTK). Almost every operation I try to perform > returns "segmentation fault" and kills the program. I've installed and run it successfully on a suse (self compiled) and a debian (pre-packaged) box, and I don't know much about mandrake, so I can give you only some hints: You have to pay attention to the gtk-packages you install! You need python-gtk (the right one for your python *and* gtk version). Don't install several different python-gtk packages. Python will only use one, and doesn't know which is the right for scigraphica. It is o.k. to have several gtk versions. Of course python and python-numeric are needed. I use python 2.2 and python 2.3 with python-gtk-1.2 and libgtk-1.2 Python also has to find python-gtk and numeric. So make sure that scigraphicas python version searches its packages at the right place, e.g. type this inside scigraphicas python terminal: import sys sys.version sys.path and try import Numeric imprt gtk This should give you the python version scigraphica uses and the module searchpath. The debian-box missed the right .pth files In /usr/lib/python-x.y/site-packages/ I added a Numeric.pth (with the single word "Numeric" in it) and a gtk.pth (with the single word "gtk-1.2" in it), and scigraphica and python just worked fine. Confusing to me, the search paths of "embeded" python and a normal terminal session were the same, but one could'nt import Numeric, the other could. The .pth files solved this problem. It's a kind of magic... ;) Maybe this tips can help you. Regards, Dave ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/