Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#2192 closed defect (worksforme)

Can't install the plugin - Trac doesn't find it. [Need to Upgrade Genshi to V5]

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

I'm trying to install the plugin for single environment. I download the source using svn, then run

python setup.py bdist_egg

then copy dist/timingandestimationplugin-0.5.4-py2.5.egg file to my_project/plugins directory, and...nothing happens! It is not displayed in WebAdmin (even after restarting the server), and when I manually add 'timingandestimationplugin.* = enabled' string to trac.ini and try to update the database, it says "Database is up to date, no upgrade necessary.".

I'm using Trac 0.11dev-r6144.

Thanks in advance.

Attachments (0)

Change History (26)

comment:1 Changed 10 years ago by awzm

I'm using Trac 0.11dev-r6169 and have the same problem. I've put the .egg file in the plugins directory and tried to install it using the AccountManager Plugin. Using that plugin to locate where the .egg file is tells me the TimingAndEstimationPlugin is already installed. I managed to install AccountManager fine and even the iniadminplugin.

comment:2 Changed 10 years ago by Russ Tyndall

hmmm.... I have cleared everything out and installed it fresh on python 2.4 and trac11. I still do not get any errors. There must be some incompatibility with python 2.5 or something else different between our environments. Would you mind turning on the trac log (http://trac.edgewall.org/wiki/TracLogging) and telling me what error message it is reporting?

Thanks,

Russ

comment:3 Changed 10 years ago by awzm

I've had trac logs running for a few days at INFO level in a txt. The instances I found where timingandestimation plugin were mentioned were as follows..

2007-11-16 11:14:13,125 Trac[loader] WARNING: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile>=2.0" not found) 2007-11-16 11:14:13,155 Trac[loader] WARNING: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("docutils>=0.3" not found) 2007-11-16 11:14:13,171 Trac[loader] WARNING: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("Pygments>=0.6" not found) 2007-11-16 11:14:13,187 Trac[loader] WARNING: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not found) 2007-11-16 11:14:13,280 Trac[loader] ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "No module named transform")

Either side of that output was just repository sync's.

If you need anything more let me know.

comment:4 Changed 10 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

Awesome! All you need to do is upgrade to the head version of Genshi.

Cheers,

Russ

comment:5 Changed 10 years ago by Russ Tyndall

also, I will make a note of this on the supported versions of section of the wiki

comment:6 Changed 10 years ago by anonymous

Resolution: fixed
Status: closedreopened

Thanks for the help bobbysmith007

However I'm already running Genshi 0.4.4 (http://ftp.edgewall.com/pub/genshi/Genshi-0.4.4.zip) so I'm not quite sure what you're asking me to do :/

comment:7 Changed 10 years ago by Russ Tyndall

You need to be running > Genshi 0.5.1 (I think). The easiest way to accomplish this is to:

svn co http://svn.edgewall.org/repos/genshi/trunk python setup.py install

HTH, Russ

comment:8 Changed 10 years ago by Russ Tyndall

Well that didnt quite work like I wanted it sorry for the wrong wiki syntax I meant:

svn co http://svn.edgewall.org/repos/genshi/trunk 
python setup.py install

comment:9 Changed 10 years ago by Russ Tyndall

Resolution: fixed
Status: reopenedclosed

comment:10 Changed 10 years ago by anonymous

Resolution: fixed
Status: closedreopened

comment:11 Changed 10 years ago by anonymous

So! At last! What do you suggest to do?

comment:12 Changed 10 years ago by Russ Tyndall

For what?

Did you upgrade Genshi and that didn't work?

comment:13 Changed 10 years ago by anonymous

I get the same error:

ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "No module named transform")

I tried the workaround you suggested and updated Genshi to the latest version from trunk, but that doesn't seem to make any difference at all here. I'm using Trac 0.11b1 and Python 2.5, if that matters.

comment:14 Changed 10 years ago by anonymous

Sorry, forget my last comment. It works now.

comment:15 Changed 10 years ago by Russ Tyndall

Resolution: fixed
Status: reopenedclosed

comment:16 Changed 10 years ago by anonymous

Resolution: fixed
Status: closedreopened

I got the same error "ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "No module named transform")". I'm using Trac 0.11b1 and Python 2.5. Please let me know, how i can get and install Genshi 0.5.1, that mentioned above. It seems that there is genshi 0.4.4 at http://svn.edgewall.org/repos/genshi/trunk. Please give me step by step scenario how to upgreade genshi from 0.4.4 to 0.5.1.

