BTW ,cartridge can only decode PNG pic ? JPEG pic canot be decoded and 
uploaded ,is it right?

On Wednesday, 22 January 2014 18:58:21 UTC+10, Stephen McDonald wrote:
>
> Sounds like you're hitting a PIL/Pillow issue there - google for more info 
> on getting it set up correctly on whatever system you're running, it's not 
> really a Mezzanine specific issue.
>
>
> On Wed, Jan 22, 2014 at 7:11 PM, lu zou <[email protected] 
> <javascript:>>wrote:
>
>> also when I use safari browser upload the PNG django pony picture to 
>> create a product image it come across a decoder related problem as below :
>>
>> error info:
>>
>> IOError at /admin/shop/product/
>>
>> decoder jpeg not available
>>
>> *Error during template rendering*
>>
>> In template 
>> /Users/luzou/Documents/oztrend/cart/lib/python2.7/site-packages/grappelli_safe/templates/admin/change_list.html,
>>  
>> error at line *105*
>>
>>
>>                      *{% result_list cl %}*
>>   
>>
>> traceback info:
>>
>>
>>    - 
>>    - 
>>    
>> /Users/luzou/Documents/oztrend/cart/lib/python2.7/site-packages/PIL/ImageFile.pyin
>>  
>>    load 
>>       1.                 d = Image._getdecoder(self.mode, d, a, 
>>       self.decoderconfig) ... 
>>    - 
>>    ▶ Local vars  
>>    - 
>>    
>> /Users/luzou/Documents/oztrend/cart/lib/python2.7/site-packages/PIL/Image.pyin
>>  
>>    _getdecoder 
>>       1.         raise IOError("decoder %s not available" % 
>>       decoder_name) ... 
>>    - 
>>    ▶ Local vars 
>>
>>
>>
>> On Wednesday, 22 January 2014 17:14:10 UTC+10, Stephen McDonald wrote:
>>
>>> That error typically occurs when there has been a problem with the 
>>> JavaScript that handles the drag/drop re-ordering.
>>>
>>> Check your browser's JavaScript console for errors or perhaps missing 
>>> files.
>>>
>>>
>>> On Wed, Jan 22, 2014 at 6:11 PM, lu zou <[email protected]> wrote:
>>>
>>>> when I am create a product in admin account ,if I upload the product 
>>>> image ,there will be a bug ,donot why, using the default django pic ,same 
>>>> problem ,all kinds of the image type I have tried to upload ,all come 
>>>> across the same problem 
>>>>
>>>> error info:
>>>>
>>>> invalid literal for int() with base 10: ''
>>>>
>>>> traceback info :
>>>>
>>>>
>>>>    - 
>>>>    
>>>>    
>>>>    
>>>> /Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/admin.py
>>>>  in save_formset
>>>>    
>>>>    
>>>>    
>>>>    1. 
>>>>       
>>>>                                                        
>>>> self._images_formset, change)
>>>>       
>>>>       2. ... 
>>>>    ▶ Local vars <http://127.0.0.1:8000/admin/shop/product/2/#>
>>>>    - 
>>>>
>>>>
>>>>    
>>>>    
>>>>    
>>>>    - 
>>>>    
>>>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>>>>  in save
>>>>    
>>>>    
>>>>    
>>>>    1. 
>>>>       
>>>>               super(Orderable, self).save(*args, **kwargs)
>>>>       
>>>>       ...
>>>>    ▶ Local vars <http://127.0.0.1:8000/admin/shop/product/2/#>
>>>>    
>>>>
>>>> also when upload pic from the media library(which have been uploaded into 
>>>> already ) into gallery 
>>>>
>>>>
>>>>
>>>> same error:
>>>>
>>>> invalid literal for int() with base 10: ''
>>>>
>>>>  
>>>>
>>>>    - 
>>>>    /Users/luzou/Documents/djanproj/cartridge/lib/
>>>>    python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/
>>>>    mezzanine/pages/admin.py in change_view
>>>>    1. 
>>>>       
>>>>               return super(PageAdmin, self).change_view(request, 
>>>> object_id, **kwargs)
>>>>       
>>>>       ...
>>>>    ▶ Local vars <http://127.0.0.1:8000/admin/galleries/gallery/8/#>
>>>>    
>>>>
>>>>
>>>>
>>>>    - /Users/luzou/Documents/djanproj/cartridge/lib/
>>>>    python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/
>>>>    mezzanine/galleries/models.py in save
>>>>    1. 
>>>>       
>>>>               super(GalleryImage, self).save(*args, **kwargs)
>>>>       
>>>>       ...
>>>>    ▶ Local vars <http://127.0.0.1:8000/admin/galleries/gallery/8/#>
>>>>    - /Users/luzou/Documents/djanproj/cartridge/lib/
>>>>    python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/
>>>>    mezzanine/core/models.py in save
>>>>    1. 
>>>>       
>>>>               super(Orderable, self).save(*args, **kwargs)
>>>>       
>>>>       ...
>>>>    ▶ Local vars <http://127.0.0.1:8000/admin/galleries/gallery/8/#>
>>>>    - 
>>>>    
>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Mezzanine Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Stephen McDonald
>>> http://jupo.org 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to