Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6176 closed defect (fixed)

TracHoursPlugin latest missing dbhelper when installed from svn source

Reported by: anonymous Owned by: k0s
Priority: normal Component: TracHoursPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

After installing the plugin, enabling it and running trac-admin ... upgrade, there are errors in log:

2009-11-07 12:12:26,455 Trac[loader] DEBUG: Loading trachours.web_ui from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,500 Trac[loader] ERROR: Skipping "trachours.web_ui = trachours.web_ui": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,500 Trac[loader] DEBUG: Loading trachours.setup from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,502 Trac[loader] ERROR: Skipping "trachours.setup = trachours.setup": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,502 Trac[loader] DEBUG: Loading trachours.ticket from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,503 Trac[loader] ERROR: Skipping "trachours.ticket = trachours.ticket": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,504 Trac[loader] DEBUG: Loading trachours.multiproject from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,504 Trac[loader] DEBUG: Loading trachours.trachours from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,506 Trac[loader] ERROR: Skipping "trachours.trachours = trachours.hours": (can't import "ImportError: No module named dbhelper")

After changing the module name from dbhelper to tracsqlhelper other errors occr:

2009-11-07 12:10:11,755 Trac[loader] ERROR: Skipping "trachours.web_ui = trachours.web_ui": (can't import "ImportError: No module named ticketsidebarprovider.interface") 2009-11-07 12:10:11,755 Trac[loader] DEBUG: Loading trachours.setup from /var/www/dev/tracprojects/t/plugins/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:10:11,755 Trac[loader] DEBUG: Loading trachours.ticket from /var/www/dev/tracprojects/t/plugins/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:10:11,757 Trac[loader] ERROR: Skipping "trachours.ticket = trachours.ticket": (can't import "ImportError: No module named mail2trac.utils")

and the update fails with following message: sudo trac-admin /var/www/dev/tracprojects/t/ upgrade Traceback (most recent call last):

File "/usr/bin/trac-admin", line 8, in <module>

load_entry_point('Trac==0.11.5', 'console_scripts', 'trac-admin')()

File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/admin/console.py", line 1314, in run

return admin.onecmd(command)

File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/admin/console.py", line 133, in onecmd

rv = cmd.Cmd.onecmd(self, line) or 0

File "/usr/lib/python2.5/cmd.py", line 219, in onecmd

return func(arg)

File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/admin/console.py", line 1149, in do_upgrade

if not self.env.needs_upgrade():

File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/env.py", line 429, in needs_upgrade

if participant.environment_needs_upgrade(db):

File "build/bdist.linux-i686/egg/trachours/setup.py", line 45, in environment_needs_upgrade File "build/bdist.linux-i686/egg/trachours/setup.py", line 69, in version File "/usr/lib/python2.5/site-packages/TracSQLHelper-0.2.1-py2.5.egg/tracsqlhelper/init.py", line 76, in get_scalar

data = get_first_row(env, sql, *params)

File "/usr/lib/python2.5/site-packages/TracSQLHelper-0.2.1-py2.5.egg/tracsqlhelper/init.py", line 19, in call

db = env.get_db_cnx()

AttributeError: 'SetupTracHours' object has no attribute 'get_db_cnx'

Complete debug output when trying to do update:

2009-11-07 12:12:26,052 Trac[loader] DEBUG: Adding plugin IniAdmin 0.2 from /var/www/dev/tracprojects/t/plugins/IniAdmin-0.2-py2.5.egg 2009-11-07 12:12:26,052 Trac[loader] DEBUG: Adding plugin HudsonTrac 0.3 from /var/www/dev/tracprojects/t/plugins/HudsonTrac-0.3-py2.5.egg 2009-11-07 12:12:26,053 Trac[loader] DEBUG: Adding plugin Genshi 0.5.1 from /usr/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-linux-i686.egg 2009-11-07 12:12:26,053 Trac[loader] DEBUG: Adding plugin setuptools 0.6c11 from /usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg 2009-11-07 12:12:26,053 Trac[loader] DEBUG: Adding plugin TracMercurial 0.11.0.7 from /var/www/dev/tracprojects/t/plugins/TracMercurial-0.11.0.7-py2.5.egg 2009-11-07 12:12:26,057 Trac[loader] DEBUG: Adding plugin Trac 0.11.5 from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,058 Trac[loader] DEBUG: Loading wikiprint.formats from /usr/lib/python2.5/site-packages/TracWikiPrintPlugin-1.6-py2.5.egg 2009-11-07 12:12:26,287 Trac[loader] DEBUG: Loading wikiprint.wikiprint from /usr/lib/python2.5/site-packages/TracWikiPrintPlugin-1.6-py2.5.egg 2009-11-07 12:12:26,287 Trac[loader] DEBUG: Loading wikiprint.web_ui from /usr/lib/python2.5/site-packages/TracWikiPrintPlugin-1.6-py2.5.egg 2009-11-07 12:12:26,292 Trac[loader] DEBUG: Loading wikirename.web_ui from /usr/lib/python2.5/site-packages/TracWikiRename-2.1.1-py2.5.egg 2009-11-07 12:12:26,297 Trac[loader] DEBUG: Loading graphviz from /usr/lib/python2.5/site-packages/graphviz-0.7.5-py2.5.egg 2009-11-07 12:12:26,310 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,315 Trac[loader] DEBUG: Loading trac.mimeview.php from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,316 Trac[loader] DEBUG: Loading trac.ticket.query from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,317 Trac[loader] DEBUG: Loading trac.attachment from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,317 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,319 Trac[loader] DEBUG: Loading trac.mimeview.patch from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,319 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,342 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not found) 2009-11-07 12:12:26,342 Trac[loader] DEBUG: Loading trac.admin.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,342 Trac[loader] DEBUG: Loading trac.ticket.admin from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,343 Trac[loader] DEBUG: Loading trac.mimeview.rst from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,401 Trac[loader] DEBUG: Loading trac.db.postgres from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,402 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,407 Trac[loader] DEBUG: Loading trac.timeline from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,408 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,409 Trac[loader] DEBUG: Loading trac.about from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,409 Trac[loader] DEBUG: Loading trac.wiki.interwiki from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,411 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,412 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_prop from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,412 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,435 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("DistributionNotFound: SilverCity>=0.9.4" not found) 2009-11-07 12:12:26,435 Trac[loader] DEBUG: Loading trac.wiki.macros from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,435 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,439 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,440 Trac[loader] DEBUG: Loading trac.mimeview.enscript from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,440 Trac[loader] DEBUG: Loading trac.web.auth from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,441 Trac[loader] DEBUG: Loading trac.admin.console from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,441 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,442 Trac[loader] DEBUG: Loading trac.search from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,443 Trac[loader] DEBUG: Loading trac.prefs from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,443 Trac[loader] DEBUG: Loading trac.ticket.report from /usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg 2009-11-07 12:12:26,446 Trac[loader] DEBUG: Loading macropost.web_ui from /usr/lib/python2.5/site-packages/TracMacroPost-0.2-py2.5.egg 2009-11-07 12:12:26,448 Trac[loader] DEBUG: Loading addcomment.macro from /usr/lib/python2.5/site-packages/TracAddCommentMacro-0.3-py2.5.egg 2009-11-07 12:12:26,453 Trac[loader] DEBUG: Loading componentdependencyplugin from /usr/lib/python2.5/site-packages/ComponentDependencyPlugin-0.1-py2.5.egg 2009-11-07 12:12:26,455 Trac[loader] DEBUG: Loading trachours.web_ui from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,500 Trac[loader] ERROR: Skipping "trachours.web_ui = trachours.web_ui": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,500 Trac[loader] DEBUG: Loading trachours.setup from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,502 Trac[loader] ERROR: Skipping "trachours.setup = trachours.setup": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,502 Trac[loader] DEBUG: Loading trachours.ticket from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,503 Trac[loader] ERROR: Skipping "trachours.ticket = trachours.ticket": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,504 Trac[loader] DEBUG: Loading trachours.multiproject from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,504 Trac[loader] DEBUG: Loading trachours.trachours from /usr/lib/python2.5/site-packages/TracHoursPlugin-0.4.3-py2.5.egg 2009-11-07 12:12:26,506 Trac[loader] ERROR: Skipping "trachours.trachours = trachours.hours": (can't import "ImportError: No module named dbhelper") 2009-11-07 12:12:26,506 Trac[loader] DEBUG: Loading iniadmin from /var/www/dev/tracprojects/t/plugins/IniAdmin-0.2-py2.5.egg 2009-11-07 12:12:26,507 Trac[loader] DEBUG: Loading HudsonTrac from /var/www/dev/tracprojects/t/plugins/HudsonTrac-0.3-py2.5.egg 2009-11-07 12:12:26,509 Trac[loader] DEBUG: Loading hg from /var/www/dev/tracprojects/t/plugins/TracMercurial-0.11.0.7-py2.5.egg 2009-11-07 12:12:26,532 Trac[default_workflow] DEBUG: Workflow actions at initialization: {'resolve': {'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept': {'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'leave': {'operations': [u'leave_status'], 'name': 'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, 'reopen': {'operations': [u'del_resolution'], 'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], 'permissions': [u'TICKET_CREATE']}, 'reassign': {'operations': [u'set_owner'], 'name': 'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': reset_workflow?, 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}}

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

I was installing the TracHoursPlugin using easy_install

sudo easy_install http://trac-hacks.org/svn/trachoursplugin/0.11/

comment:2 follow-up: Changed 5 years ago by k0s

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

(In [7113]) * add TicketSidebarProvider to setup.py

  • remove deprecated dbhelper from trachours/setup.py
  • move mail2trac import inside try except block

fixes #6176

comment:3 in reply to: ↑ 2 Changed 5 years ago by k0s

Replying to k0s:

(In [7113]) * add TicketSidebarProvider to setup.py

  • remove deprecated dbhelper from trachours/setup.py
  • move mail2trac import inside try except block

fixes #6176

Sorry, have been upgrading TracHoursPlugin and didn't notice these. Thanks for the bug report! Let me know if this works any better

Add Comment

Modify Ticket

Action
as closed The owner will remain k0s.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.