Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7187463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:51:03+00:00 2026-05-28T18:51:03+00:00

I’m trying to push a django app to the production server, but for some

  • 0

I’m trying to push a django app to the production server, but for some reason it fails and says:

ImportError: The _imaging C module is not installed

The weird part is that when I use the development server on the same machine, it works just fine. PIL is installed, and I can import the _imaging module by hand in the shell. The production server uses Apache. Any ideas?

Traceback (most recent call last):

File “C:\Python27\lib\site-packages\django\core\handlers\base.py”, line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File “C:/portal2\compliance\views.py”, line 91, in show_statement
doc.build(Story, onFirstPage=firstPage, onLaterPages=otherPage)

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 1117, in build
BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 877, in build
self.clean_hanging()

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 510, in clean_hanging
self.handle_flowable(self._hanging)

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 757, in handle_flowable
f.apply(self)

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 140, in apply
getattr(doc,arn)(*args)

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 1093, in handle_pageBegin
self._handle_pageBegin()

File “C:\Python27\lib\site-packages\reportlab\platypus\doctemplate.py”, line 535, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)

File “C:/portal2\compliance\views.py”, line 55, in firstPage
canvas.drawImage(img,0,0,8.5*inch,11*inch)

File “C:\Python27\lib\site-packages\reportlab\pdfgen\canvas.py”, line 857, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)

File “C:\Python27\lib\site-packages\reportlab\pdfbase\pdfdoc.py”, line 2094, in init
self.loadImageFromA85(src)

File “C:\Python27\lib\site-packages\reportlab\pdfbase\pdfdoc.py”, line 2100, in loadImageFromA85
imagedata = map(string.strip,pdfutils.makeA85Image(source,IMG=IMG))

File “C:\Python27\lib\site-packages\reportlab\pdfbase\pdfutils.py”, line 34, in makeA85Image
raw = img.getRGBData()

File “C:\Python27\lib\site-packages\reportlab\lib\utils.py”, line 658, in getRGBData
annotateException(‘\nidentity=%s’%self.identity())

File “C:\Python27\lib\site-packages\reportlab\lib\utils.py”, line 655, in getRGBData
self._data = im.tostring()

File “C:\Python27\lib\site-packages\PIL\Image.py”, line 532, in tostring
self.load()

File “C:\Python27\lib\site-packages\PIL\ImageFile.py”, line 164, in load
self.load_prepare()

File “C:\Python27\lib\site-packages\PIL\ImageFile.py”, line 231, in load_prepare
self.im = Image.core.new(self.mode, self.size)

File “C:\Python27\lib\site-packages\PIL\Image.py”, line 37, in getattr
raise ImportError(“The _imaging C module is not installed”)

ImportError: The _imaging C module is not installed
identity=[ImageReader@0x4517a30 filename=’C:\portal2\pdf\Certification_fullframe.tif’]
handle_pageBegin args=()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:51:04+00:00Added an answer on May 28, 2026 at 6:51 pm

    Found the answer!

    Trouble using PIL in Django app on Windows

    I had to install a version of PIL that was precompiled to work with mod-wsgi.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.