﻿ticket,summary,type,release,owner,status,created,modified,_description,_reporter
13255,RuntimeError: could not open display,defect,,,new,2017-08-03T23:28:30+02:00,2017-08-03T23:58:43+02:00,"I had a working Trac installation and I did a new instalation on a new OS migrating the file. All is working but trac metrix plugin. On log file is displaying the error below.

{{{
2017-08-03 18:07:29,798 Trac[loader] DEBUG: Loading tracmetrixplugin.api from /var/lib/trac/mytrac/plugins/TracMetrixPlugin-0.1.8dev-py2.7.egg
2017-08-03 18:07:29,798 Trac[loader] DEBUG: Loading tracmetrixplugin.mdashboard from /var/lib/trac/mytrac/plugins/TracMetrixPlugin-0.1.8dev-py2.7.egg
2017-08-03 18:07:30,010 Trac[loader] ERROR: Skipping ""tracmetrixplugin.mdashboard = tracmetrixplugin.mdashboard"": 
Traceback (most recent call last):
  File ""build/bdist.linux-x86_64/egg/trac/loader.py"", line 70, in _load_eggs
    entry.load(require=True)
  File ""/usr/lib/python2.7/site-packages/pkg_resources.py"", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/mdashboard.py"", line 22, in <module>
  File ""/usr/lib64/python2.7/site-packages/pylab.py"", line 1, in <module>
    from matplotlib.pylab import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pylab.py"", line 265, in <module>
    from matplotlib.pyplot import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py"", line 97, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py"", line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py"", line 10, in <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py"", line 13, in <module>
    import gtk; gdk = gtk.gdk
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 64, in <module>
    _init()
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display
2017-08-03 18:07:30,011 Trac[loader] DEBUG: Loading tracmetrixplugin.model from /var/lib/trac/mytrac/plugins/TracMetrixPlugin-0.1.8dev-py2.7.egg
2017-08-03 18:07:30,013 Trac[loader] ERROR: Skipping ""tracmetrixplugin.model = tracmetrixplugin.model"": 
Traceback (most recent call last):
  File ""build/bdist.linux-x86_64/egg/trac/loader.py"", line 70, in _load_eggs
    entry.load(require=True)
  File ""/usr/lib/python2.7/site-packages/pkg_resources.py"", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/model.py"", line 21, in <module>
  File ""/usr/lib64/python2.7/site-packages/pylab.py"", line 1, in <module>
    from matplotlib.pylab import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pylab.py"", line 265, in <module>
    from matplotlib.pyplot import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py"", line 97, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py"", line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py"", line 10, in <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py"", line 13, in <module>
    import gtk; gdk = gtk.gdk
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 64, in <module>
    _init()
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display
2017-08-03 18:07:30,013 Trac[loader] DEBUG: Loading tracmetrixplugin.web_ui from /var/lib/trac/mytrac/plugins/TracMetrixPlugin-0.1.8dev-py2.7.egg
2017-08-03 18:07:30,016 Trac[loader] ERROR: Skipping ""tracmetrixplugin.web_ui = tracmetrixplugin.web_ui"": 
Traceback (most recent call last):
  File ""build/bdist.linux-x86_64/egg/trac/loader.py"", line 70, in _load_eggs
    entry.load(require=True)
  File ""/usr/lib/python2.7/site-packages/pkg_resources.py"", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/web_ui.py"", line 36, in <module>
  File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/model.py"", line 21, in <module>
  File ""/usr/lib64/python2.7/site-packages/pylab.py"", line 1, in <module>
    from matplotlib.pylab import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pylab.py"", line 265, in <module>
    from matplotlib.pyplot import *
  File ""/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py"", line 97, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py"", line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py"", line 10, in <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
  File ""/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py"", line 13, in <module>
    import gtk; gdk = gtk.gdk
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 64, in <module>
    _init()
  File ""/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py"", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display
}}}",debiasi@…
13041,Does not work with Trac 1.2,defect,1.2,,new,2017-01-10T16:33:53+01:00,2017-08-03T23:52:17+02:00,"The current code in trunk does not work with Trac 1.2:
{{{
2017-01-10 16:32:29,551 Trac[main] ERROR: Internal Server Error: <RequestWithSession ""GET '/pdashboard'"">, referrer 'http://trac/admin/general/plugin'
Traceback (most recent call last):
  File ""build/bdist.linux-x86_64/egg/trac/web/main.py"", line 613, in _dispatch_request
    dispatcher.dispatch(req)
  File ""build/bdist.linux-x86_64/egg/trac/web/main.py"", line 253, in dispatch
    resp = chosen_handler.process_request(req)
  File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/web_ui.py"", line 165, in process_request
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
}}}",anonymous
10169,[PATCH]  improve compatibility with Trac 0.12 / 1.0,enhancement,1.0,,new,2012-07-21T16:18:02+02:00,2015-06-26T04:49:07+02:00,"Hi~, This is patch for Trac 0.12 / 1.0 compatibility.

