Modify

Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#12700 closed defect (fixed)

Installation Error

Reported by: DarkShadow1015 Owned by: Ryan J Ollos
Priority: normal Component: TracTicketTemplatePlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

I'm having an issue getting this plugin installed and working. I get the following error:

2016-03-08 17:06:05,859 Trac[loader] ERROR: Skipping "tickettemplate = tickettemplate.ttadmin":
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2202, in load
    return self.resolve()
  File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2208, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.6/site-packages/TracTicketTemplate-1.0.dev0-py2.6.egg/tickettemplate/ttadmin.py", line 36, in <module>
    from tickettemplate.model import TT_Template, schema, schema_version
  File "/usr/lib/python2.6/site-packages/TracTicketTemplate-1.0.dev0-py2.6.egg/tickettemplate/model.py", line 17, in <module>
    class TT_Template(object):
  File "/usr/lib/python2.6/site-packages/TracTicketTemplate-1.0.dev0-py2.6.egg/tickettemplate/model.py", line 151, in TT_Template
    getCustomTemplate = classmethod(getCustomTemplate)
TypeError: 'classmethod' object is not callable

I'm installing version 1.0 of this plugin under Trac 1.1.6 on RHEL 6.6 (Santiago), using Apache 2.2.15 and Python 2.6. I installed it using the command:

sudo -E easy_install -U -Z https://trac-hacks.org/svn/tractickettemplateplugin/1.0

I don't see Python 2.7 listed as a prerequisite of this plugin, but for what it's worth, I do have another instance of Trac 1.1.6 running on Ubuntu server, with Apache and Python 2.7 that works just fine with version 1.0 of this plugin. If Python 2.7 is a requirement, please let me know.

Attachments (0)

Change History (5)

comment:1 Changed 21 months ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

You aren't running the latest. The line you refer to was changed in r14729. Please upgrade.

comment:2 Changed 21 months ago by DarkShadow1015

Resolution: worksforme
Status: closedreopened

Thank you Richard. However, I believe I've downloaded the latest revision. I'm using the link on the main page of this hack. If I'm getting an outdated version, I guess I don't know how to get the latest.

The svn page I'm copying says "Revision 15413" at the top. I get 3 folders, "0.10", "0.11", and "1.0"... I'm using the files under "1.0" to install.

I've even tried downloading the zip version using the link on the main page, extracting, and installing from the source.

comment:3 Changed 21 months ago by Ryan J Ollos

Owner: changed from Richard Liao to Ryan J Ollos
Status: reopenedaccepted

comment:4 Changed 21 months ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 15414:

1.0dev: Fix regression in r14729

The classmethod line should have been removed.

Fixes #12700.

comment:5 Changed 21 months ago by Ryan J Ollos

Should be fixed now. Please try the latest from tractickettemplateplugin/1.0.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.