473,395 Members | 1,972 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,395 software developers and data experts.

PIL for Windows for Python 2.4

As there is no build for Python 2.4, I attempted to put it together
from source. Running

setup.py build

gives this error:

Traceback (most recent call last):
File "C:\tmp\PIL\Imaging-1.1.4\setup.py", line 60, in ?
for line in open(os.path.join("libImaging",
"ImConfig.h")).readlines():
IOError: [Errno 2] No such file or directory: 'libImaging\\ImConfig.h'
Appears to be putting in two backslashes.

Can anyone give me a clue to fix this?

Scott
Jul 18 '05 #1
14 1508
Scott F wrote:
As there is no build for Python 2.4, I attempted to put it together
from source. Running

setup.py build

gives this error:

Traceback (most recent call last):
File "C:\tmp\PIL\Imaging-1.1.4\setup.py", line 60, in ?
for line in open(os.path.join("libImaging",
"ImConfig.h")).readlines():
IOError: [Errno 2] No such file or directory: 'libImaging\\ImConfig.h'

Appears to be putting in two backslashes.


Actually, you're just seeing the repr() of the filename.
You really are missing that file in the place where it's
looking. Note the similarity in the last two errors here:
open('test/this') Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: 'test/this' open('test\\this') Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: 'test\\this' open(r'test\this')

Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: 'test\\this'
-Peter
Jul 18 '05 #2
Peter Hansen <pe***@engcorp.com> wrote in
news:cp**********@utornnr1pp.grouptelecom.net:
Actually, you're just seeing the repr() of the filename.
You really are missing that file in the place where it's
looking.

-Peter

Give the man a beer! Thanks. I had ImConfig.h.win so I changed
setup.py to that and off we go.

Scott
Jul 18 '05 #3
So you've built PIL for windows, Python 2.4 ?

Any chance of sharing it ? What compiler have you configured distutils
to use ?

Regards,

Fuzzyman

Jul 18 '05 #4
"Fuzzyman" <fu******@gmail.com> wrote in
news:11*********************@z14g2000cwz.googlegro ups.com:
So you've built PIL for windows, Python 2.4 ?

Any chance of sharing it ? What compiler have you configured
distutils to use ?

I'm very sorry I spoke too soon. After making the initial change, the
setup.py took off on a run. But it soon quit, informing me that I
needed the Visual Studio 7 tools. So, I have no PIL either.
Jul 18 '05 #5
If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/

These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.

Hefty downloads though, do not attempt this without broadband !

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #6
On 9 Dec 2004 06:58:05 -0800, Fuzzyman <fu******@gmail.com> wrote:
If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/

These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.
Also useful: <http://rubygarden.org/ruby?WindowsCompiler>.
Hefty downloads though, do not attempt this without broadband !


380 Mb approximately.

--
Cheers,
Simon B,
si***@brunningonline.net,
http://www.brunningonline.net/simon/blog/
Jul 18 '05 #7
Fuzzyman wrote:
So you've built PIL for windows, Python 2.4 ?

Any chance of sharing it ? What compiler have you configured distutils
to use ?

Regards,

Fuzzyman

I have compiled 1.1.4's _imaging & _imagingft for 2.4 and have placed them at
http://www.reportlab.org/ftp/win32-dlls/2.4

Don't have a decent TCL any more so haven't compiled that stuff.
--
Robin Becker

Jul 18 '05 #8
Fuzzyman wrote:
If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/

These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.

Hefty downloads though, do not attempt this without broadband !

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html

Wow! I already installed the oolkit Compiler, and now it seems I need to
install 646MB of SDK. Make that "you have to be *really, really*
determined".

Think I might wait a bit longer.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #9

Steve Holden wrote:
Fuzzyman wrote:
If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/

These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.

Hefty downloads though, do not attempt this without broadband !

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html
Wow! I already installed the oolkit Compiler, and now it seems I need

to install 646MB of SDK. Make that "you have to be *really, really*
determined".

Think I might wait a bit longer.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119


Hello Steve,

I've just completed following the instructions at
http://www.vrplumber.com/programming/mstoolkit/

It's really not too bad. The download is 400meg - which unpacks to
about a 650meg isntall... but is you're hard drive that full ?

Once done it works fine........

Regards,
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #10
Fuzzyman wrote:
Steve Holden wrote:
Fuzzyman wrote:

If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/

These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.

Hefty downloads though, do not attempt this without broadband !

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html


Wow! I already installed the oolkit Compiler, and now it seems I need


to
install 646MB of SDK. Make that "you have to be *really, really*
determined".

Think I might wait a bit longer.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119

Hello Steve,

I've just completed following the instructions at
http://www.vrplumber.com/programming/mstoolkit/

It's really not too bad. The download is 400meg - which unpacks to
about a 650meg isntall... but is you're hard drive that full ?

Once done it works fine........

No, it's not that my hard drive is full (I have 22 GB spare on the
current 60BG drive, and can add another 60 GB if I need (though that
would be another 1lb to have to lug around :-).

It's the unreliability of the download process. I have now tried the
installation four times, and each time it's stalled during the download
of a component. Maybe it's just the times I've been trying, but it's
driving me nuts.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #11
That's odd - it worked fully *both* times I've done it.

I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.

Regards,

Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #12
Fuzzyman wrote:
That's odd - it worked fully *both* times I've done it.

I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.


I made the mistake of trying to use the Microsoft installer, which is
frankly a load of crap. As I write it's now canceling a fifth
installation attempt, as it have been for the last twenty minutes. Bah.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #13
Steve Holden wrote:
Fuzzyman wrote:
That's odd - it worked fully *both* times I've done it.

I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.


I made the mistake of trying to use the Microsoft installer, which is
frankly a load of crap. As I write it's now canceling a fifth
installation attempt, as it have been for the last twenty minutes. Bah.


As a further follow-up, I have now managed to install the Egenix base
package from source (even building my own Windows installer: neat!), so
it looks like I'm there - thanks for encouraging me to persist, I did
eventually manage to install by downloading the installer files and
running them locally.

regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
Jul 18 '05 #14
Yep - when it finally works it's nice to see distutils do it's stuff !

Regards,
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Olli Piepponen | last post by:
Hi, I'm having a little problem catching keystrokes under Windows. I did a little research and found that with mscvrt.getch() one can cath a single key that is pressed. However this doesn't work...
4
by: Zach Shutters | last post by:
I am new to python and working my way through the van Rossum tutorial. I am cursios though about if you can program windows with python? I know I shouldn't worry about this right now but I am...
14
by: BOOGIEMAN | last post by:
Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ?
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
17
by: Paul Rubin | last post by:
Dumb question from a Windows ignoramus: I find myself needing to write a Python app (call it myapp.py) that uses tkinter, which as it happens has to be used under (ugh) Windows. That's Windows...
16
by: Paul Rubin | last post by:
As what must be penance for something or other, I'm needing to release a Python app for use under Windows XP. Please be gentle with me since I'm a Un*x weenie and the only thing I've had much...
4
by: davidstummer | last post by:
I was wondering if anyone could point me to an example. Currently i have a c++ program which calls and c++ dll (i created both). The dll uses SendMessage to pass messages back to the calling .exe,...
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
6
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.