mahaDev
mahaDev

Reputation: 125

Heroku: No matching distribution found for PIL==1.1.7

I am trying to push on my Heroku app and getting error while installing PIL on server, I have tried by tweaking my requirements.txt as given below

Django==1.4.5
Fabric==1.4.3
--allow-all-external
--allow-unverified PIL
PIL==1.1.7
#Pillow==2.3.0

Also tried by adding parameters at start of requirements.txt as given below:

--allow-all-external
--allow-unverified PIL
Django==1.4.5
Fabric==1.4.3
PIL==1.1.7
#Pillow==2.3.0

this is failing with error:

remote:   InsecurePlatformWarning
remote:        Downloading Django-1.4.5.tar.gz (7.7MB)
remote:        Collecting Fabric==1.4.3 (from -r requirements.txt (line 2))
remote:        Downloading Fabric-1.4.3.tar.gz (221kB)
remote:        Collecting PIL==1.1.7 (from -r requirements.txt (line 5))
remote:   Could not find a version that satisfies the requirement PIL==1.1.7 (
om -r requirements.txt (line 5)) (from versions: )
remote: No matching distribution found for PIL==1.1.7 (from -r requirements.tx
(line 5))
remote:
remote:
remote:  !     Push rejected, failed to compile Python app
remote:
remote: Verifying deploy....
remote:
remote: !       Push rejected to my-test-app.
remote:

Upvotes: 3

Views: 2874

Answers (1)

Alasdair
Alasdair

Reputation: 309099

Use Pillow instead of PIL. PIL is not maintained and has not had a new release since 2009. Pillow is a maintained fork.

Upvotes: 1

Related Questions