Code

Opened 2 years ago

Closed 2 years ago

Last modified 18 months 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

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by carljm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 2 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 2 years ago by carljm

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 2 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 18 months ago by anonymous

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.