473,412 Members | 2,081 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,412 software developers and data experts.

PIL problem after installation

Lad
I installed PIL under Linux but now when I try it I get the error:

decoder jpeg not available
How can I correct that problem?

Thank you for help
L.

Jun 10 '06 #1
6 1596
Lad wrote:
I installed PIL under Linux but now when I try it I get the error:

decoder jpeg not available
How can I correct that problem?


if you built PIL yourself, the setup script told you how to fix this.

- make sure you have right libraries installed (see the
"prerequisites" section in the README)

- run setup and read the BUILD SUMMARY report carefully

- if the setup script cannot find a component, you'll have to edit
the setup.py file and set the appropriate ROOT variable. see in-
structions in the setup.py file for details.

if you got a binary release, complain to the distributor.

</F>

Jun 10 '06 #2

Probably the jpeg library - libjpeg is not present on your system.
Search Google for it, then download and install it. Try
http://rpmfind.net also to find it:

http://rpmfind.net/linux/rpm2html/se...submit=Search+...

But Fredrik's advice is very good - whenever installing a software
package, make sure to read the installation guide, release notes, etc -
carefully, and then do accordingly. This can save you a lot of time and
rework.

---------------------------------------------------------------------------*----------------

Vasudev Ram
Independent software consultant
Personal site: http://www.geocities.com/vasudevram
PDF conversion tools: http://sourceforge.net/projects/xtopdf
---------------------------------------------------------------------------*----------------

Fredrik Lundh wrote:
Lad wrote:
I installed PIL under Linux but now when I try it I get the error:

decoder jpeg not available
How can I correct that problem?


if you built PIL yourself, the setup script told you how to fix this.

- make sure you have right libraries installed (see the
"prerequisites" section in the README)

- run setup and read the BUILD SUMMARY report carefully

- if the setup script cannot find a component, you'll have to edit
the setup.py file and set the appropriate ROOT variable. see in-
structions in the setup.py file for details.

if you got a binary release, complain to the distributor.

</F>


Jun 10 '06 #3
Lad

Fredrik Lundh wrote:
Lad wrote:
I installed PIL under Linux but now when I try it I get the error:

decoder jpeg not available
How can I correct that problem?


if you built PIL yourself, the setup script told you how to fix this.

- make sure you have right libraries installed (see the
"prerequisites" section in the README)

- run setup and read the BUILD SUMMARY report carefully

- if the setup script cannot find a component, you'll have to edit
the setup.py file and set the appropriate ROOT variable. see in-
structions in the setup.py file for details.


Fredrik,
Thank you for the reply.
So I did the following:

1.
I downloaded jpeg (from ftp://ftp.uu.net/graphics/jpeg/ ) source
libraries( file jpegsrc.v6b.tar.gz) and installed them. Now in
/usr/local/lib I have the following files: cjpeg
,djpeg,jpegtran,rdjpgcom and wrjpgcom
2.
I opened setup.py file in Imaging 1.1.5 directory
and changed JPEG_ROOT =None into
JPEG_ROOT = "/usr/local/lib/"

3.ran python setup.py build_ext -i
but it still says

*** JPEG support not available

What did I wrong?
Can you please help?
Thank you
L.

Jun 12 '06 #4
I had similar problems a couple of months back when I was teaching
myself Tkinter and PIL. I wrote up my experiences here:-

http://www.aqzj33.dsl.pipex.com/how_...r/contents.htm
If you look at the section on Images you will see how I eventually
solved it (with bucket loads of help from this forum)

Good luck

Peter

Jun 12 '06 #5
Lad wrote:
I downloaded jpeg (from ftp://ftp.uu.net/graphics/jpeg/ ) source
libraries( file jpegsrc.v6b.tar.gz) and installed them. Now in
/usr/local/lib I have the following files: cjpeg
,djpeg,jpegtran,rdjpgcom and wrjpgcom


cjpeg, djpeg etc are executables, not libraries. if you have them under
/usr/local/lib, something's not quite right.

to save some time, I suggest looking for a jpeg-dev or jpeg-devel
package in the package repository for your platform.

</F>

Jun 12 '06 #6
Lad

Fredrik Lundh wrote:
Lad wrote:
I downloaded jpeg (from ftp://ftp.uu.net/graphics/jpeg/ ) source
libraries( file jpegsrc.v6b.tar.gz) and installed them. Now in
/usr/local/lib I have the following files: cjpeg
,djpeg,jpegtran,rdjpgcom and wrjpgcom


cjpeg, djpeg etc are executables, not libraries. if you have them under
/usr/local/lib, something's not quite right.

to save some time, I suggest looking for a jpeg-dev or jpeg-devel
package in the package repository for your platform.

</F>


Hello Fredrik,
Thank you for your reply.
I installed jpeg-devel package and now selftest.py worked!
But I want to use PIL in my Python program( Django) running under
Apache. What permissions must I use for which files?
Thank you very much for your help.
regards,
L,

Jun 13 '06 #7

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

Similar topics

0
by: Hong Li | last post by:
Hi guys, urgent. I have the official CD of visual studio .NET from Microsoft tech training program and ready to play. but damn it while install, I realized I'd left the paper that has the CDKEY...
0
by: Jeff Cooper | last post by:
Hi folks, I have a small VB app and I've created a deployment project for it. At the end of installation I would like the user to get a prompt like "Run your new program now? yes/no" -- or...
0
by: Michał Januszczyk | last post by:
Hello. I've got the following problem: I created a windows installer project that installs my application. The application works with some files. I want to include some example files with the...
1
by: Uma | last post by:
Hi .. right now I got Fixpack10a installed on the client/server ( both are Win2k). I am planning to apply fixpack11 , on both client/server. Do I have to do anything after fixpaxk installation...
2
by: Brent | last post by:
I have just installed Office 2003 and Visual Studio Tools for Office 2003, including the Developer Extensions for Access. I kept my Access 2000/MOD installation intact (I hope), installed Access...
1
by: RK | last post by:
Hi Is there any way can we start the windows service after installation without the need for starting the service manually. I have StartType property set to "Automatic" for the service, but that...
5
by: Oscar | last post by:
I am a beginner to ASP.NET and have not been able to have ASP.NET working. My PC is a XP Professional SP2, IIS V5.0 , IE 6.0 The configuration was able to run ASP pages at forehand. I have...
6
by: nild | last post by:
Hello i have a strange problem. I'm using LogonUser to impersonate the user under which my program must run. On Win XP or Server 2003 it works. But on 2000 it doesn't. So i found out, to set...
0
by: Bill Fallon | last post by:
I am developing a VB.Net application with VS 2005 that opens an Excel workbook and populates the worksheet with data. I started developing the application with Office 2007 installed on my Vista...
1
by: vedrandekovic | last post by:
Hi, I have one more question about installation. After installation my program that uses tokenize module,when I run myprogram.exe (vgsveki.exe): Traceback (most recent call last): File...
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...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.