Package Details: python26 2.6.9-14

Git Clone URL: (read-only, click to copy)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL:
Licenses: PSF
Submitter: None
Maintainer: None
Last Packager: yan12125
Votes: 59
Popularity: 0.000000
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 »

SpotlightKid commented on 2016-05-07 12:17

@yan12125: Thanks for the report. I'm on Manjaro and GCC 6.1 hasn't landed there yet. When it does, I'll look into it, but unless there are upstream patches (unlikely), there's nothing much I can do about it other than disabling those tests.

yan12125 commented on 2016-05-07 06:55

Lots of tests failed with GCC 6.1:

13 tests failed:
test_array test_builtin test_bytes test_decimal test_fractions
test_getargs2 test_index test_long test_math test_random test_re
test_tokenize test_types

SpotlightKid commented on 2016-03-06 06:32

I added the patch and a proper define to CPPFLAGS. Now the ssl module compiles and can be imported again. Haven't tested it further, though. Please note that I would STRONGLY recommend NOT using the built-in ssl module in Python 2.6, because it it very unsecure, but something like pyOpenSSL.

yan12125 commented on 2016-03-05 20:52

The following patch works for Python 3.2.6. Maybe it works for 2.6, too.

--- a/Modules/_ssl.c 2016-03-06 04:25:54.076238343 +0800
+++ b/Modules/_ssl.c 2016-03-06 04:27:39.789568626 +0800
@@ -1512,8 +1512,10 @@
if (proto_version == PY_SSL_VERSION_TLS1)
ctx = SSL_CTX_new(TLSv1_method());
+#ifndef OPENSSL_NO_SSL3
else if (proto_version == PY_SSL_VERSION_SSL3)
ctx = SSL_CTX_new(SSLv3_method());
else if (proto_version == PY_SSL_VERSION_SSL2)
ctx = SSL_CTX_new(SSLv2_method());

yan12125 commented on 2016-03-05 20:21

Thanks for the effort on this package! I have encountered a new problem: building _ssl extension failed since testing/openssl 1.0.2g-3. The verbose log is at As a result I can't use SSL related features like HTTPS:
$ python2.6 -c 'import ssl'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.6/", line 60, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl

SpotlightKid commented on 2016-02-12 10:54

Sorry, I can't reproduce this error. Seems like a transient network error to me. Maybe your 'localhost' address isn't configured properly?

You can disable the tests with 'makepkg --nocheck'.

ron89 commented on 2016-02-12 09:13

Unable to compile, test_smtplib test failed.

test test_smtplib failed -- Traceback (most recent call last):
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/test/", line 192, in testVRFY
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/", line 244, in __init__
(code, msg) = self.connect(host, port)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/", line 301, in connect
(code, msg) = self.getreply()
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/", line 342, in getreply
line = self.file.readline(_MAXLINE + 1)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/", line 473, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out

SpotlightKid commented on 2015-02-01 20:58

@Aramgutang: I integrated the patch. Sorry that it took so long. Let me know if there are any problems.

SpotlightKid commented on 2014-12-01 13:42

I'll look into it this week, but I probably can't test it properly, since I have no btrfs installation.

Aramgutang commented on 2014-12-01 00:58

The package fails to build on systems with a btrfs filesystem (the "test_mhlib" test fails during compilation), due to this bug:

I've tried applying the "mhlib_nlinks.txt" patch from the ticket above, and it seems to resolve the problem. Would suggest including it in this package.