Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#17968 closed Uncategorized (invalid)

setup.py 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

Description

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 init.py is present.

I've been following the directions from here:

https://docs.djangoproject.com/en/1.3/topics/install/#installing-an-official-release

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

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

Change History (5)

comment:1 by Carl Meyer, 12 years ago

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 by anonymous, 12 years ago

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 by Carl Meyer, 12 years ago

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 by anonymous, 12 years ago

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

comment:5 by anonymous, 12 years ago

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