#10653 closed defect (fixed)
TICKET_ADD_HOURS cannot be added
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | TracHoursPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description (last modified by )
After installing TracHours i cannot add the permission for TICKET_ADD_HOURS
. The permission isn't shown at Grant Permission in the admin panel either.
# trac-admin /trac/<env>/ permission add developer TICKET_ADD_HOURS
TracError: TICKET_ADD_HOURS is not a valid action.
plus, i cannot open http:/.../hours
No handler matched request to /hours
Trac is 0.12.1 and all the dependencies etc are installed today in the newest version.
any ideas?
Attachments (1)
Change History (12)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Please turn on t:TracLogging, which will reveal to you messages about the plugin not loading, which I kindly ask you to post here.
comment:3 Changed 12 years ago by
heres my trac.log after starting the standalone server and open up the index page
2012-11-26 15:02:24,554 Trac[env] INFO: -------------------------------- environment startup [Trac 0.12.1] -------------------------------- 2012-11-26 15:02:24,631 Trac[loader] DEBUG: Loading childtickets from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/Tracchildtickets-2.5.2-py2.5.egg 2012-11-26 15:02:24,651 Trac[loader] DEBUG: Loading componentdependencyplugin from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/ComponentDependencyPlugin-0.1-py2.5.egg 2012-11-26 15:02:24,655 Trac[loader] DEBUG: Loading hg from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracMercurial-0.12.0.31dev-py2.5.egg 2012-11-26 15:02:24,796 Trac[loader] DEBUG: Loading ticketsidebarprovider from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TicketSidebarProvider-0.0-py2.5.egg 2012-11-26 15:02:24,800 Trac[loader] DEBUG: Loading trac.about from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,802 Trac[loader] DEBUG: Loading trac.admin.console from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,820 Trac[loader] DEBUG: Loading trac.admin.web_ui from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,825 Trac[loader] DEBUG: Loading trac.attachment from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,826 Trac[loader] DEBUG: Loading trac.db.mysql from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,831 Trac[loader] DEBUG: Loading trac.db.postgres from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,835 Trac[loader] DEBUG: Loading trac.db.sqlite from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,846 Trac[loader] DEBUG: Loading trac.mimeview.patch from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,848 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,880 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("DistributionNotFound: Pygments>=0.6" not found) 2012-11-26 15:02:24,880 Trac[loader] DEBUG: Loading trac.mimeview.rst from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,912 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("DistributionNotFound: docutils>=0.3" not found) 2012-11-26 15:02:24,912 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,942 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("DistributionNotFound: SilverCity>=0.9.4" not found) 2012-11-26 15:02:24,943 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,974 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not found) 2012-11-26 15:02:24,974 Trac[loader] DEBUG: Loading trac.prefs from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,978 Trac[loader] DEBUG: Loading trac.search from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,981 Trac[loader] DEBUG: Loading trac.ticket.admin from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,986 Trac[loader] DEBUG: Loading trac.ticket.query from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:24,999 Trac[loader] DEBUG: Loading trac.ticket.report from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,002 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,006 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,012 Trac[loader] DEBUG: Loading trac.timeline from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,017 Trac[loader] DEBUG: Loading trac.versioncontrol.admin from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,020 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_authz from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,023 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,028 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_prop from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,031 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,032 Trac[loader] DEBUG: Loading trac.web.auth from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,033 Trac[loader] DEBUG: Loading trac.web.session from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,034 Trac[loader] DEBUG: Loading trac.wiki.admin from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,035 Trac[loader] DEBUG: Loading trac.wiki.interwiki from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,042 Trac[loader] DEBUG: Loading trac.wiki.macros from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,043 Trac[loader] DEBUG: Loading trac.wiki.web_api from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,045 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,048 Trac[loader] DEBUG: Loading trachours.multiproject from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg 2012-11-26 15:02:25,291 Trac[loader] DEBUG: Loading trachours.setup from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg 2012-11-26 15:02:25,296 Trac[loader] DEBUG: Loading trachours.ticket from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg 2012-11-26 15:02:25,343 Trac[loader] ERROR: Skipping "trachours.ticket = trachours.ticket": Traceback (most recent call last): File "/opt/lib/python2.5/site-packages/trac/loader.py", line 70, in _load_eggs entry.load(require=True) File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/ticket.py", line 4, in <module> from hours import TracHoursPlugin File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 11, in <module> import dateutil.parser SyntaxError: future feature unicode_literals is not defined (parser.py, line 8)) 2012-11-26 15:02:25,343 Trac[loader] DEBUG: Loading trachours.trachours from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg 2012-11-26 15:02:25,381 Trac[loader] ERROR: Skipping "trachours.trachours = trachours.hours": Traceback (most recent call last): File "/opt/lib/python2.5/site-packages/trac/loader.py", line 70, in _load_eggs entry.load(require=True) File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 11, in <module> import dateutil.parser SyntaxError: future feature unicode_literals is not defined (parser.py, line 8)) 2012-11-26 15:02:25,382 Trac[loader] DEBUG: Loading trachours.web_ui from /share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg 2012-11-26 15:02:25,421 Trac[loader] ERROR: Skipping "trachours.web_ui = trachours.web_ui": Traceback (most recent call last): File "/opt/lib/python2.5/site-packages/trac/loader.py", line 70, in _load_eggs entry.load(require=True) File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/web_ui.py", line 15, in <module> from hours import TracHoursPlugin File "/share/MD0_DATA/.qpkg/Optware/local/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 11, in <module> import dateutil.parser SyntaxError: future feature unicode_literals is not defined (parser.py, line 8)) 2012-11-26 15:02:25,422 Trac[loader] DEBUG: Loading tracopt.mimeview.enscript from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,426 Trac[loader] DEBUG: Loading tracopt.mimeview.php from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,428 Trac[loader] DEBUG: Loading tracopt.perm.authz_policy from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,432 Trac[loader] DEBUG: Loading tracopt.perm.config_perm_provider from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,434 Trac[loader] DEBUG: Loading tracopt.ticket.commit_updater from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,439 Trac[loader] DEBUG: Loading tracopt.ticket.deleter from /share/MD0_DATA/.qpkg/Optware/lib/python2.5/site-packages 2012-11-26 15:02:25,456 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name': u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'reassign': {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}} 2012-11-26 15:02:25,464 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect 2012-11-26 15:02:25,464 Trac[main] DEBUG: Dispatching <Request "GET '/'"> 2012-11-26 15:02:25,508 Trac[svn_fs] INFO: Failed to load Subversion bindings Traceback (most recent call last): File "/opt/lib/python2.5/site-packages/trac/versioncontrol/svn_fs.py", line 267, in __init__ _import_svn() File "/opt/lib/python2.5/site-packages/trac/versioncontrol/svn_fs.py", line 68, in _import_svn from svn import fs, repos, core, delta ImportError: No module named svn 2012-11-26 15:02:25,574 Trac[api] INFO: Synchronized '' repository in 0.08 seconds 2012-11-26 15:02:25,591 Trac[session] DEBUG: Retrieving session for ID u'shardt' 2012-11-26 15:02:25,603 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow'] 2012-11-26 15:02:25,612 Trac[chrome] DEBUG: Prepare chrome data for request 2012-11-26 15:02:26,841 Trac[formatter] DEBUG: Executing Wiki macro RecentChanges by provider <trac.wiki.macros.RecentChangesMacro object at 0x8b71dec> 2012-11-26 15:02:27,109 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/css/trac.css'"> 2012-11-26 15:02:27,179 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/jquery.js'"> 2012-11-26 15:02:27,184 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/search.js'"> 2012-11-26 15:02:27,186 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/css/wiki.css'"> 2012-11-26 15:02:27,190 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/babel.js'"> 2012-11-26 15:02:27,194 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/trac.js'"> 2012-11-26 15:02:27,498 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/js/folding.js'"> 2012-11-26 15:02:27,563 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/css/code.css'"> 2012-11-26 15:02:27,812 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/common/trac_logo_mini.png'">
Changed 12 years ago by
comment:5 Changed 12 years ago by
hmm, installed a new, clean trac with (newly) python 2.7 and now got an other error:
# trac-admin /trac/env upgrade TypeError: __init__() got an unexpected keyword argument 'unique'
the log looks like this
2012-11-26 17:53:30,661 Trac[env] WARNING: Component <trachours.setup.SetupTracHours object at 0x8892aac> requires environment upgrade 2012-11-26 17:53:30,673 Trac[env] INFO: trachours.setup.SetupTracHours upgrading... 2012-11-26 17:53:30,681 Trac[console] ERROR: Exception in trac-admin command: Traceback (most recent call last): File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/admin/console.py", line 107, in onecmd rv = cmd.Cmd.onecmd(self, line) or 0 File "/opt/lib/python2.6/cmd.py", line 218, in onecmd return self.default(line) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/admin/console.py", line 266, in default return cmd_mgr.execute_command(*args) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/admin/api.py", line 123, in execute_command return f(*fargs) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/env.py", line 782, in _do_upgrade self.env.upgrade(backup=no_backup is None) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/env.py", line 525, in upgrade with_transaction(self)(participant.upgrade_environment) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.6/site-packages/trac/db/api.py", line 77, in transaction_wrapper fn(ldb) File "/opt/local/lib/python2.6/site-packages/TracHoursPlugin-0.5.2-py2.6.egg/trachours/setup.py", line 54, in upgrade_environment step(self) File "/opt/local/lib/python2.6/site-packages/TracHoursPlugin-0.5.2-py2.6.egg/trachours/setup.py", line 101, in add_query_table Column('title', unique=True), TypeError: __init__() got an unexpected keyword argument 'unique'
seems like a bug in the sql query. sqlite is 3.7.14.1-1.
more ideas?
comment:6 Changed 12 years ago by
comment:7 Changed 12 years ago by
Status: | new → assigned |
---|
comment:8 follow-up: 10 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
THX - everything is working now !
comment:9 Changed 12 years ago by
The error in comment:3 appears to be due to using python-dateutils
2.0 or later, which is for Python 3.0+, rather than python-dateutils
1.5, which is for Python < 3.0. However, python-dateutils
will probably work with Python 2.6 or later because unicode_literals
was added to __future__
in that version.
comment:10 Changed 12 years ago by
Replying to hardysim@gmail.com:
THX - everything is working now !
This same thing happened recently with at least one other user. Could you give some hint as to what led you to install from the 0.11 branch rather than the trunk?
comment:11 Changed 12 years ago by
Description: | modified (diff) |
---|
the plugin is shown as running in the admin -> plugins panel
and i can add hours to both fields in a ticket (Total Hours, Estimated Hours). the total hours seems to be not calculated.
plus, the sidepanel just shows "Hello World" from the example of TicketSidebarProvider