Thanks Derek,
On Tue, Apr 19, 2011 at 4:01 PM, Derek Homeier <
[email protected]> 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/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)
>
returned with empty line.
>
> 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.
>
> Also, is your system Python 2.5 or 2.6 (it's 2.5 on Leopard, not sure about
> Snow Leopard right now)?
>
It was 2.6 (showed in the current version), to make it consistent i changed
the current version to 2.5 using sudo ln -s command.
>
> Cheers,
> Derek
>
--
--------------------------------------------------
Yogesh K. Gupta, Ph.D.
Dept of Structural & Chemical Biology
Mount Sinai School of Medicine
Icahn Medical Institute
1 Gustave L. Levy Place, Box 1677
New York, NY, USA 10029
Tel:+1 212-659-8639
--------------------------------------------------
------------------------------------------------------------------------------
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