Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#17968 closed Uncategorized (invalid) fails line 69 - Dual Python CentOS VPS

Reported by: thecandide@… Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords: install
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Attempting to install Django on a CentOS Host Gator VPS. We were forced to install Python 2.7 along side 2.4 because YUM broke when we attempted to use 2.7 exclusivity. The package appears to have extracted completely and is present.

I've been following the directions from here:

root@ini [/opt/python2.7/lib/python2.7/site-packages/Django-1.4]# python install

Traceback (most recent call last):
  File "", line 69, in ?
    version = __import__('django').get_version()
  File "/opt/python2.7/lib/python2.7/site-packages/Django-1.4/django/", line 15
    parts = 2 if version[2] == 0 else 3
SyntaxError: invalid syntax

Change History (5)

comment:1 Changed 8 years ago by Carl Meyer

Resolution: invalid
Status: newclosed

You are trying to install Django 1.4 using Python 2.4, but the minimum supported Python version for Django 1.4 is Python 2.5. If you're using Python 2.4, you'll have to stick with Django 1.3.1.

comment:2 Changed 8 years ago by anonymous

I have installed 2.7 along with 2.4

I thought it was possible to have both versions running. Or I've set them up wrong...

comment:3 Changed 8 years ago by Carl Meyer

It is possible to have them both installed and use one or the other, but "python" is probably still referencing Python 2.4. Please use the support channels listed in TicketClosingReasons/UseSupportChannels to get further help with making that work. Thanks!

comment:4 Changed 8 years ago by anonymous

I had forgot to relog after setting my 2.7 alias... It's time for me to go home!

comment:5 Changed 7 years ago by anonymous

what do u mean by "relog after setting my 2.7 alias"? What should you do after setting the alias.

Note: See TracTickets for help on using tickets.
Back to Top