Modify

Opened 11 years ago

Closed 11 years ago

#1264 closed defect (fixed)

module' object has no attribute 'execute'

Reported by: anonymous Owned by: arkemp
Priority: normal Component: DiaViewPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I have saved DiaView.py into my /usr/share/trac/wiki-macros directory. I attached TracTest.dia to a page but [DiaView(TracTest.dia)]]] generates the following error:

Error: Macro DiaView(TracTest.dia) failed 'module' object has no attribute 'execute'

I am using Trac 0.10.2.

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by arkemp

Resolution: fixed
Status: newclosed

I have saved DiaView?.py into my /usr/share/trac/wiki-macros directory.

DiaView is a plugin, rather than a Macro (I think). You should probably put DiaView.py into (on your machine) /usr/share/trac/plugins.

comment:2 Changed 11 years ago by Aramen

Resolution: fixed
Status: closedreopened

I try to put DiaView.py in /usr/local/share/trac/plugins /usr/local/share/trac/wiki-macros projectdir/plugins projectdir/wiki-macros

restart web server

by always see

Error: Failed to load processor DiaView

No macro named DiaView? found

comment:3 Changed 11 years ago by arkemp

hmmm... On my machine (CentOS/RHEL), contrary to my prior statement, DiaView is in /opt/web/trac/plugins, not in /usr/local/trac/share/.../plugins. Sorry for the misdirection...

FYI: I'm on Trac 10.3.

comment:4 Changed 11 years ago by anonymous

Resolution: fixed
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain arkemp.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.