# Python 2.7 support for SLES 11

**URL:** <https://forums.suse.com/t/python-2-7-support-for-sles-11/22666>\
**Category:** SLES Updates\
**Created:** [May 24, 2012, 4:27pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666 "2012-05-24T16:27:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelbartz](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@michaelbartz](https://forums.suse.com/u/michaelbartz)\
**Post date:** [May 24, 2012, 4:27pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/1 "2012-05-24T16:27:41Z")

</div>

When will Python 2.7 be supported for SLES 11? How is that process managed?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [May 24, 2012, 6:21pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/2 "2012-05-24T18:21:51Z")

</div>

> [@michaelbartz](#):
>
> When will Python 2.7 be supported for SLES 11? How is that process  
> managed?

Hi  
You would need to create an Enhancement request (via bugzilla),  
AFAIK it’s still using 2.6 for stability reasons…

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.1 (x86\_64) Kernel 3.1.10-1.9-desktop  
up 16:04, 3 users, load average: 0.00, 0.03, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

**Author:** ![michaelbartz](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@michaelbartz](https://forums.suse.com/u/michaelbartz)\
**Post date:** [June 8, 2012, 6:11am UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/3 "2012-06-08T06:11:40Z")

</div>

[QUOTE=malcolmlewis;4836]Hi  
You would need to create an Enhancement request (via bugzilla),  
AFAIK it’s still using 2.6 for stability reasons…

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.1 (x86\_64) Kernel 3.1.10-1.9-desktop  
up 16:04, 3 users, load average: 0.00, 0.03, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU[/QUOTE]

Thanks, Malcolm.

I suspect more compatibility than stability is at play here.

We have been totally unsuccessful in installing a Python 2.7 executable on SLES 11. Any pointers would be helpful.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [June 16, 2012, 8:07am UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/4 "2012-06-16T08:07:24Z")

</div>

> [@michaelbartz](#):
>
> malcolmlewis;4836 Wrote:[color=blue]
> 
> > Hi  
> > You would need to create an Enhancement request (via bugzilla),  
> > AFAIK it’s still using 2.6 for stability reasons…
> > 
> > –  
> > Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
> > openSUSE 12.1 (x86\_64) Kernel 3.1.10-1.9-desktop  
> > up 16:04, 3 users, load average: 0.00, 0.03, 0.05  
> > CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU[/color]
> 
> Thanks, Malcolm.
> 
> I suspect more compatibility than stability is at play here.
> 
> We have been totally unsuccessful in installing a Python 2.7 executable  
> on SLES 11. Any pointers would be helpful.

Hi  
You would need to look at using the Open Build Service and linking  
packages to devel:languages:python and building against your SLE target.

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 11 (x86\_64) Kernel 3.0.31-0.9-default  
up 7:15, 3 users, load average: 0.47, 0.40, 0.35  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

**Author:** ![niessepe](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@niessepe](https://forums.suse.com/u/niessepe)\
**Post date:** [November 14, 2012, 2:20pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/5 "2012-11-14T14:20:10Z")

</div>

It also appears that on SLES11 SP1, the python version is python-2.6.8-0.15.1, whereas in SP2, it’s python-2.6.0-8.12.2. There are some patches to go to 2.6.8-0.13.1 in the patchfinder, but python-devel is missing and the patches are marked as “restricted”. Is this the normal behaviour? My registration seems to work, I get updates for the kernel, etc.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 14, 2012, 3:12pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/6 "2012-11-14T15:12:30Z")

</div>

> [@](#):
>
> On Wed 14 Nov 2012 12:24:03 PM CST, niessepe wrote:
> 
> It also appears that on SLES11 SP1, the python version is  
> python-2.6.8-0.15.1, whereas in SP2, it’s python-2.6.0-8.12.2. There are  
> some patches to go to 2.6.8-0.13.1 in the patchfinder, but python-devel  
> is missing and the patches are marked as “restricted”. Is this the  
> normal behaviour? My registration seems to work, I get updates for the  
> kernel, etc.

Hi  
You need to add the SDK, this is done via downloading the SDK iso image  
and adding via YaST add on products;

```auto
zypper if python-devel

Information for package python-devel:

Repository: SLE11-SDK-SP1-Updates
Name: python-devel
Version: 2.6.8-0.15.1
.....
```

Once the iso image is added, it adds the relevant online and update  
repositories.

You should also be able to add manually by checking your system mirror  
credentials via your NCC.

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.2 (x86\_64) Kernel 3.4.11-2.16-desktop  
up 2 days 11:00, 4 users, load average: 1.18, 0.58, 0.26  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

**Author:** ![niessepe](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@niessepe](https://forums.suse.com/u/niessepe)\
**Post date:** [December 12, 2012, 1:08pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/7 "2012-12-12T13:08:05Z")

</div>

Hi Malcolm,

thanks for the answer. Indeed I have the SDK registered and get updates (e.g. popt-devel updated from popt-devel-1.7-37.29.29.1 to 1.7-37.50.6). But python refuses to budge:

zypper update python  
Refreshing service ‘nu\_novell\_com’.  
Loading repository data…  
Reading installed packages…  
‘python’ is already installed.  
Package ‘python’ is not available in your repositories. Cannot reinstall, upgrade, or downgrade.  
Resolving package dependencies…

Nothing to do.

zypper if python  
Refreshing service ‘nu\_novell\_com’.  
Loading repository data…  
Reading installed packages…

Information for package python:

Repository: @System  
Name: python  
Version: 2.6.0-8.12.2  
Arch: x86\_64  
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany  
Support Level: unknown  
Installed: Yes  
Status: up-to-date  
Installed Size: 1.1 MiB  
Summary: Python Interpreter  
Description:  
Python is an interpreted, object-oriented programming language, and is  
often compared to Tcl, Perl, Scheme, or Java. You can find an overview  
of Python in the documentation and tutorials included in the python-doc  
(HTML) or python-doc-pdf (PDF) packages.

If you want to install third party modules using distutils, you need to  
install python-devel package.

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 12, 2012, 2:42pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/8 "2012-12-12T14:42:24Z")

</div>

> [@niessepe;10637](#):
>
> zypper update python  
> Refreshing service ‘nu\_novell\_com’.  
> Loading repository data…  
> Reading installed packages…  
> ‘python’ is already installed.  
> Package ‘python’ is not available in your repositories. Cannot reinstall, upgrade, or downgrade.

Sounds like you’re missing at least a repo. What’s the output of these commands?

`
$ zypper lr -u
$ zypper packages | grep python`  
When posting the output wrap it in CODE tags for readability. (Look for the # button in the toolbar.)

---

<div class="post-metadata">

**Author:** ![niessepe](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@niessepe](https://forums.suse.com/u/niessepe)\
**Post date:** [December 12, 2012, 3:44pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/9 "2012-12-12T15:44:12Z")

</div>

Sorry about the bad code. I hope it’s better now.

output of zypper lr -u

```auto
# | Alias | Name | Enabled | Refresh | URI                                                                                                                       
---+-------------------------------------------------------------------+-------------------------------------------------------+---------+---------+-----------------------------------------------------------------------------------------------------                      
 1 | SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234 | SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234 | No | Yes | iso:///?iso=SLES-11-SP2-DVD-x86_64-GM-DVD1.iso&url=nfs://192.168.43.251/srv/nfs/Software/SuSE/                            
 2 | SUSE-Linux-Enterprise-Software-Development-Kit-11-SP2_11.2.2-1.66 | SUSE Linux Enterprise Software Development Kit 11 SP2 | No | Yes | iso:///?iso=SLE-11-SP2-SDK-DVD-x86_64-GM-DVD1.iso&url=file:///direct/Software/SuSE/                                       
 3 | nu_novell_com:SLE11-SDK-SP1-Pool | SLE11-SDK-SP1-Pool | No | No | https://nu.novell.com/repo/$RCE/SLE11-SDK-SP1-Pool/sle-11-x86_64?credentials=NCCcredentials                               
 4 | nu_novell_com:SLE11-SDK-SP1-Updates | SLE11-SDK-SP1-Updates | No | No | https://nu.novell.com/repo/$RCE/SLE11-SDK-SP1-Updates/sle-11-x86_64?credentials=NCCcredentials                            
 5 | nu_novell_com:SLE11-SDK-SP2-Core | SLE11-SDK-SP2-Core | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-SDK-SP2-Core/sle-11-x86_64?credentials=NCCcredentials                               
 6 | nu_novell_com:SLE11-SDK-SP2-Updates | SLE11-SDK-SP2-Updates | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-SDK-SP2-Updates/sle-11-x86_64?credentials=NCCcredentials                            
 7 | nu_novell_com:SLE11-SP1-Debuginfo-Pool | SLE11-SP1-Debuginfo-Pool | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Pool/sle-11-x86_64?credentials=NCCcredentials                         
 8 | nu_novell_com:SLE11-SP1-Debuginfo-Updates | SLE11-SP1-Debuginfo-Updates | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Updates/sle-11-x86_64?credentials=NCCcredentials                      
 9 | nu_novell_com:SLE11-SP2-Debuginfo-Core | SLE11-SP2-Debuginfo-Core | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP2-Debuginfo-Core/sle-11-x86_64?credentials=NCCcredentials                         
10 | nu_novell_com:SLE11-SP2-Debuginfo-Updates | SLE11-SP2-Debuginfo-Updates | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP2-Debuginfo-Updates/sle-11-x86_64?credentials=NCCcredentials                      
11 | nu_novell_com:SLE11-WebYaST-SP1-Pool | SLE11-WebYaST-SP1-Pool | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP1-Pool/sle-11-x86_64?credentials=NCCcredentials                           
12 | nu_novell_com:SLE11-WebYaST-SP1-Updates | SLE11-WebYaST-SP1-Updates | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP1-Updates/sle-11-x86_64?credentials=NCCcredentials                        
13 | nu_novell_com:SLE11-WebYaST-SP2-Pool | SLE11-WebYaST-SP2-Pool | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP2-Pool/sle-11-x86_64?credentials=NCCcredentials                           
14 | nu_novell_com:SLE11-WebYaST-SP2-Updates | SLE11-WebYaST-SP2-Updates | Yes | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP2-Updates/sle-11-x86_64?credentials=NCCcredentials                        
15 | nu_novell_com:SLES11-Extras | SLES11-Extras | No | Yes | https://nu.novell.com/repo/$RCE/SLES11-Extras/sle-11-x86_64?credentials=NCCcredentials                                    
16 | nu_novell_com:SLES11-SP1-Pool | SLES11-SP1-Pool | No | No | https://nu.novell.com/repo/$RCE/SLES11-SP1-Pool/sle-11-x86_64?credentials=NCCcredentials                                  
17 | nu_novell_com:SLES11-SP1-Updates | SLES11-SP1-Updates | No | No | https://nu.novell.com/repo/$RCE/SLES11-SP1-Updates/sle-11-x86_64?credentials=NCCcredentials                               
18 | nu_novell_com:SLES11-SP2-Core | SLES11-SP2-Core | Yes | Yes | https://nu.novell.com/repo/$RCE/SLES11-SP2-Core/sle-11-x86_64?credentials=NCCcredentials                                  
19 | nu_novell_com:SLES11-SP2-Extension-Store | SLES11-SP2-Extension-Store | Yes | Yes | https://nu.novell.com/repo/$RCE/SLES11-SP2-Extension-Store/sle-11-x86_64?credentials=NCCcredentials                       
20 | nu_novell_com:SLES11-SP2-Updates | SLES11-SP2-Updates | Yes | Yes | https://nu.novell.com/repo/$RCE/SLES11-SP2-Updates/sle-11-x86_64?credentials=NCCcredentials
```

zypper packages | grep python

```auto
  | SLE11-SDK-SP2-Updates | audit-libs-python | 1.7.7-6.27.1 | x86_64
  | SLES11-SP2-Updates | audit-libs-python | 1.7.7-6.27.1 | x86_64
  | SLE11-SDK-SP2-Updates | audit-libs-python | 1.7.7-6.23.1 | x86_64
  | SLES11-SP2-Updates | audit-libs-python | 1.7.7-6.23.1 | x86_64
  | SLE11-SDK-SP2-Core | audit-libs-python | 1.7.7-6.21.14 | x86_64
  | SLES11-SP2-Core | audit-libs-python | 1.7.7-6.21.14 | x86_64
  | SLES11-SP2-Updates | libvirt-python | 0.9.6-0.23.1 | x86_64
  | SLES11-SP2-Updates | libvirt-python | 0.9.6-0.21.3 | x86_64
  | SLES11-SP2-Updates | libvirt-python | 0.9.6-0.19.4 | x86_64
  | SLES11-SP2-Updates | libvirt-python | 0.9.6-0.15.71 | x86_64
  | SLES11-SP2-Core | libvirt-python | 0.9.6-0.13.42 | x86_64
v | SLES11-SP2-Updates | libxml2-python | 2.7.6-0.21.1 | x86_64
  | SLE11-SP2-Debuginfo-Updates | libxml2-python-debuginfo | 2.7.6-0.21.1 | x86_64
  | SLE11-SP2-Debuginfo-Updates | libxml2-python-debugsource | 2.7.6-0.21.1 | x86_64
  | SLE11-SDK-SP2-Core | monodevelop-python | 2.4-5.5.179 | noarch
i | SLES11-SP2-Core | python-argparse | 1.2.1-2.5.65 | x86_64
  | SLE11-SDK-SP2-Updates | python-ethtool | 0.7-0.13.1 | x86_64
  | SLES11-SP2-Updates | python-ethtool | 0.7-0.13.1 | x86_64
  | SLES11-SP2-Core | python-gnome-extras | 2.19.1-145.38.1 | x86_64
  | SLE11-SP2-Debuginfo-Core | python-gnome-extras-debuginfo | 2.19.1-145.38.1 | x86_64
  | SLE11-SP2-Debuginfo-Core | python-gnome-extras-debugsource | 2.19.1-145.38.1 | x86_64
  | SLE11-SDK-SP2-Core | python-gnome-extras-doc | 2.19.1-145.38.1 | x86_64
  | SLES11-SP2-Core | python-gnome-extras-doc | 2.19.1-145.38.1 | x86_64
  | SLE11-SDK-SP2-Core | python-logilab-astng | 0.22.0-1.7.1 | x86_64
  | SLE11-SDK-SP2-Core | python-logilab-common | 0.56.2-1.7.1 | x86_64
v | SLE11-SDK-SP2-Updates | python-qt | 3.18.1-0.5.1 | x86_64
  | SLE11-SP2-Debuginfo-Updates | python-qt-debuginfo | 3.18.1-0.5.1 | x86_64
  | SLE11-SP2-Debuginfo-Updates | python-qt-debugsource | 3.18.1-0.5.1 | x86_64
i | SLES11-SP2-Updates | python-satsolver | 0.44.5-0.5.54 | x86_64
v | SLES11-SP2-Updates | python-satsolver | 0.44.5-0.5.8 | x86_64
v | SLES11-SP2-Core | python-satsolver | 0.42.0-6.7.31 | x86_64
  | SLES11-SP2-Core | python-sssd-config | 1.5.11-0.9.96 | x86_64
  | SLE11-SDK-SP2-Core | python-yui | 0.1.0-14.5.91 | x86_64
  | SLE11-SDK-SP2-Core | python-zypp | 0.5.3-1.5.165 | x86_64
  | SLES11-SP2-Core | python-zypp | 0.5.3-1.5.165 | x86_64
i | SLES11-SP2-Core | rpm-python | 4.4.2.3-37.46.7 | x86_64
  | SLE11-SP2-Debuginfo-Core | rpm-python-debuginfo | 4.4.2.3-37.46.7 | x86_64
  | SLE11-SP2-Debuginfo-Core | rpm-python-debugsource | 4.4.2.3-37.46.7 | x86_64
  | SLE11-SDK-SP2-Updates | sax2-libsax-python | 8.1-561.559.1 | x86_64
  | SLES11-SP2-Updates | sax2-libsax-python | 8.1-561.559.1 | x86_64
  | SLE11-SDK-SP2-Core | sax2-libsax-python | 8.1-561.557.1 | x86_64
  | SLES11-SP2-Core | sax2-libsax-python | 8.1-561.557.1 | x86_64
  | SLE11-SDK-SP2-Core | subversion-python | 1.6.17-1.11.1 | x86_64
i | SLE11-SDK-SP2-Core | yast2-python-bindings | 2.17.4-1.32.115 | x86_64
i | SLES11-SP2-Core | yast2-python-bindings | 2.17.4-1.32.115 | x86_64
  | SLE11-SP2-Debuginfo-Core | yast2-python-bindings-debuginfo | 2.17.4-1.32.115 | x86_64
  | SLE11-SP2-Debuginfo-Core | yast2-python-bindings-debugsource | 2.17.4-1.32.115 | x86_64
  | SLES11-SP2-Core | zypp-plugin-python | 0.3-2.5.38 | x86_64

```

An rpm -qi of python yields:

```auto
Name : python Relocations: (not relocatable)
Version : 2.6.0 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 8.12.2 Build Date: Fri May 6 17:10:04 2011
Install Date: Mon Sep 19 14:01:21 2011 Build Host: falla
Group : Development/Languages/Python Source RPM: python-2.6.0-8.12.2.src.rpm
Size : 1186111 License: X11/MIT
Signature : RSA/8, Fri May 6 17:10:18 2011, Key ID e3a5c360307e3d54
Packager : http://bugs.opensuse.org
URL : http://www.python.org/
Summary : Python Interpreter
Description :
Python is an interpreted, object-oriented programming language, and is
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
of Python in the documentation and tutorials included in the python-doc
(HTML) or python-doc-pdf (PDF) packages.

If you want to install third party modules using distutils, you need to
install python-devel package.

Authors:
--------
    Guido van Rossum <guido@python.org>
Distribution: SUSE Linux Enterprise 11

```

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 12, 2012, 9:38pm UTC](https://forums.suse.com/t/python-2-7-support-for-sles-11/22666/10 "2012-12-12T21:38:21Z")

</div>

The SLES11-SP1-Updates and SLES11-SP1-Pool repos are disabled. Enable them, refresh them, check for updates.
