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 just by using "/sw64/bin/python <name of script>"
> >
> >> I just tried this way but got the same Fatal Python error (version
> >> mismatch)
> >
>
> 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 this script:
> $ ./disp.py lysb_buf-2.90s
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap

This is in fact the characteristic error from trying to load a module  
for a different
Python version - I've just checked you can in fact load fink's numpy- 
py25
(as well as pylab and PIL) in /usr/bin/python2.5 after adapting the  
path, and
vice-versa. It even passes all tests :-)
So it seems there must be a version mismatch - could you provide the  
following
information:

echo $PYTHONPATH (just to make sure)

insert the following lines into your script:

import sys
print sys.version
print sys.path

Also, is your system Python 2.5 or 2.6 (it's 2.5 on Leopard, not sure  
about
Snow Leopard right now)?

Cheers,
                                                Derek

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to