Thanks for digging into this, Jaakko.

http://trac.gispython.org/lab/ticket/188

On Aug 13, 2009, at 5:40 PM, Jaakko Salli wrote:

> Sean Gillies wrote:
>> The attribute-chains test fails for me now too, and has since I
>> switched to GEOS 3.1. The locale failures are (I think) do to a lack
>> of installed Brazilian-Portuguese locale data on your system.
> Looks like locale.setlocale() needs to be called with different
> language code on Windows. For instance, on my system even using
> 'en_US.utf-8' or 'fi_FI.utf-8' fails similarly. See here for more
> info:
>
> http://stackoverflow.com/questions/955986/what-is-the-correct-way-to-set-pythons-locale
>
> And here is the list language codes that should be recognized by
> Windows implementations of setlocale():
>
> http://msdn.microsoft.com/en-us/library/39cwe7zf%28VS.71%29.aspx
>
> So, on my system following works:
>
> locale.setlocale(locale.LC_ALL, 'portuguese-brazil')
>
> Regards,
>   Jaakko
>
>> On Aug 6, 2009, at 9:43 PM, Jaakko Salli wrote:
>>
>>> Hi all,
>>>
>>> I've got following doc test failures with Python 2.5,
>>> Shapely 1.0 SVN and the old DLLs. New DLLs I compiled
>>> and linked previously fail in two additional tests.
>>>
>>> BTW, just regarding the tests, is there a version
>>> requirement with the numpy? I currently have version
>>> 1.1.1 installed.
>>>
>>> test_doctests.py
>>> .bufferOriginalPrecision failed (TopologyException: assigned depths
>>> do not match
>>> 0.366203 -0.536501), trying with reduced precision
>>> recomputing with precision scale factor = 1e+11
>>> Scaler: offsetX,Y: 0,0 scaleFactor: 1e+11
>>> ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+11
>>> F...............F
>>> =
>>> =
>>> ====================================================================
>>> FAIL: Doctest: attribute-chains.txt
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>>  File "d:\Python25\lib\doctest.py", line 2128, in runTest
>>>    raise self.failureException(self.format_failure(new.getvalue()))
>>> AssertionError: Failed doctest test for attribute-chains.txt
>>>  File "attribute-chains.txt", line 0
>>>
>>> ----------------------------------------------------------------------
>>> File "attribute-chains.txt", line 12, in attribute-chains.txt
>>> Failed example:
>>>    print list(Point(0.0, 0.0).buffer(1.0).exterior.coords)
>>> Expected:
>>>    [(0.0, -1.0), (-1.0, -1.0), ...
>>> Got:
>>>    [(1.0, 0.0), (0.99518472667219693, -0.098017140329560506),
>>> (0.98078528040323
>>> 054, -0.19509032201612808), (0.95694033573220894,
>>> -0.29028467725446211), (0.9238
>>> 7953251128696, -0.38268343236508939), (0.88192126434835527,
>>> -0.4713967368259972)
>>> , (0.83146961230254557, -0.55557023301960173), (0.77301045336273744,
>>> -0.63439328
>>> 416364493), (0.70710678118654813, -0.70710678118654691),
>>> (0.63439328416364626, -
>>> 0.77301045336273633), (0.55557023301960307, -0.83146961230254468),
>>> (0.4713967368
>>> 2599859, -0.88192126434835449), (0.38268343236509084,
>>> -0.92387953251128629), (0.
>>> 29028467725446361, -0.95694033573220849), (0.19509032201612964,
>>> -0.9807852804032
>>> 3021), (0.098017140329562089, -0.99518472667219671),
>>> (1.615542552166338e-015, -1
>>> .0), (-0.098017140329558883, -0.99518472667219704),
>>> (-0.19509032201612647, -0.98
>>> 078528040323076), (-0.2902846772544605, -0.95694033573220938),
>>> (-0.3826834323650
>>> 8784, -0.92387953251128752), (-0.4713967368259957,
>>> -0.88192126434835605), (-0.55
>>> 557023301960051, -0.83146961230254635), (-0.63439328416364393,
>>> -0.77301045336273
>>> 821), (-0.70710678118654624, -0.70710678118654879),
>>> (-0.77301045336273588, -0.63
>>> 439328416364682), (-0.83146961230254435, -0.55557023301960362),
>>> (-0.881921264348
>>> 35427, -0.47139673682599903), (-0.92387953251128618,
>>> -0.38268343236509111), (-0.
>>> 95694033573220849, -0.29028467725446366), (-0.98078528040323021,
>>> -0.195090322016
>>> 12947), (-0.99518472667219682, -0.098017140329561714), (-1.0,
>>> -1.010639055082363
>>> e-015), (-0.99518472667219693, 0.098017140329559702),
>>> (-0.98078528040323065, 0.1
>>> 950903220161275), (-0.95694033573220905, 0.29028467725446172),
>>> (-0.9238795325112
>>> 8696, 0.38268343236508923), (-0.88192126434835527,
>>> 0.47139673682599725), (-0.831
>>> 46961230254546, 0.55557023301960196), (-0.7730104533627371,
>>> 0.63439328416364527)
>>> , (-0.70710678118654768, 0.70710678118654746),
>>> (-0.63439328416364593, 0.77301045
>>> 336273666), (-0.55557023301960295, 0.83146961230254479),
>>> (-0.4713967368259987, 0
>>> .88192126434835449), (-0.38268343236509117, 0.92387953251128618),
>>> (-0.2902846772
>>> 5446411, 0.95694033573220838), (-0.19509032201613041,
>>> 0.98078528040322999), (-0.
>>> 098017140329563102, 0.9951847266721966), (-2.8482262121737323e-015,
>>> 1.0), (0.098
>>> 017140329557426, 0.99518472667219715), (0.19509032201612481,
>>> 0.9807852804032311)
>>> , (0.29028467725445867, 0.95694033573220993), (0.3826834323650859,
>>> 0.92387953251
>>> 12884), (0.47139673682599365, 0.88192126434835716),
>>> (0.55557023301959818, 0.8314
>>> 696123025479), (0.63439328416364149, 0.77301045336274021),
>>> (0.70710678118654358,
>>> 0.70710678118655146), (0.77301045336273322, 0.63439328416365004),
>>> (0.8314696123
>>> 0254179, 0.5555702330196074), (0.88192126434835194,
>>> 0.47139673682600342), (0.923
>>> 87953251128407, 0.38268343236509617), (0.95694033573220671,
>>> 0.29028467725446927)
>>> , (0.98078528040322899, 0.19509032201613569), (0.99518472667219615,
>>> 0.0980171403
>>> 29568472), (1.0, 8.2385270480656025e-015), (1.0, 0.0)]
>>>
>>>
>>> =
>>> =
>>> ====================================================================
>>> FAIL: Doctest: wkt_locale.txt
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>>  File "d:\Python25\lib\doctest.py", line 2128, in runTest
>>>    raise self.failureException(self.format_failure(new.getvalue()))
>>> AssertionError: Failed doctest test for wkt_locale.txt
>>>  File "wkt_locale.txt", line 0
>>>
>>> ----------------------------------------------------------------------
>>> File "wkt_locale.txt", line 7, in wkt_locale.txt
>>> Failed example:
>>>    locale.setlocale(locale.LC_ALL, 'pt_BR.UTF-8')
>>> Exception raised:
>>>    Traceback (most recent call last):
>>>      File "d:\Python25\lib\doctest.py", line 1228, in __run
>>>        compileflags, 1) in test.globs
>>>      File "<doctest wkt_locale.txt[1]>", line 1, in <module>
>>>        locale.setlocale(locale.LC_ALL, 'pt_BR.UTF-8')
>>>      File "D:\Python25\lib\locale.py", line 478, in setlocale
>>>        return _setlocale(category, locale)
>>>    Error: unsupported locale setting
>>>
>>>
>>> ----------------------------------------------------------------------
>>> Ran 18 tests in 0.344s
>>>
>>>
>>> Regards,
>>>  Jaakko
>>>
>>>
>>> _______________________________________________
>>> Community mailing list
>>> [email protected]
>>> http://lists.gispython.org/mailman/listinfo/community
>>
>> --
>> Sean Gillies
>> Programmer
>> Institute for the Study of the Ancient World
>> New York University
>>
>> _______________________________________________
>> Community mailing list
>> [email protected]
>> http://lists.gispython.org/mailman/listinfo/community
>>
>
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community

--
Sean

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to