Having "Exception Value: The _imaging C module is not installed" with my Buildout/Python/Django/PIL on Mac OSX SL? -


I am using Buildin for Django projects with FeinCMS. I got a good setup locally on my Mac OSX Snow Leopard, when I use Runner, there is no error. But when I upload an image with FeinCMS in the admin area, it comes with an "Exception value: _imaging C module not installed" error.

My traceback is here:

My buildout.cfg file looks like this:

  [buildout] parts = zlib libjpeg PILwoTk django-mptt Django-staticfiles django eggs = PILwoTk feincms [zlib] recipe = hexagonit.recipe.cmmi url = http://www.zlib.net/zlib-1.2.3.tar.gz config-options = --shared [libjpeg] recipe = Hexagonit.recipe.cmmi url = http://www.ijg.org/files/ Jpegsrc.v8.tar.gz [PVC] Recipe = GC. Creep.Egf: Custom Search Link = http://download.zope.org/distribution/ Included- Diaries = $ {zlib: location} / include $ {libjpeg: location} / library-dirs = $ {zlib: location} / Lib $ {libjpeg: location} / lib rpath = $ {zlib: location} / lib $ {libjpeg: location} / lib [djang contains O-mptt] recipe = infrae.subversion urls = http: // django-mptt .googlecode.com / svn / trunk / mptt MPT [degengo-staticfile] recipe = Mercurial respotri = http://bitbucket.org/jezdez/django-staticfiles/ [django] recipe = djangorecipe version = 1.1.1 project = realindia eggs = $ {Buildout: egg} extra-path = $ {django-mptt: location} $ {django-staticfiles: location}  

I have asked from FCCMS Group on Django IRC / Group, but it's not at all what this can be. I searched all over the net for the solution and still does not do any work that works. It's diving me to the wall, I got stuck on it all day. Do anyone know what the problem is?

Today I went through the same thing and found a solution. The problem is that PR will look for 32-bit libossips and the Snow Leopard will compile the library by default as x86_64. This can be fixed by modifying your libjpeg section to look like this:

  [libjpeg] recipe = hexagonit.recipe.cmmi url = http://www.ijg.org/ Files / jpegsrc V8.tar.gz environment = cc = gcc-arch i386  

You can see which library is running _imaging.so : < / P>

  otool -L path / in / PIL / _imaging.so  

This will be done in libjpeg.8.dylib in your buildout directory Must indicate the line.

Edit : On the second thought, running building with cc = "gcc-eye i386" bin / buildout will also work. If you want to compile a fat binary, remember to use GCC-4.0 and add CPP: cc = "gcc-4.0 -arch i386-ppp" CPP = "gcc -4.0-e" bin / buildout .


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -