課題

  • Wikiにマクロを記載すると読み込みが表示されるが、そのままグラフが表示されない
  • logには以下のエラー
    2015-02-10 00:08:16,973 Trac[main] DEBUG: Dispatching <RequestWithSession "POST '/tracreportinclude'">
    2015-02-10 00:08:16,974 Trac[session] DEBUG: Retrieving session for ID u'admin'
    2015-02-10 00:08:16,980 Trac[main] DEBUG: Negotiated locale: None -> ja
    2015-02-10 00:08:17,005 Trac[cache] DEBUG: cache metadata undefined (youngest_rev=0)
    2015-02-10 00:08:17,005 Trac[cache] INFO: repos rev [0] != cached rev [None]
    2015-02-10 00:08:17,005 Trac[api] INFO: Synchronized '(default)' repository in 0.03 seconds
    2015-02-10 00:08:17,040 Trac[chrome] DEBUG: Prepare chrome data for request
    2015-02-10 00:08:17,046 Trac[main] ERROR: Internal Server Error: 
    Traceback (most recent call last):
      File "build\bdist.win32\egg\trac\web\main.py", line 512, in _dispatch_request
        dispatcher.dispatch(req)
      File "build\bdist.win32\egg\trac\web\main.py", line 221, in dispatch
        resp = chosen_handler.process_request(req)
      File "build\bdist.win32\egg\reportinclude\web_ui.py", line 33, in process_request
        report = renderer.render(req, content)
      File "build\bdist.win32\egg\reportinclude\renderer.py", line 31, in render
        table, columns, table_data = self._render_table(req, id, vars, opts, title, sql, desc)
      File "build\bdist.win32\egg\reportinclude\renderer.py", line 94, in _render_table
        converted_col = self._convert_col(req, column, col)
      File "build\bdist.win32\egg\reportinclude\renderer.py", line 289, in _convert_col
        if column == 'time' or column.endswith(u'時刻'):
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)
    2015-02-10 00:08:17,381 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/search/opensearch'">
    

動作検証した内容

インストールログ(成功)

