Does osqa run on python 2.4?

In fact I now the current answer: not yet.

At least one of the problems is the usage of some syntax that is post Python 2.4: class X(): instead of just class X:

asked 25 Mar '10, 11:31

sorin's gravatar image

sorin
1.1k234447
accept rate: 11%


Actually, before we switched it to meta.osqa.net, this very site was running on Python 2.4 on one of DZone's Centos-powered hosting servers. Since Centos only offered Python 2.4 we had gone back and fixed a few places where Python 2.5+ dependencies had crept in. It was a little bit of a pain, but not that hard to do. Unless we have introduced new 2.5+ dependencies in the refactoring it should still be working.

Maybe we should set up a vmware or some other virtualization system on a DZone machine so we can launch various environments and test for proper operation. Certainly we could have a clean vm set up with 2.4 for testing.

link

answered 25 Mar '10, 13:34

rickross's gravatar image

rickross ♦♦
12.5k2914972
accept rate: 46%

edited 25 Mar '10, 13:35

1

No new 2.5 dependencies were added, most of the stuff sorin is talking about is pure syntax, things like that class x() thing, in 2.4, classes without base classes don't cannot have those empty parenthesis, and I must admit, I keep forgetting it :-P

(25 Mar '10, 13:47) Hernani Cerq... ♦♦

Yup, that class x() thing is a problem for python 2.4, but django itself supposedly does not support python under 2.5. But I guess a small effort can be made to try to be as compatible as possible.

link

answered 25 Mar '10, 11:34

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Sorry, but from my knowledge Django supports Python >=2.4 and <3.0. Check http://docs.djangoproject.com/en/dev/intro/install/

This requirement is specific to OSQA and could be easily solved. I can confirm that CNPROG worked under 2.4 after I made 2-3 modifications like that.

(25 Mar '10, 12:02) sorin
1

Nice, if the amount of required effort to make it work under 2.4 is minimum, so why not?

(25 Mar '10, 13:05) Hernani Cerq... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×25

Asked: 25 Mar '10, 11:31

Seen: 1,078 times

Last updated: 25 Mar '10, 13:35

powered by OSQA