Notice: Undefined variable: name in /srv/http/vhosts/ on line 248

Package Details: python26 2.6.9-10

Git Clone URL: (read-only)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL:
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

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

SpotlightKid commented on 2017-02-03 10:20

@vita_cell: Sorry, I can not reproduce this error. There seems to be something wrong with your environment. Your build tries to link with /usr/local/lib/libpython2.6.a instead of the library built by the package. Please check your environment whether you have any CFLAGS, LDFLAGS or similar in there.

vita_cell commented on 2017-02-03 06:38

I tryed everything, and it won't compile. Only throws errors. Here is output:

Traceback (most recent call last):
File "./Lib/test/", line 124, in <module>
import cStringIO
ImportError: No module named cStringIO
make: [Makefile:700: test] Error 1 (no tiene efecto)
LD_LIBRARY_PATH=/home/vita/Desktop/python26/src/Python-2.6.9: ./python -E -tt ./Lib/test/ -l
Traceback (most recent call last):
File "./Lib/test/", line 124, in <module>
import cStringIO
ImportError: No module named cStringIO
make: *** [Makefile:701: test] Error 1

Also I tryed compile the raw source with CC=gcc-5 CXX=g++-5 CPP=cpp-5. Can someone to fix it? can not to do more.

yan12125 commented on 2016-11-26 13:11

Thanks for that doc. ChangeLog updated.

SpotlightKid commented on 2016-11-26 12:56

@yan12125: Sorry, the errors were due to a left-over debugging statement in my PKGBUILD. Everything compiles cleanly here now too.

You might want to update/correct the Changelog with the next release:

yan12125 commented on 2016-11-26 08:58

Land the socket test patch first. @SpotlightKid if you don't mind how about sharing the build log and I may guess what's wrong.

yan12125 commented on 2016-11-24 07:56 and builds fine on my machine. If you wish, I can adopt this

SpotlightKid commented on 2016-11-23 20:50

@yan12125 Thanks for the heads up. I was able to integrate your patch, but I currently have two other modules that fail to compile: _ssl (again) and dbm. I tried a patch from the official repo for the latter, which seemed applicable, but it didn't fix it.

To be honest, it's getting increasingly difficult to compile Python 2.6 on modern systems and I don't much see the point in keeping this AUR package any more. If you need to use old Python versions, pyenv ( does a lot better job than this. So, unless somebody offers a fix for the PKGBUILD or wants to take over maintainership intermediately, I'll probably orphan the package soon.

yan12125 commented on 2016-11-19 16:27

Test suite fails since testing/filesystem 2016.11. [1] Could you add the following patch? It's ported from CPython r86565 [2]

--- Python-2.6.9/Lib/test/ 2016-11-08 20:40:24.456911160 +0800
+++ Python-2.6.9/Lib/test/ 2016-11-08 20:41:01.106910886 +0800
@@ -480,7 +480,11 @@
# XXX(nnorwitz): seems to indicate
# it reasonable to get the host's addr in addition to
# At least for eCos. This is required for the S/390 to pass.
- my_ip_addr = socket.gethostbyname(socket.gethostname())
+ try:
+ my_ip_addr = socket.gethostbyname(socket.gethostname())
+ except socket.error:
+ # Probably name lookup wasn't set up right; skip this test
+ return
self.assert_(name[0] in ("", my_ip_addr), '%s invalid' % name[0])
self.assertEqual(name[1], port)


SpotlightKid commented on 2016-07-23 11:41

@yan12125,@max-k: I integrated the patch. Thanks!

max-k commented on 2016-07-19 09:11


Here is a full patch implementing yan12125's fix :

Thank you to update your package.