By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

Python Image Library (PIL) build error on Cygwin

P: n/a
Does anyone know the workaround for this error, encountered when trying
to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?

[...]

running build_ext
building '_imaging' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-IlibImaging
-I/usr/include/python2.3 -c encode.c -o
build/temp.cygwin-1.5.9-i686-2.3/encode.o
C:\cygwin\bin\python2.3.exe (2352): *** unable to remap
C:\cygwin\bin\tk84.dll to same address as parent(0x6F0000) != 0xB40000
5 [main] python 1996 sync_with_child: child 2352(0x224) died
before initialization with status code 0x1
385 [main] python 1996 sync_with_child: *** child state child
loading dlls
error: Resource temporarily unavailable

Erk. I *hate* having to mess around with stuff like this.

regards
Steve
Jul 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Steve,

On Thu, Apr 29, 2004 at 04:31:54PM -0400, Steve Holden wrote:
Does anyone know the workaround for this error, encountered when
trying to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?


Rebasing your system should fix the problem. See the following:

http://www.tishler.net/jason/softwar...ase-2.3.README

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

Jul 18 '05 #2

P: n/a
Jason Tishler wrote:
Steve,

On Thu, Apr 29, 2004 at 04:31:54PM -0400, Steve Holden wrote:
Does anyone know the workaround for this error, encountered when
trying to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?

Rebasing your system should fix the problem. See the following:

http://www.tishler.net/jason/softwar...ase-2.3.README

Jason

Yup, now I can't find the Tk library, but the load errors are gone and
the rest is fixable. This all seems very esoteric, I'm glad it's going
away ...

regards
Steve
Jul 18 '05 #3

P: n/a
Steve,

On Fri, Apr 30, 2004 at 12:40:48PM -0400, Steve Holden wrote:
Yup, now I can't find the Tk library,


Does the following from the Cygwin Python README help?

4. _tkinter users should note that Cygwin tcltk is really a Win32
package and hence, does *not* understand Cygwin style paths. To use
the _tkinter module you must define the following environment
variables:

$ export TCL_LIBRARY=$(cygpath -w /usr/share/tcl$version)
$ export TK_LIBRARY=$(cygpath -w /usr/share/tk$version)

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

Jul 18 '05 #4

P: n/a
Jason Tishler wrote:
Steve,

On Fri, Apr 30, 2004 at 12:40:48PM -0400, Steve Holden wrote:

Yup, now I can't find the Tk library,


Does the following from the Cygwin Python README help?

4. _tkinter users should note that Cygwin tcltk is really a Win32
package and hence, does *not* understand Cygwin style paths. To use
the _tkinter module you must define the following environment
variables:

$ export TCL_LIBRARY=$(cygpath -w /usr/share/tcl$version)
$ export TK_LIBRARY=$(cygpath -w /usr/share/tk$version)


Unfortunately that doesn't seem to help:

sholden@DELLBOY ~/install/Imaging-1.1.4
$ export TCL_LIBRARY=$(cygpath -w /usr/share/tcl8.4)

sholden@DELLBOY ~/install/Imaging-1.1.4
$ export TK_LIBRARY=$(cygpath -w /usr/share/tk8.4)

sholden@DELLBOY ~/install/Imaging-1.1.4
$ python setup.py build
running build
running build_py
running build_ext
building '_imagingtk' extension
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.9-i686-2.3/_imagingtk.o
build/temp.cygwin-1.5.9-i686-2.3/Tk/tkImaging.o -LlibImaging
-L/usr/lib/python2.3/config -lImaging -ltk8.4 -ltcl8.4 -lpython2.3 -o
build/lib.cygwin-1.5.9
-i686-2.3/_imagingtk.dll
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
cannot find -ltk8.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

I'm wondering if I might need to download extra libraries, but I can't
see anything appropriate.

regards
Steve

Jul 18 '05 #5

P: n/a
Steve,

On Fri, Apr 30, 2004 at 03:38:04PM -0400, Steve Holden wrote:
Unfortunately that doesn't seem to help:


The following may be helpful:

http://www.cygwin.com/ml/cygwin/2003-06/msg01121.html

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

Jul 18 '05 #6

P: n/a

"Steve Holden writes:

sholden@DELLBOY ~/install/Imaging-1.1.4
$ python setup.py build
running build
running build_py
running build_ext
building '_imagingtk' extension
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.9-i686-2.3/_imagingtk.o
build/temp.cygwin-1.5.9-i686-2.3/Tk/tkImaging.o -LlibImaging
-L/usr/lib/python2.3/config -lImaging -ltk8.4 -ltcl8.4 -lpython2.3 -o
build/lib.cygwin-1.5.9
-i686-2.3/_imagingtk.dll
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
cannot find -ltk8.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

I'm wondering if I might need to download extra libraries, but I can't
see anything appropriate.


Try

cd /usr/lib
ln -s libtk84.a libtk8.4.a
ln -s libtcl84.a libtcl8.4.aHTHNorman
Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.