Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - python26

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: python26 2.6.9-10

Git Clone URL: https://aur-dev.archlinux.org/python26.git (read-only)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL: http://www.python.org/
Licenses: PSF
Provides: python2=2.6.9
Submitter: None
Maintainer: SpotlightKid (yan12125)
Last Packager: yan12125
Votes: 56
Popularity: 0.406103
First Submitted: 2010-10-14 18:27
Last Updated: 2016-11-26 13:10

Dependencies (13)

Required by (1000)

Sources (16)

Latest Comments

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

yan12125 commented on 2016-07-07 14:44

Here's a new bug for Python due to updated expat: http://bugs.python.org/issue27369. It causes tests failed. This patch works for me: https://gist.github.com/yan12125/5e3c50aa2298965af7107a96ebc5e540

SpotlightKid commented on 2016-05-26 16:07

@yan12125: I can confirm the failing tests.

I had to solve this by compiling the package with GCC 5.3 (from the 'gcc5' AUR package), setting the CC, CXX and CPP environment variables to 'gcc-5', 'g++-5' and 'cpp-5' respectively.

Unfortunately this means that you have to build and install the 'gcc5' package to build this package, which can take a LOOOOONG time.

Make sure that you build the package with a clean source directory, i.e. if you use 'makepkg', remove an existing 'src' directory first.

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 https://gist.github.com/yan12125/2ae39697615ed9d698b4. 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/ssl.py", 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/test_smtplib.py", 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/smtplib.py", line 244, in __init__
(code, msg) = self.connect(host, port)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/smtplib.py", line 301, in connect
(code, msg) = self.getreply()
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/smtplib.py", line 342, in getreply
line = self.file.readline(_MAXLINE + 1)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/socket.py", 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.