-----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"  ?

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?
4) If it's a script, what Python interpreter is it expecting?  This may
be indicated an initial line.
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>"
> 
> 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.

- -- 
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/

iEYEARECAAYFAk2tvoIACgkQB8UpO3rKjQ8h0ACfSxllVngc+CjHY6dgZMjsEtuh
puwAoIFmayHfqIo40ReRMQoqU7dgeLMf
=A/Ns
-----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

Reply via email to