Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Derek Homeier
Hi Yogesh, On 19.04.2011, at 10:28PM, Alexander Hansen wrote: >> >>insert the following lines into your script: >> >>import sys >>print sys.version >>print sys.path >> >> Inserted all 3 lines in my script, still the same error. No output from those commands, even if you put th

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Martin Costabel
On 19/04/11 21:18, Yogesh Gupta wrote: > First few lines of disp.py: > > #!/sw64/bin/python2.5 > > from exp_setup import * And your exp_setup.py probably imports a whole lot of other python modules? Does one of them contain a binary module (also called "bundle"), something like _RQconv.so? If ye

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 4:24 PM, Yogesh Gupta wrote: > Thanks Derek, > > On Tue, Apr 19, 2011 at 4:01 PM, Derek Homeier > > wrote: > > Hi Yogesh, > > > 4) If it's a script, what Python interpreter is it e

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
Thanks Derek, On Tue, Apr 19, 2011 at 4:01 PM, Derek Homeier < de...@astro.physik.uni-goettingen.de> wrote: > Hi Yogesh, > > > 4) If it's a script, what Python interpreter is it expecting? This may >> > be indicated an initial line. >> > >> >> The first line of this script says: >> >> #!/sw64/b

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 3:57 PM, Yogesh Gupta wrote: > I do not know exactly how to run these lines via python interpreter? I > tried > > $ /sw64/bin/python [one line at a time] > > resulted with No such file or directory. Shouldn't that have been /sw64/bin/pyth

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Derek Homeier
Hi Yogesh, > > 4) If it's a script, what Python interpreter is it expecting? > This may > > be indicated an initial line. > > > >> The first line of this script says: > >> #!/sw64/bin/python2.5 > > > > 5) How are you running it? If it's a script, you might be able to > get > > it to work jus

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
I do not know exactly how to run these lines via python interpreter? I tried $ /sw64/bin/python [one line at a time] resulted with No such file or directory. On Tue, Apr 19, 2011 at 3:42 PM, Alexander Hansen < alexanderk.han...@gmail.com> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 3:18 PM, Yogesh Gupta wrote: > First few lines of disp.py: > > #!/sw64/bin/python2.5 > > from exp_setup import * > import matplotlib as mpl > import sys > > if (len(sys.argv) < 2): > print "Usage: disp.py file_name_root" > exit()

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
First few lines of disp.py: #!/sw64/bin/python2.5 from exp_setup import * import matplotlib as mpl import sys if (len(sys.argv) < 2): print "Usage: disp.py file_name_root" exit() else: On Tue, Apr 19, 2011 at 2:55 PM, Alexander Hansen < alexanderk.han...@gmail.com> wrote: > -BEGI

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 1:23 PM, Yogesh Gupta wrote: > > > > > Can we see the full output from an attempt to run your executable? > >> This is all i get when i run this disp.py script either with ./ or the >> python that is specified on the first line of thi

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
On Tue, Apr 19, 2011 at 1:12 PM, Alexander Hansen < alexanderk.han...@gmail.com> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 4/19/11 1:08 PM, Yogesh Gupta wrote: > > Thanks Alexander for your reply. > > > > > > On Tue, Apr 19, 2011 at 12:55 PM, Alexander Hansen > > mailto:alexa

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 1:08 PM, Yogesh Gupta wrote: > Thanks Alexander for your reply. > > > On Tue, Apr 19, 2011 at 12:55 PM, Alexander Hansen > mailto:alexanderk.han...@gmail.com>> wrote: > > On 4/19/11 12:32 PM, Yogesh Gupta wrote: >> Hello, > >> I am tryin

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
Thanks Alexander for your reply. On Tue, Apr 19, 2011 at 12:55 PM, Alexander Hansen < alexanderk.han...@gmail.com> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 4/19/11 12:32 PM, Yogesh Gupta wrote: > > Hello, > > > > I am trying to run a python based program on MacOSX, which n

Re: [Fink-users] Fatal Python Error

2011-04-19 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/19/11 12:32 PM, Yogesh Gupta wrote: > Hello, > > I am trying to run a python based program on MacOSX, which needs > following packages > > numpy > PIL > matplotlib > 1) How about posting the results of "fink list -it numpy pil matplotlib" ?

[Fink-users] Fatal Python Error

2011-04-19 Thread Yogesh Gupta
Hello, I am trying to run a python based program on MacOSX, which needs following packages numpy PIL matplotlib I can successfully import all 3 using python2.5 (only using /sw64/bin/python or /sw64/bin/python2.5) , although i have python2.6 and 2.7 installed. I get following error when in run ex