« Return to Thread: Problems with latest pyAMF version

Re: Problems with latest pyAMF version

by Nick Joyce :: Rate this Message:

Reply to Author | View in Thread

Hi Akira,

0.3.1 is around 7 months old now and a lot has changed internally to
improve object encoding support. If possible - could you check with
trunk and see if this error still occurs?

If it does we're going to need to see some code that reproduces the
problem because that traceback gives little info to what the cause may
be. :(

Thanks!

Nick

akira wrote:
> Hi guys,
>
> I have been getting this error once in a while with the latest
> version off PyAMF( 0.31)
>
> return pyamf.remoting.encode(pyamf_response, context).getvalue()
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/remoting/__init__.py",
> line 582, in encode
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/remoting/__init__.py",
> line 429, in _write_body
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 519, in writeElement
>    func(data)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 554, in writeArray
>    self.writeElement(data)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 519, in writeElement
>    func(data)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 728, in writeObject
>    self.writeElement(value)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 519, in writeElement
>    func(data)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 724, in writeObject
>    obj_attrs = self._getObjectAttrs(o, alias)
>  File
> "/usr/lib/python2.5/site-packages/PyAMF-0.3.1-py2.5.egg/pyamf/amf0.py",
> line 691, in _getObjectAttrs
>    raise pyamf.EncodeError('Unable to determine object attributes')
> EncodeError: Unable to determine object attributes
>
> Does anyone have an idea what might be going wrong? It is sporadical
> and does not happen all time
>
>
> Thanks
> _______________________________________________
> PyAMF dev mailing list - dev@...
> http://lists.pyamf.org/mailman/listinfo/dev



_______________________________________________
PyAMF dev mailing list - dev@...
http://lists.pyamf.org/mailman/listinfo/dev

 « Return to Thread: Problems with latest pyAMF version