Package Details: python2 2.7.18-10

Git Clone URL: https://aur.archlinux.org/python2.git (read-only, click to copy)
Package Base: python2
Description: A high-level scripting language
Upstream URL: https://www.python.org/
Licenses: PSF-2.0
Conflicts: python
Submitter: jelly
Maintainer: micwoj92
Last Packager: micwoj92
Votes: 70
Popularity: 8.04
First Submitted: 2022-09-23 10:01 (UTC)
Last Updated: 2024-03-02 06:19 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 17 Next › Last »

Rnek0 commented on 2024-01-06 22:21 (UTC)

Some tests skipped that requires python 2.6

logs on : 6.6.9-arch1-1

== Tests result: FAILURE ==

367 tests OK.

3 tests failed: test_docxmlrpc test_httplib test_nntplib

25 tests skipped: test_aepack test_al test_applesingle test_bsddb test_bsddb185 test_bsddb3 test_cd test_cl test_dl test_gl test_imageop test_imgfile test_kqueue test_linuxaudiodev test_macos test_macostools test_msilib test_ossaudiodev test_py3kwarn test_scriptpackages test_startfile test_sunaudiodev test_winreg test_winsound test_zipfile64 2 skips unexpected on linux2: test_bsddb test_bsddb3

Total duration: 6 min 36 sec Tests result: FAILURE ==> ERREUR : Une erreur s’est produite dans check(). Abandon… erreur : échec de la compilation de 'python2-2.7.18-9':

My machine is too old for this sport.

ju_n commented on 2023-10-21 00:08 (UTC)

@Perdu no, it's not, and I have no idea why the check() function is being used like this.

Perdu commented on 2023-10-16 17:25 (UTC)

Is running computing-intensive tests on build necessary?

drws commented on 2023-10-01 15:56 (UTC)

@berab: Then there's no point in having checks in the first place. I doubt this is the encouraged way to resolve such issues in any help/docs.

micwoj92 commented on 2023-09-22 19:27 (UTC)

Or just gpg --recv-keys 04C367C218ADD4FF...

berab commented on 2023-09-22 18:04 (UTC)

You should add --skippgpcheck flag in case you have PGP signature error. Reading --help helps...

mickhowe commented on 2023-08-21 00:08 (UTC)

erifying source file signatures with gpg... Python-2.7.18.tar.xz ... FAILED (unknown public key 04C367C218ADD4FF) ==> ERROR: One or more PGP signatures could not be verified!

cedric-air commented on 2023-07-21 15:02 (UTC) (edited on 2023-07-21 15:04 (UTC) by cedric-air)

My system has some problems with locales, causing this package to fail it's tests:

test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests) ... Expected line File "/tmp/tmpeW40c_/script.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmpeW40c_/script.py", line 2, in __main__.Test
Failed example:
    'line 2'
Expected nothing
Got:
    'line 2'
**********************************************************************
1 items had failures:
   1 of   1 in __main__.Test
***Test Failed*** 1 failures.

Expected line File "/tmp/tmpeW40c_/test_zip.zip/__main__.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmpeW40c_/test_zip.zip/__main__.py", line 2, in __main__.Test
Failed example:
    'line 2'
Expected nothing
Got:
    'line 2'
**********************************************************************
1 items had failures:
   1 of   1 in __main__.Test
***Test Failed*** 1 failures.

Ran 54 tests in 0.806s

OK

== Tests result: FAILURE ==

367 tests OK.

1 test failed:
    test_locale

27 tests skipped:
    test_aepack test_al test_applesingle test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
    test_imgfile test_kqueue test_linuxaudiodev test_macos
    test_macostools test_msilib test_ossaudiodev test_pep277
    test_py3kwarn test_scriptpackages test_startfile test_sunaudiodev
    test_unicode_file test_winreg test_winsound test_zipfile64
2 skips unexpected on linux2:
    test_bsddb test_bsddb3

Total duration: 6 min 7 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().
    Aborting...

Skipping the test creates the package:

$ makepkg --nocheck

I think there's something wrong with my locale:

$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=EN_US.UTF-8
LC_CTYPE="EN_US.UTF-8"
LC_NUMERIC="EN_US.UTF-8"
LC_TIME="EN_US.UTF-8"
LC_COLLATE="EN_US.UTF-8"
LC_MONETARY="EN_US.UTF-8"
LC_MESSAGES="EN_US.UTF-8"
LC_PAPER="EN_US.UTF-8"
LC_NAME="EN_US.UTF-8"
LC_ADDRESS="EN_US.UTF-8"
LC_TELEPHONE="EN_US.UTF-8"
LC_MEASUREMENT="EN_US.UTF-8"
LC_IDENTIFICATION="EN_US.UTF-8"
LC_ALL=
$ cat /etc/locale.conf 
LANG=EN_US.UTF-8
$ cat /etc/locale.gen
en_US.UTF-8 UTF-8 
nl_NL.UTF-8 UTF-8 
# locale-gen 
Generating locales...
  en_US.UTF-8... done
  nl_NL.UTF-8... done
Generation complete.

versions:

$ uname -a
Linux cedric-work-laptop 6.4.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 19 Jul 2023 19:19:38 +0000 x86_64 GNU/Linux

micwoj92 commented on 2023-06-07 12:34 (UTC)

I said this multiple pages earlier in these comments, this is for PGO, just delete --enable-optimizations and it's in my opinion easiest solution to all these bs problems. I doubt you will notice any performance decrease.

fbrennan commented on 2023-06-07 11:37 (UTC)

Hmm. You're saying it skips the tests for you in that situation without a patch such as this?

diff --git a/PKGBUILD b/PKGBUILD
index ffec910..3c8ce95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,6 +69,13 @@ prepare() {
   rm -r Modules/zlib
   rm -r Modules/_ctypes/{darwin,libffi}*

+  # Python's tests serve no purpose for this package.
+  [ -z "$AURPY2KTESTS" ] && (
+    rm -r Lib/test/*
+    rm -r Lib/distutils/tests/*
+    warning "Disabling tests…you can force-enable them via envvar AURPY2KTESTS=1."
+  )
+
   # clean up #!s
   find . -name '*.py' | \
     xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"

I should mention: this build is occurring inside Docker so it's likely tests will fail. Perhaps I want -n instead.