Thanks, upgrading to 2.0.2 solved the problem. Andreas
David Glick (Plone) wrote > The FileChunk error was fixed in > https://github.com/plone/plone.namedfile/commit/c0de399d826a19eba7d58f8501432c8ca8ecd381, > > released in plone.namedfile 2.0.3, and will be part of the next Plone > 4.3.x release. > David > > On 5/26/13 10:26 AM, Andreas Jung wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Next upgrade fun with Plone 4.3: >> >> 2013-05-26 19:24:47 ERROR root could not scale >> " > <plone.namedfile.file.NamedImage object at 0x18f5c5f0> > " of >> 'http://zopyx.com:8089/Plone/de/rotator-1' >> Traceback (most recent call last): >> File >> "/home/plone/.buildout/eggs/plone.namedfile-2.0.1-py2.7.egg/plone/namedfile/scaling.py", >> line 196, in create >> result = scaleImage(orig_data, direction=direction, height=height, >> width=width, **parameters) >> File "build/bdist.linux-x86_64/egg/plone/scale/scale.py", line 31, in >> scaleImage >> image = PIL.Image.open(image) >> File >> "/home/plone/.buildout/eggs/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/Image.py", >> line 1953, in open >> prefix = fp.read(16) >> AttributeError: 'FileChunk' object has no attribute 'read' >> 2013-05-26 19:24:47 ERROR Zope.SiteErrorLog 1369589087.310.780236486296 >> http://zopyx.com:8089/Plone/de/folder_listing >> Traceback (innermost last): >> Module ZPublisher.Publish, line 126, in publish >> Module ZPublisher.mapply, line 77, in mapply >> Module ZPublisher.Publish, line 46, in call_object >> Module Shared.DC.Scripts.Bindings, line 322, in __call__ >> Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec >> Module Products.CMFCore.FSPageTemplate, line 237, in _exec >> Module Products.CMFCore.FSPageTemplate, line 177, in pt_render >> Module Products.PageTemplates.PageTemplate, line 79, in pt_render >> Module zope.pagetemplate.pagetemplate, line 132, in pt_render >> Module zope.pagetemplate.pagetemplate, line 240, in __call__ >> Module zope.tal.talinterpreter, line 271, in __call__ >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 888, in do_useMacro >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 533, in do_optTag_tal >> Module zope.tal.talinterpreter, line 518, in do_optTag >> Module zope.tal.talinterpreter, line 513, in no_tag >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 852, in do_condition >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 821, in do_loop_tal >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 531, in do_optTag_tal >> Module zope.tal.talinterpreter, line 513, in no_tag >> Module zope.tal.talinterpreter, line 343, in interpret >> Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal >> Module Products.PageTemplates.Expressions, line 218, in >> evaluateStructure >> Module zope.tales.tales, line 696, in evaluate >> - URL: >> file:/home/plone/zopyx.com-relaunch-plone-43/src/zopyx.com.theme/zopyx/com/theme/skins/zopyx_theme_custom_templates/main_template.pt >> - Line 122, Column 27 >> - Expression: > <PythonExpr scale.scale('image', width=360, >> > height=230).tag()> >> - Names: >> {'container': > <ATFolder at /Plone/de> > , >> 'context': > <ATFolder at /Plone/de> > , >> 'default': > , >> 'here': > <ATFolder at /Plone/de> > , >> 'loop': {u'img': > <Products.PageTemplates.Expressions.PathIterator >> > object at 0x18587f50>}, >> 'nothing': None, >> 'options': {'args': ()}, >> 'repeat': > <Products.PageTemplates.Expressions.SafeMapping object >> > at 0x18921c58>, >> 'request': <HTTPRequest, > > URL=http://zopyx.com:8089/Plone/de/folder_listing>, >> 'root': > <Application at > > , >> 'template': > <FSPageTemplate at /Plone/de/folder_listing> > , >> 'traverse_subpath': [], >> 'user': > <PropertiedUser 'ajung'> > } >> Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__ >> - __traceback_info__: scale.scale('image', width=360, >> height=230).tag() >> Module PythonExpr, line 1, in > <expression> >> Module AccessControl.ImplPython, line 675, in guarded_getattr >> AttributeError: 'NoneType' object has no attribute 'tag' >> >> - -aj >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.11 (Darwin) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iQGUBAEBAgAGBQJRokXKAAoJEADcfz7u4AZjJ8MLv0wLXKfInJcr1DNm526h8Ej0 >> QyAphDtkOTqquJjLb0SSPuHI89162YefFzvXVyTf2vS3D1pjYItFGGgxgHzTrvUQ >> jcfCBE086lMfIUmUWtrrI6RAUgXiUUPyjq+vfbmUkJH8RgfXOmF9wPi1pOlaVFac >> FW5alNnodw/SUTY1X6p+nfuaqJiZ7ABIGWLC/KS6uC60Ebka6DXXonGvToGsDPga >> HB7YHHG9SRzT5IoMrCO8/speQ10d7ByiI9yTW2Ub50At4kaCBFGPsnaK8mXCRohC >> abqXpcLuJIkyyvTILwAE9/n3FrJlWtcbQtCDgLxd1zrJe8tQ4GGjbVzjp2ConLvz >> fDo8cb3hi1KwUEjbacbfCHr1WYfAKPnQR5P8HVE8gTNaofOk0Wn696OM2bbDvmUB >> rWEtuuhdrjzX8QwDQbc9FulmNRXYfVFsHIQ6Hn2Yo+jADX4i1oLxzNZheiGdwgHE >> swdOa+MfHBgM6UXuw/5egfB9W8HQo4w= >> =Cbj0 >> -----END PGP SIGNATURE----- >> >> >> _______________________________________________ >> Product-Developers mailing list >> > [email protected] >> https://lists.plone.org/mailman/listinfo/plone-product-developers > > > _______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers -- View this message in context: http://plone.293351.n2.nabble.com/Plone-4-3-AttributeError-FileChunk-object-has-no-attribute-read-tp7565375p7565392.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
