Package Details: python2 2.7.18-11

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: 75
Popularity: 0.69
First Submitted: 2022-09-23 10:01 (UTC)
Last Updated: 2024-06-17 22:01 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 19 Next › Last »

Jack12816 commented on 2024-11-28 11:18 (UTC)

I get errors, too:

== Tests result: FAILURE ==

364 tests OK.

2 tests failed:
    test_argparse test_socket

28 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_nis test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_tcl
    test_ttk_textonly test_turtle test_winreg test_winsound
    test_zipfile64
5 skips unexpected on linux2:
    test_bsddb test_bsddb3 test_tcl test_ttk_textonly test_turtle

Total duration: 6 min 34 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python2-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python2 - exit status 4

CabalCrow commented on 2024-10-13 09:38 (UTC) (edited on 2024-10-13 09:39 (UTC) by CabalCrow)

When trying to sync this package I get this error

== Tests result: FAILURE ==

365 tests OK.
        >>> raise ValueError, 'message' #doctest: +IGNORE_EXCEPTION_DETAIL
1 test failed:
    test_distutils

28 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_nis test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_tcl
    test_ttk_textonly test_turtle test_winreg test_winsound
    test_zipfile64
5 skips unexpected on linux2:
    test_bsddb test_bsddb3 test_tcl test_ttk_textonly test_turtle

Total duration: 6 min 45 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python2-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python2 - exit status 4

Been getting it for a while. Anyone else with a similar problem?

micwoj92 commented on 2024-06-24 03:13 (UTC)

Thanks, I didn't even notice this error.

Do you know of any aur packages that need this? You can read more about what it is here: https://wiki.python.org/moin/TkInter.

If no, then I will remove tk from make/opt deps.
If yes, then this should be fixable with just adding -Wno-error=incompatible-pointer-types to CFLAGS.

sl1pkn07 commented on 2024-06-23 22:58 (UTC)

building '_tkinter' extension
gcc -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/tmp/makepkg/python2/src=/usr/src/debug/python2 -flto=auto -DNDEBUG -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/tmp/makepkg/python2/src=/usr/src/debug/python2 -flto=auto -DWITH_APPINIT=1 -I/usr/X11/include -I. -IInclude -I./Include -I/usr/include/openssl-1.1 -I/usr/local/include -I/tmp/makepkg/python2/src/Python-2.7.18/Include -I/tmp/makepkg/python2/src/Python-2.7.18 -c /tmp/makepkg/python2/src/Python-2.7.18/Modules/_tkinter.c -o build/temp.linux-x86_64-2.7/tmp/makepkg/python2/src/Python-2.7.18/Modules/_tkinter.o
/tmp/makepkg/python2/src/Python-2.7.18/Modules/_tkinter.c: En la función ‘AsObj’:
/tmp/makepkg/python2/src/Python-2.7.18/Modules/_tkinter.c:1178:38: error: se pasa el argumento 1 de ‘Tcl_NewUnicodeObj’ desde un tipo de puntero incompatible [-Wincompatible-pointer-types]
 1178 |             return Tcl_NewUnicodeObj(inbuf, size);
      |                                      ^~~~~
      |                                      |
      |                                      Py_UNICODE * {también conocido como int *}
En el fichero incluido desde /usr/include/tcl.h:2421,
                 desde /tmp/makepkg/python2/src/Python-2.7.18/Modules/_tkinter.c:70:
/usr/include/tclDecls.h:1102:62: nota: se esperaba ‘const Tcl_UniChar *’ {también conocido como ‘const short unsigned int *’} pero el argumento es de tipo ‘Py_UNICODE *’ {también conocido como ‘int *’}
 1102 | EXTERN Tcl_Obj *        Tcl_NewUnicodeObj(const Tcl_UniChar *unicode,
      |                   

this is ok?

tuxayo commented on 2024-06-18 12:03 (UTC) (edited on 2024-06-20 14:58 (UTC) by tuxayo)

EDIT: Retried two days latter: it worked

Anyone else got this failure?:

======================================================================
ERROR: testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/test/test_httplib.py", line 791, in testHTTPConnectionSourceAddress
    self.conn.connect()
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/httplib.py", line 840, in connect
    self.timeout, self.source_address)
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/socket.py", line 575, in create_connection
    raise err
error: [Errno 98] Address already in use

----------------------------------------------------------------------
Ran 55 tests in 2.204s

FAILED (errors=1, skipped=1)
test test_httplib failed -- Traceback (most recent call last):
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/test/test_httplib.py", line 791, in testHTTPConnectionSourceAddress
    self.conn.connect()
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/httplib.py", line 840, in connect
    self.timeout, self.source_address)
  File "/home/victor/.cache/pikaur/build/python2/src/Python-2.7.18/Lib/socket.py", line 575, in create_connection
    raise err
error: [Errno 98] Address already in use


[...]


== Tests result: FAILURE ==

365 tests OK.

1 test failed:
    test_httplib

28 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_nis test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_tcl
    test_ttk_textonly test_turtle test_winreg test_winsound
    test_zipfile64
5 skips unexpected on linux2:
    test_bsddb test_bsddb3 test_tcl test_ttk_textonly test_turtle

Total duration: 12 min 14 sec
Tests result: FAILURE

(I didn't have a server started during the build)

micwoj92 commented on 2024-06-17 17:47 (UTC)

Thanks for the report, I was able to reproduce. For the record, it passes build(), there is failure with test_ossaudiodev. I will see if this can be fixed easily, otherwise I will just disable this check. Please post build/error log next time.

taba commented on 2024-06-17 07:54 (UTC)

Doesn't build with ossp installed and osspd.service running. I use pipewire.

micwoj92 commented on 2024-05-27 19:19 (UTC) (edited on 2024-05-27 19:19 (UTC) by micwoj92)

What does it mean "necessary"?

I am sure that the Python Foundation did not test this specific Python release with the current tools available in Arch Linux repos.

Yes, this can be avoided, it is entirely up to the user to skip or not to skip check(). Please familiarize yourself with makepkg and do not repeat what has already been said countless times in these comments. Thanks!