{{{
#!diff
Index: tracmetrixplugin/web_ui.py
===================================================================
--- tracmetrixplugin/web_ui.py	(revision 11745)
+++ tracmetrixplugin/web_ui.py	(working copy)
@@ -28,6 +28,7 @@
 from trac.util.datefmt import to_datetime, utc
 from trac.web import IRequestFilter, IRequestHandler, ITemplateStreamFilter
 from trac.web.chrome import add_stylesheet, INavigationContributor, ITemplateProvider
+from trac import __version__
 
 from tracmetrixplugin.model import ChangesetsStats, TicketGroupMetrics
 
@@ -86,8 +87,9 @@
         milestoneName = u"""".join(e[1] for e in self.buffer.events)
         title = ""Go to TracMetrix for %s"" % milestoneName
         href = self.baseHref.mdashboard(milestoneName)
+        func = ( __version__ < '1.0') and tag.dd or tag.span # Trac >= 1.0dev
 
-        return iter(tag.dd('[', tag.a('TracMetrix', href=href, title=title), ']'))
+        return iter( func('[', tag.a('TracMetrix', href=href, title=title), ']'))
 
 
 
@@ -104,10 +106,14 @@
 
         if filename in ('roadmap.html', ):
 
+            tag = ( __version__ < '0.12.1') and 'li' or 'div' # Trac >= 0.12.1
+            cls = ( __version__ < '1.0') and ''   or ' trac-progress'     # Trac >= 1.0dev
+            obj = ( __version__ < '1.0') and 'dl' or 'p[@class=""legend""]' # Trac >= 1.0dev
+
             buffer = StreamBuffer()
-            t = Transformer('//li[@class=""milestone""]/div[@class=""info""]/h2/a/em/text()')
+            t = Transformer('//'+ tag +'[@class=""milestone""]/div[@class=""info'+ cls +'""]/h2/a/em/text()')
             t = t.copy(buffer).end()
-            t = t.select('//li[@class=""milestone""]/div[@class=""info""]/dl')
+            t = t.select('//'+ tag +'[@class=""milestone""]/div[@class=""info'+ cls +'""]/'+ obj)
             t = t.append(GenerateMetrixLink(buffer, req.href))
             stream |= t
 
@@ -125,10 +131,13 @@
 
         if filename in ('milestone_view.html', ):
 
+            cls = ( __version__ < '1.0') and ''   or ' trac-progress'     # Trac >= 1.0dev
+            obj = ( __version__ < '1.0') and 'dl' or 'p[@class=""legend""]' # Trac >= 1.0dev
+
             buffer = StreamBuffer()
             t = Transformer('//div[@class=""milestone""]/h1/text()[2]')
             t = t.copy(buffer).end()
-            t = t.select('//div[@class=""milestone""]/div[@class=""info""]/dl')
+            t = t.select('//div[@class=""milestone""]/div[@class=""info'+ cls +'""]/'+ obj)
             t = t.append(GenerateMetrixLink(buffer, req.href))
             stream |= t
}}}",Genie
8414,Cannot access Metrics link,defect,0.12,,new,2011-01-18T20:23:48+01:00,2015-06-26T04:49:07+02:00,"I installed TracMetrix on 0.12.1, when i installed it, i click the Metrics link and receive the following error

{{{
OperationalError: too many SQL variables

Python Traceback

Most recent call last:
File ""build/bdist.linux-i686/egg/trac/web/main.py"", line 511, in _dispatch_request
File ""build/bdist.linux-i686/egg/trac/web/main.py"", line 237, in dispatch
File ""build/bdist.linux-i686/egg/tracmetrixplugin/web_ui.py"", line 181, in process_request
File ""build/bdist.linux-i686/egg/tracmetrixplugin/web_ui.py"", line 221, in _render_view
File ""build/bdist.linux-i686/egg/tracmetrixplugin/model.py"", line 46, in get_ticket_group_stats
File ""build/bdist.linux-i686/egg/trac/db/util.py"", line 65, in execute
File ""build/bdist.linux-i686/egg/trac/db/sqlite_backend.py"", line 78, in execute
File ""build/bdist.linux-i686/egg/trac/db/sqlite_backend.py"", line 56, in execute
File ""build/bdist.linux-i686/egg/trac/db/sqlite_backend.py"", line 48, in _rollback_on_error
 
}}}",anonymous
8389,Display repository stats with respect to local timezone,defect,0.12,,new,2011-01-11T10:12:39+01:00,2015-06-26T04:49:07+02:00,"apparently, it doesn't graph the repository stats according to some local timezone.

i had a hard time comparing the number of commits in the timeline. it doesn't coincide.

I believe the backlog for ticket stats behaves the same as well. Is it possible to adjust the graph base on a given timezone?",mark_kids@…
8373,Repository Statistics not showing any data,defect,0.12,,new,2011-01-07T03:44:05+01:00,2015-06-26T04:49:07+02:00,"
How come the repository statistics doesn't show any data?
Is this related to the time format use by Trac 0.12?",mark_kids@…
8283,Show number of lines of code commited per day per developer,enhancement,0.11,,new,2010-12-07T03:49:50+01:00,2015-06-26T04:49:07+02:00,"See [http://groups.google.com/group/trac-users/browse_thread/thread/f8fa0f3388175af4 here] for discussion.

There may be some overlap here with the TracStatsPlugin.",Ryan J Ollos
7986,Installation instruction,defect,0.11,,new,2010-11-04T03:26:38+01:00,2015-06-26T04:49:07+02:00,"Please list python-tk as the required component, because it is and it's not obvious to me until I turn on the log :)

{{{

2010-11-04 10:20:07,641 Trac[loader] DEBUG: Loading tracmetrixplugin.api from /home/sam/trac/pszhan/plugins/TracMetrixPlugin-0.1.8-py2.6.egg
2010-11-04 10:20:07,641 Trac[loader] DEBUG: Loading tracmetrixplugin.web_ui from /home/sam/trac/pszhan/plugins/TracMetrixPlugin-0.1.8-py2.6.egg
2010-11-04 10:20:07,645 Trac[loader] ERROR: Skipping ""tracmetrixplugin.web_ui = tracmetrixplugin.web_ui"": (can't import ""ImportError: No module named _tkinter, please install the python-tk package"")
}}}",sam@…
7659,Problem with tracmetrix upgrading 0.11 to 0.12,defect,1.0,,new,2010-09-09T11:29:06+02:00,2015-06-26T04:49:07+02:00,"I started with trac 0.11 and a working tracmetrix plugin running on ubuntu with apache and postgresSQL.

I have successfully upgraded trac to 0.12 and started installing the tracmetrix plugin.

Installation of `pythin-matlablib` and `python-numpy` and version 0.12 of the plugin went ok without reporting errors.

I then enabled the plugin and restarted apache, but `trac-admin <project> upgrade` reported the database was already up to date, but the plugin was not active.

Trac is running normally but without the dashboard menu item and on the admin page, I only have a setting for !TracMetrixSetupParticipant.

I have also created a clean install of trac 0.12 and this plugin installed without error and with a working dashboard.  The admin page here has all settings available.

",anonymous
7635,Merge [mdashboard] and [pdashboard] configuration sections,enhancement,0.11,,new,2010-09-05T04:10:43+02:00,2015-06-26T04:49:07+02:00,"To be more consistent with other plugins, the [mdashboard] and [pdashboard] configuration sections of ''trac.ini'' should be merged into a [tracmetrix] section.

Documentation on the project's wiki page should be added for the configuration options.",Ryan J Ollos
7634,Improve HTML template for mdashboard,enhancement,0.11,,new,2010-09-05T04:08:24+02:00,2015-06-26T04:49:07+02:00,"As was done in #7631 for pdashboard, the template for mdashboard should be improved to fix the indentation and make the layout more consistent with the other Trac modules.",Ryan J Ollos
7629,"If Trac site uses HTTPS, then Yahoo APIs should as well",defect,0.11,,new,2010-09-03T23:07:14+02:00,2015-06-26T04:49:07+02:00,"If Trac site is served over HTTPS, then you'll see the following dialog in IE8:

[[Image(IE_Dialog.png)]]

I haven't looked closely, but this is presumably because the Yahoo! APIs are served over HTTP.",Ryan J Ollos
7292,Add a TracMetrix help page,defect,0.12,,new,2010-06-24T19:43:26+02:00,2015-06-26T04:49:07+02:00,"Either it's nonexistent, or it's very well hidden.

Please add basic use cases to the introductory material.  Pictures of graphs with no description of how to generate them is... frustrating.",anonymous
7045,[Patch]  Timestamp problem with Trac 0.12,task,0.12,,new,2010-04-30T11:58:07+02:00,2015-06-26T04:49:07+02:00,"The timestamp format in 0.12 has changed see [http://trac.edgewall.org/wiki/TracDev/ApiChanges/0.12#Timestampstorageindatabase ApiChanges/0.12].

I fixed the internal error messages with the attached patch (includes the patch from #6149), but I am not sure if there are timezone issues left.",bernd.tegge@…
6525,Custom Workflow Setup for TracMetrix,enhancement,0.11,,new,2010-02-03T01:20:15+01:00,2015-06-26T04:49:07+02:00,"It would be great if TracMetrixPlugin could be configured so that other states besides 'closed' as being done.

In our workflow, tickets go from new -> scheduled -> resolved -> approved -> released -> closed.

So, we'd like to consider resolved, approved, and released tickets as different ""levels"" of closure on a ticket.  Currently TracMetrixPlugin only looks at whether the ticket is closed, which happens last for us.

Developers want to know how many have not yet been resolved, as this is their backlog.

QA want to know how many have not yet been approved, as this is their backlog.

So, being able to choose which status(es) to track would be great.

I noticed that the idea of ""Custom Workflow"" was included in the Wiki for this plugin but there was no ticket, so I thought I'd create a ticket to ""encourage"" implementation :-).


",dobesv@…
5737,Table of components and priorities,enhancement,0.11,,new,2009-08-28T08:11:37+02:00,2015-06-26T04:49:07+02:00,"A nice enhancement would be a table of open / closed tickets where the rows are components and the columns are priority.

A drop down list above the table would allow the user to choose a milestone.  One of the milestones would be ''All''.

|| Component || Low  || Normal || High ||
|| Browser   || 1/3  || 1/5    || 5/6  ||
|| Ticket    || 1/13 || 2/9    || 1/3  ||
|| Timelines || 5/20 || 4/5    || 2/2  ||
|| Wiki      || 3/8  || 3/10   || 5/5  ||

Various other enhancements to this could be envisioned.",Ryan J Ollos
5594,Respect Trac permissions,defect,0.11,,new,2009-07-30T23:10:10+02:00,2015-06-26T04:49:07+02:00,"I have a group setup with only the following permissions:  
 * TICKET_APPEND
 * TICKET_CREATE
 * TICKET_EDIT_CC
 * TICKET_MODIFY
 * TICKET_VIEW
 * TICKET_VIEW_SELF (provided by the PrivateTicketsPlugin).

Users in this group can still navigate to /pdashboard.  They can see:

 * Ticket Summary (which should require at least TICKET_VIEW privilege, however it still displays even if I revoke TICKET_VIEW for this group)
 * Milestone summary (which should require MILESTONE_VIEW permissions).

Repository statistics renders as a blank graph (which makes me wonder which permissions are required for the graph to render; i did some testing, but couldn't figure this out).

Selecting '''Show Project Metrics''' results in ''ROADMAP_VIEW privileges are required to perform this operation'', which is the desired behavior.",Ryan J Ollos
4845,Remove dependency to Matplotlib package,defect,0.11,,new,2009-03-28T03:49:08+01:00,2015-06-26T04:49:07+02:00,Totally remove dependency to matplotlib package.,Bhuricha Deen Sethanandha
4819,Make TracMetrixPlugin support other Version Control Systems,enhancement,0.11,,new,2009-03-21T14:55:01+01:00,2015-06-26T04:49:07+02:00,"Make TracMetrixPlugin support other Version Control Systems.

Eg:
 * Mercurial",James Mills
4816,Traceback when AgileTrac plugin is enabled,defect,0.11,,new,2009-03-20T23:02:21+01:00,2015-06-26T04:49:07+02:00,"Trac detected an internal error:

{{{
TypeError: get_ticket_stats() takes exactly 4 arguments (2 given)

File ""/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/web/main.py"", line 435, in _dispatch_request
  dispatcher.dispatch(req)
File ""/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/web/main.py"", line 205, in dispatch
  resp = chosen_handler.process_request(req)
File ""build/bdist.linux-x86_64/egg/tracmetrixplugin/web_ui.py"", line 126, in process_requestFile ""build/bdist.linux-x86_64/egg/tracmetrixplugin/web_ui.py"", line 141, in _render_view

System Information:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
Trac: 	0.11.3
Python: 	2.4.3 (#1, May 24 2008, 13:57:05) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
setuptools: 	0.6c5
SQLite: 	3.3.6
pysqlite: 	2.3.3
Genshi: 	0.5.1
mod_python: 	3.2.8
Subversion: 	1.4.2 (r22196)
jQuery:	1.2.6
}}}",abidoon@…
3236,Add i18n to plugin,enhancement,0.11,,new,2008-06-23T16:26:26+02:00,2015-06-26T04:49:07+02:00,"add support for i18n and l10n (for example like Trac localization (Babel))

",alexey.lustin
2379,Make the date range in charts a parameter in trac.ini,enhancement,0.11,,new,2008-01-11T22:11:40+01:00,2015-06-26T04:49:07+02:00,"I got a request that the date back value should be editable.  I think would make it as parameter in trac.ini.

If you like this approach please add comments here.  I am not sure how to do that yet, so any advice  about this would be useful.",Bhuricha Deen Sethanandha
260,Plot defect statistics as a code quality metric,enhancement,0.11,,new,2006-03-29T10:05:27+02:00,2015-06-26T04:49:07+02:00,"Plot newly found defect tickets, and closed defect tickets over time for components and component versions. 

This is a standard software quality metric, from which you can calculate the expected number of remaining bugs in the code. 

Maybe combine with a Lines Of Code counter.",no_spam_f@…
