In between I compiled pyicu for Leap 15.3 using ICU 69, and the error during test is gone (see https://build.opensuse.org/package/show/home:DocB:branches:devel:languages:python/python-PyICU ). So it is definitely an issue of the old ICU package. Leap 15.4 will have ICU 69.....
I fully agree with you. Will test against an up to date ICU once I'm back from vavcation Schöne Grüße Axel
Yes, same error with python 2.7
I would need to test if you like...may take some days, just on vacation :-)
The usual setup
python3 setup.py test
did not allow exclusion of tests (option --ignore was not recognized)
Instead I used a macro from OpenBuildService:
%pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP)' -rs test
which allows exclusion of certain tests.
That did not fix the root cause, but at least Leap packages are build again, and it is quite likely that these new features are not used...until we have a final solution
Hi,
I noticed that with the new version tests fail on openSUSE Leap 15.x, see https://build.opensuse.org/package/live_build_log/devel:languages:python/python-PyICU/openSUSE_Leap_15.3/x86_64 :
[ 199s] ====================================================================== [ 199s] ERROR: testAcceptLanguage (test.test_LocaleMatcher.TestLocaleMatcher) [ 199s] ---------------------------------------------------------------------- [ 199s] Traceback (most recent call last): [ 199s] File "/home/abuild/rpmbuild/BUILD/PyICU-2.7.4/test/test_LocaleMatcher.py", line 65, in testAcceptLanguage [ 199s] ('fr-CH', 'fr', 'en', 'de', '*'), ('de-AT', 'fr-CA')) [ 199s] ValueError: resulting locale id length > 128 [ 199s] [ 199s] ====================================================================== [ 199s] ERROR: testAcceptLanguageFromHTTP (test.test_LocaleMatcher.TestLocaleMatcher) [ 199s] ---------------------------------------------------------------------- [ 199s] Traceback (most recent call last): [ 199s] File "/home/abuild/rpmbuild/BUILD/PyICU-2.7.4/test/test_LocaleMatcher.py", line 85, in testAcceptLanguageFromHTTP [ 199s] 'fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5', ('de-AT', 'fr-CA')) [ 199s] ValueError: resulting locale id length > 128 [ 199s] [ 199s] ----------------------------------------------------------------------
Anything I could do from the build side?
Hello Andi, good news..the python gurus advised me on %pytest_arch, which did the trick. Build and Testing is now OK on all platforms. Thanks for your support!
PS: Testing in that way that we could exclude the failing tests ....
Leap is the LTS version of openSUSE, focus on stability, thus using 'mature' software versions. PyICU builds fine for Tumbleweed, our rolling release. As Leap shares the base packages with Suse Linux Enterprise Server, it requires some coordination to upgrade the ICU version....
I applied the following patch locale_buffer.diff but the error remains. So the root cause of the issues seems to be a different one, maybe related to the components that are used in Leap. I attach the full log: PyICU.log.txt
Hi,
I noticed that with the new version tests fail on openSUSE Leap 15.x, see https://build.opensuse.org/package/live_build_log/devel:languages:python/python-PyICU/openSUSE_Leap_15.3/x86_64 :
[ 199s] ====================================================================== [ 199s] ERROR: testAcceptLanguage (test.test_LocaleMatcher.TestLocaleMatcher) [ 199s] ---------------------------------------------------------------------- [ 199s] Traceback (most recent call last): [ 199s] File "/home/abuild/rpmbuild/BUILD/PyICU-2.7.4/test/test_LocaleMatcher.py", line 65, in testAcceptLanguage [ 199s] ('fr-CH', 'fr', 'en', 'de', '*'), ('de-AT', 'fr-CA')) [ 199s] ValueError: resulting locale id length > 128 [ 199s] [ 199s] ====================================================================== [ 199s] ERROR: testAcceptLanguageFromHTTP (test.test_LocaleMatcher.TestLocaleMatcher) [ 199s] ---------------------------------------------------------------------- [ 199s] Traceback (most recent call last): [ 199s] File "/home/abuild/rpmbuild/BUILD/PyICU-2.7.4/test/test_LocaleMatcher.py", line 85, in testAcceptLanguageFromHTTP [ 199s] 'fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5', ('de-AT', 'fr-CA')) [ 199s] ValueError: resulting locale id length > 128 [ 199s] [ 199s] ----------------------------------------------------------------------
Anything I could do from the build side?