PIL for Windows for Python 2.4

S

Scott F

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
 
P

Peter Hansen

Scott said:
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:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: 'test\\this'


-Peter
 
S

Scott F

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
 
F

Fuzzyman

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
 
S

Scott F

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.
 
S

Steve Holden

Fuzzyman said:
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/atlantibots/pythonutils.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
 
F

Fuzzyman

Steve said:
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

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/atlantibots/pythonutils.html
 
S

Steve Holden

Fuzzyman said:
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
 
S

Steve Holden

Fuzzyman said:
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
 
S

Steve Holden

Steve said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top