-----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 > <[email protected] > <mailto:[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 > > > > > -- > I don't think that will work. They're different versions. You'd be better off installing the -py26 versions of the modules you need if you're going to try to run them with the system python.
And if you overwrote the system's /usr/bin/python with your "ln -s" operation, we definitely don't recommend that. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2t8GwACgkQB8UpO3rKjQ+Y1QCfYLM6jXCCjc7R3nBiLXswvFZ3 KCwAn0RYeTzw1hL9Byc16wAcWfbZ5QyL =3SNt -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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
