Hi, I done install with 0.8.2 on Snow Leopard. Now, Got error text : "Saving the file failed. Please try again" when I upload a jpg (png) for video Thumbnail. WebError Traceback is : IOError: decoder jpeg not available. what can I do now?
Thumbnail can not upload
6 posts Started 13 years ago by lancezhou Latest reply from aicm
-
-
We use PIL (the Python Imaging Library) to handle thumbnail generation, and it uses libjpeg to read/write jpgs. It sounds like PIL was installed, but it didn't know where to find libjpeg. You'll have to:
- resolve that issue
- create a new virtualenv and activate it (you can delete the old one)
- cd into MediaCore-v0.8.2 and run python setup.py develop
- watch the output for the section where PIL installs. it will say if jpeg support was included in the build. or you can always try adding a thumbnail like before.
That step 1 is the tricky bit, of course. Are you using macports? Try running "port installed jpeg" to see if this package has been installed yet. If not, you can run "sudo port install jpeg" to install it. Hopefully that'll solve the problem.
-
Thanks, your kindly of tips.
I had did some setting up with libjpeg by Macports before I posted here.
I found some link about libjpeg and try to fix with these steps. Testing ok for jpeg install, but thumbnail error still same before.
Links:◦ http://rezmuh.sixceedinc.com/2009/04/setting-up-pil-with-libjpeg-on-mac-os-x-leopard.html
◦ http://emmby.blogspot.com/2008/05/installing-python-pil-on-mac-os-x-1052.htmlI thought it about python2.6 running on snow leopard. Anyone have same experience about it here? Thanks.
-
Hm.. are you using the Python 2.6 that comes pre-installed with snow leopard? You could try installing the Macports Python 2.6 — that's the only obvious difference I can see between your setup and that of our developers who are on snow leopard.
-
Haha..., You right. I fixed it after I installed Macports Python2.6. But, I wonder difference python still running both in back. Anyway, I can testing mediacore now.
-
I'm using python2.5 on Leopard and had the same issue with 0.9alpha. I did port install jpeg, then recreated the environment, and before developing it, I cleaned it.
python2.5 setup.py clean
And then jpeg support was listed as OK, but now I'm getting error 500 again. I always forget to write down when that happens and why so I don't spend yet another half hour trying to re-figure it out :)
FastCGI: incomplete headers (0 bytes) received from server
... whatever that is.NOTE: right, flup step...when using fastcgi.
Reply
You must log in to post.