473,406 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Python Image Library (PIL) build error on Cygwin

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
6 3529
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
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
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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: christof hoeke | last post by:
hi, how can i save an animated GIF with PIL? e.g. to rotate all frames of an image i tried the following: im = Image.open('anim.gif') for f in ImageSequence(im): #using the class from the PIL...
4
by: Alex Hunsley | last post by:
I'm using python image library 1.1.4 (http://www.pythonware.com/products/pil/) to plot images. However, when I save an image to a gif file, it comes out very dotty/ithered looking, even if it's a...
2
by: bryan rasmussen | last post by:
Hi does anyone have any experience using the Python Image library to determine if a Tiff is in the G4 or G3 codec?
0
by: S. D. Rose | last post by:
I have a question about PIL. I get a 50k photo from a MySQL table, convert it to grey-scale, do some rotations, etc. Then I want to put it back. It seems that after I do the greyscale, it...
1
by: Stuart | last post by:
I am using the Python Imaging Library (PIL) to process GIF images. I need to be able to retrieve the RGB values for each color palette entry. I see that the 'Image' class has a 'palette'...
2
by: moishyyehuda | last post by:
can I download Python Imaging Library (PIL) for linux.
0
by: moishyyehuda | last post by:
Hi I uploaded a pil library to my server. The problem is that I can't access the server with a command line. You see in order for the library to work you need to run setup.py and supply commands...
2
by: vixvixreg | last post by:
Hi, Has anyone try to use PIL in a windows domain environment? I am having a permission issue. If I am a domain user, even I have the permission to write a folder, when I tried to do simple things...
0
kudos
by: kudos | last post by:
First, PIL is a great library, however, sometimes I do perhaps not work on my own computer, but rather some obscure computer with an old version of python, with an unknown unix/linux that I have to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.