[Skencil-users] installing on Mac Intel, now a segfault problem
W. Craig Carter
ccarter at mit.edu
Thu Aug 31 23:03:29 CEST 2006
Thanks, Joe, for the thoughtful response.
Some progress. Now the problem has shifted....
========
Correct python is in path (macintosh is unix and so uses the $path variable):
ccarter% which python
/sw/bin/python
ccarter% file /sw/bin/python
/sw/bin/python: symbolic link to `python2.3'
ccarter% file /sw/bin/python2.3
=======
========
Build sequence:
1. for PIL:
carter% sudo /sw/bin/python2.3 setup.py install
is successful, but *gives a message that it
is "--- using frameworks at /System/Library/Frameworks"
which sounds like the mac native libraries.
The selftest.py script works fine though.
PIL.pth was created at /sw/lib/python2.3/site-packages/PIL.pth with
contents: PIL
2. For skencil
ccarter% sudo /sw/bin/python2.3 ./setup.py configure --imaging-include=/sw/include/python2.3/
carter% sudo /sw/bin/python2.3 ./setup.py build --imaging-include=/sw/include/python2.3/
carter% sudo /sw/bin/python2.3 ./setup.py install --imaging-include=/sw/include/python2.3/ --prefix=/sw/
================
Something changed, I no longer get the segfault, but:
from an xterm:
ccarter% skencil
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Tk_Init error: this isn't a Tk applicationcouldn't connect to display":0.0"
I tried xhost +, but I am getting the same error. This now sounds like
an X11 problem. xcalc gets the same error!
I'll hunt this down.
W. Craig Carter
Lord Foundation Professor of Materials Science and Engineering
MIT, Dept. of Materials Science and Engineering 13-5018 77 Massachusetts Ave, Cambridge, MA 02139-4307 USA
617-253-6048 ccarter at mit.edu http://pruffle.mit.edu/~ccarter http://pruffle.mit.edu/~ccarter/FAQS/ http://pruffle.mit.edu/~ccarter/I_do_not_use_microsoft.html
On Thu, 31 Aug 2006, jbiddier wrote:
> Date: Thu, 31 Aug 2006 06:40:44 -0400
> From: jbiddier <jbiddier at comcast.net>
> To: skencil-users at wald.intevation.org
> Subject: Re: [Skencil-users] installing on Mac Intel, now a segfault problem
>
> W. Craig Carter wrote:
>> Hello All,
>> I just posted a message either on this list
>> or perhaps it was "sketch-users" about not
>> being able to load the Image module in PIL. I
>> solved this by getting libjpeg and zlib via
>> fink and then compiling PIL myself.
>>
>> I recompiled and installed skencil after the
>> PIL build.
>>
>> However, now I get a segfault when I run
>> skencil and a pop-up message saying that
>> python unexpectantly quit.
>>
>> It looks like there is a python2.3 in both
>> /Libary and in /sw (one a native Mac, the
>> other is installed via fink) There is a PIL
>> in both directories. I believe that skencil
>> is getting the find-installed python, but I
>> am not positive about this.
>>
>> Thanks for any help--I'll post a clean
>> solution when I can get one.
>>
>> Craig
>>
>> _______________________________________________
>> Skencil-users mailing list
>> Skencil-users at wald.intevation.org
>> http://lists.wald.intevation.org/mailman/listinfo/skencil-users
>>
>>
>
> I really can't help you much for I have not experimented with Skencil on
> a Intel Mac, as yet (don't have such a beast available to me.).
>
> I do have some experience dealing with multiply versions of an
> interpreter installed (if that is the problem - ???). You may have
> already tried this, but just in case:
>
> When you compile Skencil use the full path of the interpreter you wish
> to use. For example:
>
> /usr/bin/python ./setup.py ?imaging-include=<path to /usr python's PIL include files>
>
> If the fink version of python is desired (may want to use real path and not the symlink). Do the same when compiling PIL (use the full path of the python you want to run the setup.py file ? if used).
> Not sure how Macs deal with user start-up files like ?.profile?, but however they do, you may what to put the path to the fink python before the /sw installed python path (PATH=/usr/bin:/sw:<and so on>), so it is searched first. Do this before compiling!
>
> Also, I have had problems compiling PIL 1.1.5 and thus use 1.1.4 for I know how to ?work? it better. With 1.1.4 manual configuring I can determine which paths I want PIL to see. Thought this may not be your problem, it something to think about.
>
> The idea in summary:
>
> 1. Make sure the python you want to use is first in the search path (.profile, PATH variable ? same for Mac???).
> 2. Make sure PIL is compiled against the python you wish to use.
> 3. Make sure Skencil is compiled against the python you wish to use.
>
> You have probably done this, but just in case. Sorry I can't provide much (or more) help.
>
> Good luck.
>
> --J
>
> _______________________________________________
> Skencil-users mailing list
> Skencil-users at wald.intevation.org
> http://lists.wald.intevation.org/mailman/listinfo/skencil-users
>
More information about the Skencil-users
mailing list