I need Python 2.6, openSUSE contains 2.7.8.

Hello guys.

I’m developing on a company, using Django 1.6.x and that version doesn’t work with Python 2.7.x, only 2.6. I’ve been trying to find a repository or RPM to install that specific version, but I couldn’t find it. Can anybody help me, please?

Thanks a lot.
Best regards,
Luis Nabais

https://docs.djangoproject.com/en/dev/releases/1.6/ - This page says Django 1.6.x requires 2.6.5 or HIGHER and even supports 3.x.

Django 1.6, like Django 1.5, requires Python 2.6.5 or above. Python 3 is also officially supported. We highly recommend the latest minor release for each supported Python series (2.6.X, 2.7.X, 3.2.X, and 3.3.X).

Django 1.6 will be the final release series to support Python 2.6; beginning with Django 1.7, the minimum supported Python version will be 2.7.

Python 2.6 hasn’t been included in SUSE in ages, it’s old as heck.

On 2014-11-18, luisnabais <luisnabais@no-mx.forums.opensuse.org> wrote:
>
> Hello guys.
>
> I’m developing on a company, using Django 1.6.x and that version doesn’t
> work with Python 2.7.x, only 2.6.

Stop right there. If you’re developing on a company that depends on Python 2.6, you (and your company) up to no good in
the first place. Python 2.7 has numerous bugfixes over 2.6. I would go far as to say anyone who gives you any solution
how to install Python 2.6 open an openSUSE version not-EOL is doing no-one a favour. If you’re forced by your company to
use Python 2.6, ask them which GNU/Linux distribution they sanction for Pythoh 2.6 and go from there.

Thanks a lot for the answers. They opened my eyes. I made a mistake while reading the django documentation, didn’t noticed the “2.6.x and earlier*”* part. Now I’ve switched everything do Python 2.7.8 and updated some modules with pip.

I’m just continuing and adapting an old project on a CentOS 6 machine, which doesn’t have native Python 2.7, only 2.6.6. I want to update Django to 1.7 there, but I’ll have to request a new machine or try to install Python 2.7, pip and the modules manually. It’s an internal project, so that update is not the major need here, but it’s on my todo list.

And please don’t judge people for text, you said me or the company I’m working for are up to no good, that can be offensive. I don’t know if you meant “up to no good” like in “having bad intentions” or like in “don’t know what you are doing”, but any of them it’s not correct.

Anyway, thanks a lot for your help, my issue is solved and I’ve learned a few tricks on the way.
Best regards,
Luís Nabais

On 2014-11-19, luisnabais <luisnabais@no-mx.forums.opensuse.org> wrote:
> And please don’t judge people for text, you said me or the company I’m
> working for are up to no good, that can be offensive. I don’t know if
> you meant “up to no good” like in “having bad intentions” or like in
> “don’t know what you are doing”, but any of them it’s not correct.

The expression up to no good' is a reference to a famous quote from one of the most esteemed Programmer's Bible Numerical Recipes in C’ by Press et al… (first in print around 1986), in which they say (concerning standard deviation
calculation):

We might also comment if the difference between N and N-1 ever matters to you, then you are probably up to no good
anyway.

In common programmers’ parlance, the expression is used in reference specifically to the relevant endeavour. I was thus
referring to the use of Python 2.6 and only that and not passing judgement on yourself or company in general. If
nevertheless you do feel offended, I apologise.

I would never guess that. In that case, I’m truly sorry for my inability in understanding. And my respect for quoting such an important reference :slight_smile:

I’m just continuing and adapting an old project on a CentOS 6 machine, which doesn’t have native Python 2.7, only 2.6.6. I want to update Django to 1.7 there, but I’ll have to request a new machine or try to install Python 2.7, pip and the modules manually. It’s an internal project, so that update is not the major need here, but it’s on my todo list.

I admit to knowing absolutely nothing about Django and very little about Python, but if your going to request a new computer to run Django 1.7 (which I believe is the latest version?), might you also then upgrade Python to the latest version (3.4.2) and save yourself some work further down the line? I think (I’m not by the Linux machine, so I can’t be sure) that openSuse 13.2 installs both Python 2.7 and 3.4 by default. Just a thought. Good luck on your project :slight_smile:

On 2014-11-19, sparkz alot <sparkz_alot@no-mx.forums.opensuse.org> wrote:
> I admit to knowing absolutely nothing about Django and very little about
> Python, but if your going to request a new computer to run Django 1.7
> (which I believe is the latest version?), might you also then upgrade
> Python to the latest version (3.4.2) and save yourself some work further
> down the line? I think (I’m not by the Linux machine, so I can’t be
> sure) that openSuse 13.2 installs both Python 2.7 and 3.4 by default.
> Just a thought. Good luck on your project :slight_smile:

Python 2.X and 3.X are considered two different languages - there are syntactic differences and changing from 2.X to 3.X
doesn’t simply imply an `upgrade’. Yes, openSUSE installs both versions, but you will notice it still defaults to Python
2 (just type python on the console). Only when most GNU/Linux distributions start defaulting to Python 3, would I
suggest that it’s necessary to switch completely.

It’s not that easy. In a big corporate company you have many rules, like the use of VM templates for servers, which use specific operating systems. They just use Red Hat, I haven’t even seen any CentOS 7 yet (if there are, are just a few), but I’ll see what I can find.
I’ve been in the Linux business and open source development for about 16 years, but everyday we hear something new :slight_smile: That’s part of the beauty of this.

Thanks a lot for your hints :slight_smile:

On Wed, 19 Nov 2014 13:06:01 +0000, luisnabais wrote:

> I would never guess that. In that case, I’m truly sorry for my inability
> in understanding. And my respect for quoting such an important reference
> :slight_smile:

No need to apologize - while in programmers’ parlance, this has a
different meaning, in common parlance, your interpretation is what most
people would use. Heck, I’ve been around computers since I was a kid,
work with developers daily, and was a CS major at one point in my life -
and my initial gut reaction was the same as yours.

I would just ask that everyone here remember that not everyone using
openSUSE is a programmer. No harm done, as it’s all sorted out in the
end.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Exactly :slight_smile: