Problem pyton PIL

2014-04-15 Thread Spinxer
Hi! I finally managed to install ImageMagick and Python PIL. At least I thought so. But when I do: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type help, copyright, credits or license for more information. from PIL import Image I get

Re: Problem pyton PIL

2014-04-15 Thread Brandon Allbery
On Tue, Apr 15, 2014 at 9:00 AM, Spinxer spin...@wolke7.net wrote: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin You're getting /usr/bin/python (Apple's build). No idea what's up with its PIL. You probably want `sudo port select --set

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 15:20, schrieb Brandon Allbery: On Tue, Apr 15, 2014 at 9:00 AM, Spinxer spin...@wolke7.net mailto:spin...@wolke7.net wrote: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin You're getting /usr/bin/python (Apple's

Re: Problem pyton PIL

2014-04-15 Thread Chris Jones
$ sudo port select --set python python27; hash -r Password: Selecting 'python27' for 'python' succeeded. 'python27' is now active. $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type help, copyright, credits or license for more information.

Re: Problem pyton PIL

2014-04-15 Thread Jeremy Lavergne
Since you’re able to use port but the wrong python is picked up, it sounds like MacPorts was put as a suffix rather than prefix. As Chris said, consider sharing: echo $PATH You might also check: which -a python On Apr 15, 2014, at 9:31, Chris Jones jon...@hep.phy.cam.ac.uk wrote: macmini

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 15:31, schrieb Chris Jones: Looks like you are still not getting MacPorts python there. You should see something like macmini ~ which python /opt/local/bin/python Okay… That gives me: $ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python Have you added

Problem pyton PIL

2014-04-15 Thread Joshua Root
On Tue, Apr 15, 2014 at 9:00 AM, Spinxer spinxer at wolke7.net wrote: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin You're getting /usr/bin/python (Apple's build). No idea what's up with its PIL. You probably want `sudo port

Re: Problem pyton PIL

2014-04-15 Thread Chris Jones
Hi, On 15/04/14 14:41, Spinxer wrote: Am 15.04.14 15:31, schrieb Chris Jones: Looks like you are still not getting MacPorts python there. You should see something like macmini ~ which python /opt/local/bin/python Okay… That gives me: $ which python

Re: Problem pyton PIL

2014-04-15 Thread Brandon Allbery
On Tue, Apr 15, 2014 at 9:34 AM, Jeremy Lavergne jer...@lavergne.gotdns.org wrote: You might also check: which -a python Could people please stop recommending `which`? It is likely to show what your dotfiles would do in the next shell started, NOT what the current shell thinks. (Some

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 15:45, schrieb Chris Jones: So, do you have that path in your $PATH (it will really help if you sent what echo $PATH gives ) $ echo $PATH

Re: Problem pyton PIL

2014-04-15 Thread Ryan Schmidt
On Apr 15, 2014, at 08:00, Spinxer wrote: But when I do: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type help, copyright, credits or license for more information. from PIL import Image I get this error message: Traceback

Re: Problem pyton PIL

2014-04-15 Thread Christopher Jones
Hi, /opt/local/bin:/Users/shk/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin/usr/local/git/bin:/opt/local/sbin:/usr/local/sbin:/Applications/wiimms-wbfs-tool/bin:/Applications/Vagrant/bin:/usr/local/mysql/bin If thats an exact representation of what you have, then you need a : in

Re: Problem pyton PIL

2014-04-15 Thread Christopher Jones
Could people please stop recommending `which`? It is likely to show what your dotfiles would do in the next shell started, NOT what the current shell thinks. (Some versions will show what the next *login* would get, not just the next shell in a session, depending on whether it starts as a

Re: Problem pyton PIL

2014-04-15 Thread Christopher Jones
Traceback (most recent call last): File stdin, line 1, in module File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py, line 53, in module from PIL import _imaging as core ImportError:

Re: Problem pyton PIL

2014-04-15 Thread Ned Deily
In article eef83644-0c87-444d-855e-9be25ee72...@macports.org, Ryan Schmidt ryandes...@macports.org wrote: On Apr 15, 2014, at 08:00, Spinxer wrote: But when I do: $ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type help,

Re: Problem pyton PIL

2014-04-15 Thread Ryan Schmidt
On Apr 15, 2014, at 14:00, Ned Deily wrote: Ryan Schmidt wrote: Where did /Library/Frameworks/Python.framework come from? It¹s not provided by Apple, nor any MacPorts port, and will likely interfere with things you want to install using MacPorts. I recommend you remove it.

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 19:58, schrieb Christopher Jones: If thats an exact representation of what you have, then you need a : in the middle of /usr/X11/bin/usr/local/git/bin Chris Well spotted! Thanks a lot! ___ macports-users mailing list

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 19:10, schrieb Ryan Schmidt: Where did /Library/Frameworks/Python.framework come from? It’s not provided by Apple, Are you sure? Cite: The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should

Re: Problem pyton PIL

2014-04-15 Thread Jeremy Lavergne
/System/Library is not /Library. On Apr 15, 2014, at 16:25, Spinxer spin...@wolke7.net wrote: Where did /Library/Frameworks/Python.framework come from? It’s not provided by Apple, Are you sure? Cite: The Apple-provided build of Python is installed in

Re: Problem pyton PIL

2014-04-15 Thread Brandon Allbery
On Tue, Apr 15, 2014 at 4:25 PM, Spinxer spin...@wolke7.net wrote: Am 15.04.14 19:10, schrieb Ryan Schmidt: Where did /Library/Frameworks/Python.framework come from? It’s not provided by Apple, Are you sure? Cite: The Apple-provided build of Python is installed in

Re: Problem pyton PIL

2014-04-15 Thread Spinxer
Am 15.04.14 22:27, schrieb Jeremy Lavergne: /System/Library is not /Library. Am 15.04.14 22:28, schrieb Brandon Allbery: Read your own message? /Library is not /System/Library. *SIGH*… I think my System's broken :D I also have Python 2.7.app in /Applications In /Library/Receipts/ I find

Re: Problem pyton PIL

2014-04-15 Thread Ned Deily
On Apr 15, 2014, at 12:36 , Ryan Schmidt ryandes...@macports.org wrote: On Apr 15, 2014, at 14:00, Ned Deily wrote: Ryan Schmidt wrote: Where did /Library/Frameworks/Python.framework come from? It?s not provided by Apple, nor any MacPorts port, and will likely interfere with things

Re: Problem pyton PIL

2014-04-15 Thread Ryan Schmidt
On Apr 15, 2014, at 21:00, Ned Deily wrote: On Apr 15, 2014, at 12:36 , Ryan Schmidt wrote: Anything installed in /Library/Frameworks can potentially cause problems for MacPorts-installed software, as it might inadvertently find dependencies in /Library/Frameworks instead of the