Package Details: python26 2.6.9-14

Git Clone URL: https://aur.archlinux.org/python26.git (read-only)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL: https://www.python.org/
Licenses: PSF
Submitter: None
Maintainer: None
Last Packager: yan12125
Votes: 59
Popularity: 0.000109
First Submitted: 2010-10-14 18:27
Last Updated: 2018-01-25 08:50

Latest Comments

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

jantman commented on 2014-09-04 20:42

Ah ok, thanks for the info.

As to root, yes, I'm aware; my entire machine (I mean *entire*, and really my desktop and laptop, which are identical) is managed by Puppet. Unfortunately, the pacman (and yaourt) package provider for Puppet executes everything as root, which is how pretty much all of Puppet works, and usually a reasonable assumption for package installation. Since the provider simply executes "yaourt --noconfirm -S packagename", and is designed to be easily interchangable with yaourt and pacman, this would be a pretty substantial logic change...

Thanks for adding a check for this so it's more obvious for others.

SpotlightKid commented on 2014-09-04 19:57

New package version 2.6.9-5:

- add arm architecture
- disable failing test 'test_float' for arm (no fix known)
- include 'Python 2.6' in pkgdesc for better visibility in AUR search
- Add warning and abort build in 'check' function when run as root, since
this triggers several test failures

If you do not use arm, there is no real need to update.

SpotlightKid commented on 2014-09-04 19:21

You shouldn't build packages as root! If you use yaourt, it will use sudo to install the package when it's built. No need to run yaourt directly as root. You should also run makepkg only as a normal unpriviledged user.

Aside from that, congratulations, it seems you found another test bug! The test 'test_posix.PosixGroupsTester.test_setgroups` uses a method of `unittest.TestCase` which was only introduced in the unittest module in Python 2.7. The reason this bug wasn't triggered when I run the tests is that the test is only run when you have UID 0, i.e. you are root.

The test_httpservers failure is probably also caused by running the tests as root. The test case `test_httpservers.CGIHTTPServerTestCase` creates a sysmlink to the python executable and then writes the path to this excutable in the shebang line of the CGI scripts. When the CGI tries to execute these scripts, the permission error is triggered.

jantman commented on 2014-09-04 17:58

I'm on x86_64, admittedly haven't updated in a while. /tmp is a tmpfs, mounted with "rw" (as the only option).

[root@phoenix Python-2.6.9]# export LD_LIBRARY_PATH="$(pwd)"
[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_httpservers
test_httpservers
test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL
test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok
test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL

======================================================================
FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 242, in test_get
self.check_status_and_reason(response, 404)
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 218, in check_status_and_reason
self.assertEquals(response.status, status)
AssertionError: 200 != 404

======================================================================
FAIL: test_authorization (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 349, in test_authorization
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 42959)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 330, in test_headers_and_content
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 33016)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 337, in test_post
self.assertEquals(res.read(), '1, python, 123456\n')
AssertionError: "Exception happened during processing of request from ('127.0.0.1', 48459)\n----------------------------------------\n" != '1, python, 123456\n'

----------------------------------------------------------------------
Ran 21 tests in 1.096s

FAILED (failures=4)
test test_httpservers failed -- multiple errors occurred
1 test failed:
test_httpservers

[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_posix
test_posix
testNoArgFunctions (test.test_posix.PosixTester) ... ok
test_access (test.test_posix.PosixTester) ... ok
test_chdir (test.test_posix.PosixTester) ... ok
test_chflags (test.test_posix.PosixTester) ... ok
test_chown (test.test_posix.PosixTester) ... ok
test_confstr (test.test_posix.PosixTester) ... ok
test_dup (test.test_posix.PosixTester) ... ok
test_dup2 (test.test_posix.PosixTester) ... ok
test_fchown (test.test_posix.PosixTester) ... ok
test_fdopen (test.test_posix.PosixTester) ... ok
test_fstat (test.test_posix.PosixTester) ... ok
test_fstatvfs (test.test_posix.PosixTester) ... ok
test_ftruncate (test.test_posix.PosixTester) ... ok
test_getcwd_long_pathnames (test.test_posix.PosixTester) ... ok
test_getgroups (test.test_posix.PosixTester) ... ok
test_lchflags (test.test_posix.PosixTester) ... ok
test_lchown (test.test_posix.PosixTester) ... ok
test_lsdir (test.test_posix.PosixTester) ... ok
test_osexlock (test.test_posix.PosixTester) ... ok
test_osshlock (test.test_posix.PosixTester) ... ok
test_pipe (test.test_posix.PosixTester) ... ok
test_stat (test.test_posix.PosixTester) ... ok
test_statvfs (test.test_posix.PosixTester) ... ok
test_strerror (test.test_posix.PosixTester) ... ok
test_tempnam (test.test_posix.PosixTester) ... ok
test_tmpfile (test.test_posix.PosixTester) ... ok
test_umask (test.test_posix.PosixTester) ... ok
test_utime (test.test_posix.PosixTester) ... ok
test_setgroups (test.test_posix.PosixGroupsTester) ... ERROR

======================================================================
ERROR: test_setgroups (test.test_posix.PosixGroupsTester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

----------------------------------------------------------------------
Ran 29 tests in 0.012s

FAILED (errors=1)
test test_posix failed -- Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

1 test failed:
test_posix

jantman commented on 2014-09-04 17:41

I'm on x86_64, admittedly haven't updated in a while. /tmp is a tmpfs, mounted with "rw" (as the only option).

[root@phoenix Python-2.6.9]# export LD_LIBRARY_PATH="$(pwd)"
[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_httpservers
test_httpservers
test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL
test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok
test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL

======================================================================
FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 242, in test_get
self.check_status_and_reason(response, 404)
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 218, in check_status_and_reason
self.assertEquals(response.status, status)
AssertionError: 200 != 404

======================================================================
FAIL: test_authorization (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 349, in test_authorization
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 42959)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 330, in test_headers_and_content
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 33016)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 337, in test_post
self.assertEquals(res.read(), '1, python, 123456\n')
AssertionError: "Exception happened during processing of request from ('127.0.0.1', 48459)\n----------------------------------------\n" != '1, python, 123456\n'

----------------------------------------------------------------------
Ran 21 tests in 1.096s

FAILED (failures=4)
test test_httpservers failed -- multiple errors occurred
1 test failed:
test_httpservers

SpotlightKid commented on 2014-09-04 12:27

@jantman Which architecture are you on? What filesystem is /tmp and what are the mount options?

Can you run this from the build directory (i.e. /tmp/makepkg/python26/src/Python-2.6.9)?

export LD_LIBRARY_PATH="$(pwd)"
./python Lib/test/regrtest.py -v test_httpservers
./python Lib/test/regrtest.py -v test_posix

jantman commented on 2014-09-04 11:47

This is currently failing for me with two failed tests:

test_httpservers
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
test test_httpservers failed -- multiple errors occurred; run in verbose mode for details

test test_posix failed -- Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

I've confirmed that /tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py exists and the perms look right.

s_m commented on 2014-06-23 09:38

@SpotlightKid, thanks it is fixed now. To be sure I removed my python26 installation and could reinstall it without any failing test.

SpotlightKid commented on 2014-06-21 09:39

New package release 2.6.9-4:
* add patch for test_distutils for http://bugs.python.org/issue10126
* source package and .AURINFO are now generated with mkaurball (thanks to Kwpolska for the tip)
* fix version number variable substitution in provides

Kwpolska commented on 2014-06-20 16:14

@SpotlightKid, have you used `mkaurball` (from the package `pkgbuild-introspection`) instead of `makepkg --source`?