-----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 > <[email protected] <mailto:[email protected]>> wrote: > > 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" ? > >> Here is the result of "fink list -it numpy pil matplotlib" >> $ fink list -it numpy pil matplotlib >> Information about 9910 packages read in 1 seconds. >> i gcc44-compiler 4.4.4-1000 Compiler Binaries for gcc44. >> i matplotlib-py25 1.0.0-1 Pure python 2D plotting with a >> Matlab syntax >> i numpy-py25 1.5.1-1 N-dimensional array package for Python >> i numpy-py26 1.5.1-1 N-dimensional array package for Python >> i numpy-py27 1.5.1-1 N-dimensional array package for Python >> p pil [virtual package] >> i pil-py25 1.1.7-1 Python Imaging Library >> i pil-py26 1.1.7-1 Python Imaging Library > > > 2) If you've only installed the above for python25 they will only work > with Fink's python25. They will not work with any other Fink Python > version, nor with the system's Python, nor with any extra third-party > Pythons you have installed (though I'm not completely sure if they > couldn't be modified to work with an external Python of identical > version). > >> 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 executable: > >> *"Fatal Python error: Interpreter not initialized (version mismatch?) >> Abort trap*" > > 3) What is this executable? A Python script? > >> Yes it is a python script. > > 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) > > >> Seems like a correct python version needs to be defined somewhere, > that >> i am unable to find. > > 6) Fink's python packages are internally consistent about where to find > their modules. If your executable is calling non-Fink modules, or a > non-Fink interpreter, that's probably the source of this. > > >> Some details about location of various pythons are as follows (i have >> not specified a python path in my .bashrc or .bash_profile): > >> *$which python* >> /sw64/bin/python > >> *$ ls -ltr /sw64/bin/python** >> -rwxr-xr-x 1 root admin 1763200 Apr 14 19:45 /sw64/bin/python2.5 >> -rwxr-xr-x 1 root admin 1419 Apr 14 19:45 > /sw64/bin/python2.5-config >> -rwxr-xr-x 1 root admin 8984 Apr 14 19:47 /sw64/bin/python2.6 >> -rwxr-xr-x 1 root admin 1366 Apr 14 19:47 > /sw64/bin/python2.6-config >> -rwxr-xr-x 1 root admin 8984 Apr 14 19:49 /sw64/bin/python2.7 >> -rwxr-xr-x 1 root admin 1550 Apr 14 19:50 > /sw64/bin/python2.7-config >> lrwxr-xr-x 1 root admin 9 Apr 15 18:17 /sw64/bin/python -> >> python2.5 >> lrwxr-xr-x 1 root admin 16 Apr 15 18:17 > /sw64/bin/python-config >> -> python2.5-config > >> *$ls -ltr /System/Library/Frameworks/Python.framework/Versions* >> drwxr-xr-x 8 root wheel 272 Jun 7 2010 2.3 >> drwxr-xr-x 12 root wheel 408 Nov 30 13:46 2.5 >> drwxr-xr-x 12 root wheel 408 Nov 30 13:46 2.6 >> lrwxr-xr-x 1 root wheel 3 Apr 19 11:20 Current -> 2.5 > >> *$ls -ltr /usr/bin/python** >> -rwxr-xr-x 5 root wheel 925 Jul 9 2009 /usr/bin/python-config >> lrwxr-xr-x 1 root wheel 76 Jun 7 2010 /usr/bin/pythonw2.6 -> >> ../../System/Library/ >> Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6 >> lrwxr-xr-x 1 root wheel 76 Jun 7 2010 /usr/bin/pythonw2.5 -> > > ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5 >> lrwxr-xr-x 1 root wheel 82 Jun 7 2010 > /usr/bin/python2.6-config >> -> > > ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config >> lrwxr-xr-x 1 root wheel 75 Jun 7 2010 /usr/bin/python2.6 -> > > ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 >> lrwxr-xr-x 1 root wheel 82 Jun 7 2010 > /usr/bin/python2.5-config >> -> > > ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config >> lrwxr-xr-x 1 root wheel 75 Jun 7 2010 /usr/bin/python2.5 -> > > ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 >> -rwxr-xr-x 2 root wheel 86000 Jun 25 2010 /usr/bin/pythonw >> -rwxr-xr-x 2 root wheel 86000 Jun 25 2010 /usr/bin/python > > >> Could someone point me to a solution? > >> Thanks so much for your time. > >> Yogesh > > > > > See points 1-6 above. >
> -- > -------------------------------------------------- > 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 > -------------------------------------------------- Can we see the full output from an attempt to run your executable? - -- 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/ iEYEARECAAYFAk2twogACgkQB8UpO3rKjQ94GwCcCJu9tkYhGWZhxvUzT5CU1Fl6 MBYAmwfWeqLAEc5BWJoBW/ExlNXKBKze =TF2W -----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
