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

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 13 14 15 16 17 18 19 Next › Last »

bookman commented on 2022-09-24 22:25 (UTC) (edited on 2022-09-24 22:28 (UTC) by bookman)

:: PGP 密钥需要导入: -> C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF, 被以下需要: python2 :: 导入? [Y/n] y :: 正在用 gpg 导入密钥... gpg: enabled debug flags: memstat gpg: data source: https://keys.mailvelope.com:443 gpg: 从公钥服务器接收失败:无数据gpg: keydb: handles=0 locks=0 parse=0 get=0 gpg: build=0 update=0 insert=0 delete=0 gpg: reset=0 found=0 not=0 cache=0 not=0 gpg: kid_not_found_cache: count=0 peak=0 flushes=0 gpg: sig_cache: total=0 cached=0 good=0 bad=0 gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0 outmix=0 getlvl1=0/0 getlvl2=0/0 gpg: rndjent stat: collector=0x0000000000000000 calls=0 bytes=0 gpg: secmem usage: 0/32768 bytes in 0 blocks 错误:未找到目标:tcl 错误:未找到目标:tk 错误:未找到目标:xorg-server-xvfb -> 导入密钥时出现问题

micwoj92 commented on 2022-09-24 18:34 (UTC) (edited on 2022-09-25 00:11 (UTC) by micwoj92)

If you are getting errors in check() then you can either pass --nocheck and makepkg will skip that or build in chroot.

If you getting errors in build() then try building in chroot. It is really simple to set one up https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Setting_up_a_chroot

If you are still getting errors then unfortunately I can't help you, because this works on chroot on 2 machines that I own.

gothicVI commented on 2022-09-24 18:21 (UTC)

Since the last update I'm getting a failing test when building:

test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests) ... Expected line File "/tmp/tmpJp0FeC/script.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmpJp0FeC/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/tmpJp0FeC/test_zip.zip/__main__.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmpJp0FeC/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.

fhdrin commented on 2022-09-24 17:54 (UTC) (edited on 2022-09-24 18:01 (UTC) by fhdrin)

install manually with makepkg. dont' use an aur helper if your having issues with this one. solved my issue.

jango commented on 2022-09-24 17:26 (UTC) (edited on 2022-09-24 19:36 (UTC) by jango)

thanks micwoj92 still have error: 1 test failed: test_curses

update: makepkg --nocheck solve my failed test.

frankspace commented on 2022-09-24 17:03 (UTC)

Compilation fails for me during testing:

0:01:20 load avg: 1.05 [170/400] test_htmlparser
0:01:20 load avg: 1.05 [171/400] test_httplib
0:01:21 load avg: 1.05 [172/400] test_httpservers -- test_httplib failed
Exception in thread Thread-252:
Traceback (most recent call last):
  File "/build/python2/src/Python-2.7.18/Lib/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/build/python2/src/Python-2.7.18/Lib/test/test_httpservers.py", line 58, in run
    self.server = HTTPServer(('localhost', 0), self.request_handler)
  File "/build/python2/src/Python-2.7.18/Lib/SocketServer.py", line 420, in __init__
    self.server_bind()
  File "/build/python2/src/Python-2.7.18/Lib/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/build/python2/src/Python-2.7.18/Lib/SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "/build/python2/src/Python-2.7.18/Lib/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
gaierror: [Errno -2] Name or service not known

...at that point, it just hangs forever. This happens both if I try compiling in a chroot and if I don't. I'm baffled, is there anything I am obviously doing wrong?

micwoj92 commented on 2022-09-24 16:16 (UTC)

It works now.

jango commented on 2022-09-24 16:12 (UTC)

same here i have 4 tests failed: test_curses test_minidom test_xml_etree test_xml_etree_c

anyone have solution to fix this?

micwoj92 commented on 2022-09-24 00:01 (UTC)

look at my comment, solution is in the task.