Opened 15 years ago
Last modified 11 years ago
#6061 closed defect
Plugin doesn't appear in Webadmin + TicketChart macro not found — at Version 10
Reported by: | Owned by: | aviram | |
---|---|---|---|
Priority: | highest | Component: | TicketChartsMacro |
Severity: | blocker | Keywords: | charts |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
Hi,
After copying TicketCharts.py to my project plugins directory, the plugin is NOT listed in Trac Webadmin plugins section.
- I'm running Trac 0.11.5
- restarted Apache
- when I saw this first problem, I didn't tried to go further in the setup process (didn't installed Open Flash Charts 2 and its version 2 python bindings yet)
- enabled in trac.ini with ticketcharts.* = enabled
- Already have AdvParseArgsPlugin and TicketStats? plugins installed and both working fine.
- Couldn't find this kind of issue regarding your plugin on the web.
I guess that it should appear at least in Webadmin plugin's page, even without OFC, and if I try to call the macro through a wiki page, I get the standard Trac error msg :
Error: Failed to load processor TicketChart
No macro or processor named 'TicketChart' found
So it seems that TicketCharts?.py isn't taken at all by Trac
Any thoughts ?
I've recently installed about 10 plugins on Trac and this is the first that doesn't appear on Webadmin. As I'm still a little newbie on Unix, I'd prefer to first ensure that the plug-in is at least "recognized" and executed by Trac, before eventually spending some hours to install and setup Open Flash Charts for nothing (if the plugin still doesn't work after that).
So, if seems possible and logical for you to encounter this issue without having Open Flash Charts installed, just tell me, and I would give a try completing the whole setup process.
Could you help ? This would be nice, as your plugin should be perfect for my needs and I would really like to make it work.
Many thanks in advance ;-)
Change History (9)
comment:2 Changed 15 years ago by
comment:3 follow-up: 6 Changed 14 years ago by
Ran in to the exact same problem following those exact steps. The Trac log shows the following:
2009-11-27 12:28:31,091 Trac[loader] DEBUG: Loading file plugin TicketCharts from /usr/share/trac/plugins/TicketCharts.py 2009-11-27 12:28:31,101 Trac[loader] ERROR: Failed to load plugin from /usr/share/trac/plugins/TicketCharts.py: Traceback (most recent call last): File "/usr/lib64/python2.5/site-packages/trac/loader.py", line 91, in _load_py_files module = imp.load_source(plugin_name, plugin_file) File "/usr/share/trac/plugins/TicketCharts.py", line 70, in <module> import openFlashChart ImportError: No module named openFlashChart
So, the conclusion is that you've got to install all the pieces, otherwise the plugin wont load.
comment:4 Changed 14 years ago by
Turns out that the name is wrong.
class TicketChart(WikiMacroBase):
...should be:
class TicketChartMacro(WikiMacroBase):
Now the macro actually loads in my Trac page, no errors in the log, but still no chart.
comment:5 Changed 14 years ago by
Finally, it works, and it looks absolutely astonishing!
Final tweaks:
http://whatever.host.com/trac
<proj-env>/htdocs
-
js OFCDZ.swf
<proj-env>/conf/trac.ini
-
[ticket-charts] js_dir = /trac/chrome/site/js json_dir = /trac/chrome/site/js/json ofc_file = /trac/chrome/site/OFCDZ.swf
comment:6 follow-up: 7 Changed 14 years ago by
Replying to stava@linadd.org:
... So, the conclusion is that you've got to install all the pieces, otherwise the plugin wont load.
I have the same message, but I don't understand what you mean install all the pieces. Could you describe more details?!
comment:7 follow-up: 9 Changed 14 years ago by
What I meant was that you should follow the instructions in the wiki about installing Open Flash Chart, AdvParse plugin, etc. That's the pieces.
comment:8 Changed 14 years ago by
Hi,
In my trac instance, everything works except that it keeps "loading" data. Any idea why?
comment:9 Changed 14 years ago by
Replying to stava@linadd.org:
What I meant was that you should follow the instructions in the wiki about installing Open Flash Chart, AdvParse plugin, etc. That's the pieces.
In my trac instance, everything works except that it keeps "loading" data. Any idea why?
I confirm that after testing with the whole setup process even installing OpenFlash, nothing happens, your macro .py file isn't recognized nor processed by Trac.
I still have (on Trac 0.11.5) :
With
ticketcharts.* = enabled
in trac.ini