Edgewall Software
Modify

Ticket #9595 (closed defect: fixed)

Opened 18 months ago

Last modified 14 months ago

Check the Python version on install

Reported by: hm2k Owned by: rblank
Priority: high Milestone: 0.12.2
Component: admin/console Version: 0.13dev
Severity: critical Keywords:
Cc:
Release Notes:
API Changes:

Description

[root@vps112 ~]# trac-admin
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.3/site-packages/setuptools-0.6c11-py2.3.egg/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.3/site-packages/setuptools-0.6c11-py2.3.egg/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.3/site-packages/setuptools-0.6c11-py2.3.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/trac/admin/__init__.py", line 14, in ?
  File "/usr/lib/python2.3/site-packages/Trac-0.13dev_r10030-py2.3.egg/trac/admin/api.py", line 140
    return list(set(a for a in self if a.startswith(text)))
                        ^
SyntaxError: invalid syntax

Attachments

Change History

comment:1 Changed 18 months ago by cboos

  • Resolution set to invalid
  • Status changed from new to closed

You're using Python 2.3, which is not supported anymore starting with Trac 0.12.

And with Trac 0.13dev, you'll even need Python 2.5.

See TracInstall and 0.13/TracInstall.

comment:2 follow-up: Changed 16 months ago by hm2k

You mean there's no testing to check for the required version?

That seems silly to me.

comment:3 in reply to: ↑ 2 Changed 16 months ago by rblank

Replying to hm2k:

You mean there's no testing to check for the required version?

You have a point there. We should probably add a check to setup.py.

comment:4 Changed 14 months ago by hm2k

Yes, a check would be useful. I'd hope this has been implemented by now.

With regards to this, I decided the only thing to do was to upgrade the system from CentOS 4 to CentOS 5, only to find that Python is only 2.4:

[root@vps112 ~]# rpm -q python
python-2.4.3-27.el5_5.3

The reason for this is probably due to backporting: http://tinyurl.com/r77l2

It's official: I'm unable to setup/install Trac on CentOS. Am I overlooking something here?

Can anyone advise further?

comment:5 Changed 14 months ago by rblank

  • Milestone set to 0.12.2
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Summary changed from SyntaxError: invalid syntax to Check the Python version on install

Install 0.12.1 or from the 0.12-stable branch, which support Python 2.4.

I'll add the version check.

comment:6 Changed 14 months ago by rblank

  • Resolution set to fixed
  • Status changed from reopened to closed

Version check added in [10364].

comment:7 Changed 14 months ago by rblank

  • Owner set to rblank
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from rblank. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.