Hi Bob,

I only see a patch.py file in the mimeview folder (C:\Program
Files\Python24\Lib\site-packages\trac\mimeview). I'm running Trac on a
Windows box and the installer is an .exe. Is there some other method I
have to go by to apply this patch to an already installed and running
install of Trac?

Thanks.

Chris

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Bob N.
Sent: Tuesday, July 10, 2007 7:26 PM
To: Trac Users
Subject: [Trac] Re: Errors When Loading the Excel Report Plug-in


I recently installed ReportPluginPatch in against 0.10.4 and it works
fine. You have to run the patch from the Trac source distribution (see
the patch README file) and re-run the Trac installer. i.e.:

# cd trac-0.10.4
# patch -p0 < ../trac-0.10.3-report-plugin.patch
# python ./setup.py install

Restart Apache and you should be good to go.
Bob

On Jul 10, 12:44 pm, "Wetterman, Christopher"
<[EMAIL PROTECTED]> wrote:
> How to apply a patch.
>
> So I overlooked where you need to install the ReportPluginPatch for 
> the ExcelReportPlugin to work. I don't know how to manually apply Trac

> patches so I looked at the patch file. It looked very similar to 
> Subversion's diff output. So, with my best guess, I added the code by 
> hand where it should be in the file (report.py). Note: this patch was 
> for 10.3 but nothing was removed/changed, only additions were made by 
> the patch. I then restarted Apache and viewed the available tickets.
> This error came about:
>
> Traceback (most recent call last):
>   File "C:\Program Files\Python24\Lib\site-packages\trac\web\main.py",
> line 406, in dispatch_request
>     dispatcher.dispatch(req)
>   File "C:\Program Files\Python24\Lib\site-packages\trac\web\main.py",
> line 237, in dispatch
>     resp = chosen_handler.process_request(req)
>   File "C:\Program
> Files\Python24\lib\site-packages\trac\ticket\report.py", line 108, in 
> process_request
>     resp = self._render_view(req, db, id)
>   File "C:\Program
> Files\Python24\lib\site-packages\trac\ticket\report.py", line 396, in 
> _render_view
>     for renderer in self.renderers:
> AttributeError: 'ReportModule' object has no attribute 'renderers'
>
> Code sample (report.py):
>
> class ReportModule(Component):
>    ...
>    def process_request(self, req):
>       ...
>       renderers = ExtensionPoint(ITicketReportRenderer)
>
>    def add_alternate_links(self, req, args):
>       ...
>       # add link for every loaded component
>       # that implements ITicketReportRenderer
>
>         for renderer in self.renderers:
>                 format = renderer.get_report_format()
>                 mimetype = renderer.get_report_mimetype()
>                 linkname = renderer.get_report_linkname()
>                 linkclass = renderer.get_report_linkclass()
>
>                 add_link(req,'alternate','?format='+format+href,
>                  linkname,mimetype,linkclass)
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
> On Behalf Of Wetterman, Christopher
> Sent: Tuesday, July 10, 2007 12:58 PM
> To: [email protected]
> Subject: [Trac] Errors When Loading the Excel Report Plug-in
>
> Hi all,
>
> I'm getting this error dumped to the log for the Excel Report Plug-in.
> I've installed both pyExcelerator and Excel Report Plug-in, copied 
> excel_report_plugin.py into the plugins directory and restarted
Apache.
> When I refreshed Trac I noticed the file excel_report_plugin.pyc was 
> created in the plugins directory. From there I have no idea how to 
> generate any Excel reports. At the bottom of the query page, "Download

> in other formats" lists only RSS Feed, Comma-delimited Text, 
> Tab-delimited Text, and SQL Query. The plugin does not show in the 
> plugins section of WebAdmin either. Running Trac 10.4. Is there 
> something I've missed here for installing this plugin?
>
> 2007-07-10 12:38:07,698 Trac[loader] ERROR: Failed to load plugin from

> d:\trac\myproject\plugins\excel_report_plugin.py
> Traceback (most recent call last):
>   File "C:\Program Files\Python24\Lib\site-packages\trac\loader.py",
> line 52, in load_components
>     module = imp.load_source(plugin_name, plugin_file)
>   File "d:\trac\myproject\plugins\excel_report_plugin.py", line 4, in
?
>     from trac.ticket.report import ITicketReportRenderer
> ImportError: cannot import name ITicketReportRenderer
>
> Thanks.
>
> Chris




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to