c:\plugin\reportincludeplugin>c:\trac\python\python setup.py bdist_egg
running bdist_egg
running egg_info
creating ReportIncludePlugin.egg-info
writing ReportIncludePlugin.egg-info\PKG-INFO
writing top-level names to ReportIncludePlugin.egg-info\top_level.txt
writing dependency_links to ReportIncludePlugin.egg-info\dependency_links.txt
writing entry points to ReportIncludePlugin.egg-info\entry_points.txt
writing manifest file 'ReportIncludePlugin.egg-info\SOURCES.txt'
reading manifest file 'ReportIncludePlugin.egg-info\SOURCES.txt'
writing manifest file 'ReportIncludePlugin.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\reportinclude
copying reportinclude\macro.py -> build\lib\reportinclude
copying reportinclude\renderer.py -> build\lib\reportinclude
copying reportinclude\web_ui.py -> build\lib\reportinclude
copying reportinclude\__init__.py -> build\lib\reportinclude
creating build\lib\reportinclude\htdocs
creating build\lib\reportinclude\htdocs\css
creating build\lib\reportinclude\htdocs\css\jqplot
copying reportinclude\htdocs\css\jqplot\jquery.jqplot.min.css -> build\lib\repor
tinclude\htdocs\css\jqplot
creating build\lib\reportinclude\htdocs\js
creating build\lib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\excanvas.min.js -> build\lib\reportinclud
e\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.barRenderer.min.js -> build\lib\re
portinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.canvasAxisLabelRenderer.min.js ->
build\lib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.canvasAxisTickRenderer.min.js -> b
uild\lib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.canvasTextRenderer.min.js -> build
\lib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.categoryAxisRenderer.min.js -> bui
ld\lib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.cursor.min.js -> build\lib\reporti
nclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.dateAxisRenderer.min.js -> build\l
ib\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.dragable.min.js -> build\lib\repor
tinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.highlighter.min.js -> build\lib\re
portinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.logAxisRenderer.min.js -> build\li
b\reportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.ohlcRenderer.min.js -> build\lib\r
eportinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.pieRenderer.min.js -> build\lib\re
portinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.pointLabels.min.js -> build\lib\re
portinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jqplot.trendline.min.js -> build\lib\repo
rtinclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jquery.jqplot.js -> build\lib\reportinclu
de\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\jquery.jqplot.min.js -> build\lib\reporti
nclude\htdocs\js\jqplot
copying reportinclude\htdocs\js\jqplot\reportgraph.js -> build\lib\reportinclude
\htdocs\js\jqplot
creating build\lib\reportinclude\htdocs\image
copying reportinclude\htdocs\image\loading.gif -> build\lib\reportinclude\htdocs
\image
creating build\lib\reportinclude\templates
copying reportinclude\templates\reportinclude_response.html -> build\lib\reporti
nclude\templates
copying reportinclude\htdocs\test.html -> build\lib\reportinclude\htdocs
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\reportinclude
creating build\bdist.win32\egg\reportinclude\htdocs
creating build\bdist.win32\egg\reportinclude\htdocs\css
creating build\bdist.win32\egg\reportinclude\htdocs\css\jqplot
copying build\lib\reportinclude\htdocs\css\jqplot\jquery.jqplot.min.css -> build
\bdist.win32\egg\reportinclude\htdocs\css\jqplot
creating build\bdist.win32\egg\reportinclude\htdocs\image
copying build\lib\reportinclude\htdocs\image\loading.gif -> build\bdist.win32\eg
g\reportinclude\htdocs\image
creating build\bdist.win32\egg\reportinclude\htdocs\js
creating build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\excanvas.min.js -> build\bdist.
win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.barRenderer.min.js -> bu
ild\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.canvasAxisLabelRenderer.
min.js -> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.canvasAxisTickRenderer.m
in.js -> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.canvasTextRenderer.min.j
s -> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.categoryAxisRenderer.min
.js -> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.cursor.min.js -> build\b
dist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.dateAxisRenderer.min.js
-> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.dragable.min.js -> build
\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.highlighter.min.js -> bu
ild\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.logAxisRenderer.min.js -
> build\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.ohlcRenderer.min.js -> b
uild\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.pieRenderer.min.js -> bu
ild\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.pointLabels.min.js -> bu
ild\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jqplot.trendline.min.js -> buil
d\bdist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jquery.jqplot.js -> build\bdist
.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\jquery.jqplot.min.js -> build\b
dist.win32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\js\jqplot\reportgraph.js -> build\bdist.w
in32\egg\reportinclude\htdocs\js\jqplot
copying build\lib\reportinclude\htdocs\test.html -> build\bdist.win32\egg\report
include\htdocs
copying build\lib\reportinclude\macro.py -> build\bdist.win32\egg\reportinclude
copying build\lib\reportinclude\renderer.py -> build\bdist.win32\egg\reportinclu
de
creating build\bdist.win32\egg\reportinclude\templates
copying build\lib\reportinclude\templates\reportinclude_response.html -> build\b
dist.win32\egg\reportinclude\templates
copying build\lib\reportinclude\web_ui.py -> build\bdist.win32\egg\reportinclude

copying build\lib\reportinclude\__init__.py -> build\bdist.win32\egg\reportinclu
de
byte-compiling build\bdist.win32\egg\reportinclude\macro.py to macro.pyc
byte-compiling build\bdist.win32\egg\reportinclude\renderer.py to renderer.pyc
byte-compiling build\bdist.win32\egg\reportinclude\web_ui.py to web_ui.pyc
byte-compiling build\bdist.win32\egg\reportinclude\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying ReportIncludePlugin.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying ReportIncludePlugin.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-IN
FO
copying ReportIncludePlugin.egg-info\dependency_links.txt -> build\bdist.win32\e
gg\EGG-INFO
copying ReportIncludePlugin.egg-info\entry_points.txt -> build\bdist.win32\egg\E
GG-INFO
copying ReportIncludePlugin.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-
INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\ReportIncludePlugin-0.5_SNAPSHOT-py2.7.egg' and adding 'build\bdi
st.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)

c:\plugin\reportincludeplugin>