comment:17 in reply to:  16 Changed 10 years ago by anonymous

See Comment #8:

Replying to anonymous:

I got the same error "ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "No module named transform")". I'm using Trac 0.11b1 and Python 2.5. Please let me know, how i can get and install Genshi 0.5.1, that mentioned above. It seems that there is genshi 0.4.4 at http://svn.edgewall.org/repos/genshi/trunk. Please give me step by step scenario how to upgreade genshi from 0.4.4 to 0.5.1.

comment:18 Changed 10 years ago by anonymous

I did the following svn co http://svn.edgewall.org/repos/genshi/trunk python setup.py install

But the "ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "No module named transform")" appeared again.

What does the additional actions that should be done to make it work?

comment:19 Changed 10 years ago by Russ Tyndall

That has always solved the problem in the past. I assume you restarted your environment.

This is the file (in the trunk): http://svn.edgewall.org/repos/genshi/trunk/genshi/filters/transform.py

The only further thing I can suggest is to remove all previously installed versions of genshi so that only the trunk one is installed on your system. Restart you environment and try again

Sorry I cannot be of more help,

Russ

comment:20 Changed 10 years ago by anonymous

Resolution: fixed
Status: reopenedclosed

OK! It works fine! Thank you!

comment:21 Changed 10 years ago by nlovinsky@…

Resolution: fixed
Status: closedreopened

I'm running in the exact same problem. I'm using Python 2.4.3 and trac .11b1. When I try to install the trunk version of Genshi I get the following dump:

running install running bdist_egg Traceback (most recent call last):

File "setup.py", line 115, in ?

cmdclass = {'build_doc': build_doc, 'test_doc': test_doc,

File "/usr/lib/python2.4/distutils/core.py", line 149, in setup

dist.run_commands()

File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands

self.run_command(cmd)

File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command

cmd_obj.run()

File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", line 76, in run

self.do_egg_install()

File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", line 92, in do_egg_install

self.run_command('bdist_egg')

File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command

self.distribution.run_command(command)

File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command

cmd_obj.ensure_finalized()

File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized

self.finalize_options()

File "/usr/lib/python2.4/site-packages/setuptools/command/bdist_egg.py", line 94, in finalize_options

ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")

File "/usr/lib/python2.4/distutils/cmd.py", line 319, in get_finalized_command

cmd_obj.ensure_finalized()

File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized

self.finalize_options()

File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 85, in finalize_options

self.vtags = self.tags()

File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 179, in tags

): version += '-r%s' % self.get_svn_revision()

File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 196, in get_svn_revision

dirurl = urlre.search(data).group(1) # get repository URL

AttributeError: 'NoneType' object has no attribute 'group'

comment:22 Changed 9 years ago by Russ Tyndall

Sorry I missed this, trac-hacks doesnt always notify me of changes and I am not sure what to do about that. This is probably just a transient bug in the head branch of Genshi. I would suggest reinstalling genshi from head now and see if you get the same problem. Otherwise, I would look for a previous stable Genshi 5 revision and update to that. There are no tags so I cannot offer better advise than that at the moment.

comment:23 Changed 9 years ago by Russ Tyndall

Summary: Can't install the plugin - Trac doesn't find it.Can't install the plugin - Trac doesn't find it. [Need to Upgrade Genshi to V5]

comment:24 Changed 9 years ago by diegog

Priority: normalhighest

I get the following error:

2008-04-14 21:18:30,318 Trac[loader] ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": (can't import "cannot import name ITemplateStreamFilter")

I have not been able to determine where ItemplateStreamFilter should be coming from?

I did upgrade to Genshi trunk which is version 0.5dev-r835.

I'm running trac 0.11dev-r5468.

Any ideas?

comment:25 Changed 9 years ago by anonymous

Priority: highestnormal
Resolution: worksforme
Status: reopenedclosed

I upgraded to trac trunk and now it works. May want to put a note on the main wiki...

comment:26 Changed 9 years ago by Russ Tyndall

I am not sure what broke in the previous trac revision you were using, but since trac 11 is unreleased and a moving target, and TimingAndEstimationPlugin works in the head revision, I am not sure what sort of note should be added (perhaps beware unreleased software).

Either way, this ticket will show up in both the trac searches and google, so hopefully will serve as enough documentation. If you feel that there is a specific note that would be useful, please let me know, or feel free to add it your self to the required versions section of the TimingAndEstimationPlugin wikipage.

Grats on getting this working :)

Russ

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
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.