On Tue, Jan 8, 2013 at 12:38 PM, Burak Arslan
<[email protected]> wrote:
> On 01/08/13 18:54, Ken Prows wrote:
>
> Unfortunately, Category._type_info['children'] = Array(Category) dies with:
>
>
> Hi,
>
> Sorry but I can't reproduce this. Here's the test:
>
> https://github.com/plq/spyne/commit/b61cdbcec4245381dc9b98cb2db88ccf03298c6f
>
> I see that you're running Spyne trunk, (2.10 isn't released yet) can you try
> this test after either getting the latest code from my fork or reverting
> back to a stable Spyne?
>
> Here are the instructions for testing on a stable Spyne:
>
> git clone git://github.com/arskom/spyne
> cd spyne
> git checkout spyne-2.9.3
> python -c "import spyne; assert spyne.__file__ == 'spyne/__init__.py'" && \
> spyne/test/model/test_complex.py
> TestSelfRefence.test_self_referential_array_workaround
>
> Here's what I see:
>
> ==============
>
> {'Category': {'children': {'Category': [{'children': {}, 'id': 0},
>                                         {'children': {}, 'id': 1}]},
>               'id': None}}
> .
> ----------------------------------------------------------------------
> Ran 1 test in 0.001s
>
> OK
>
> ==============
>
> Thanks,
> Burak
>

Thanks for all your help.

I did this and am still getting the same error:

$ sudo pip uninstall spyne
$ sudo pip install https://github.com/arskom/spyne/tarball/spyne-2.9.3
$ python tree_test.py
...
  File "/Library/Python/2.7/site-packages/spyne/model/_base.py", line
212, in resolve_namespace
    not cls.is_default(cls)):
  File "/Library/Python/2.7/site-packages/spyne/model/primitive.py",
line 337, in is_default
    and cls.Attributes.gt == Decimal.Attributes.gt
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py",
line 868, in __eq__
    if self._check_nans(other, context):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py",
line 738, in _check_nans
    self_is_nan = self._isnan()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py",
line 709, in _isnan
    if exp == 'n':
RuntimeError: maximum recursion depth exceeded in cmp

This is tree_test.py: http://pastebin.com/0gpprG8V

Ken
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to