Modify

Opened 14 years ago

Closed 14 years ago

#6147 closed defect (fixed)

Anchor with Trac 0.11.5 and Python 2.5

Reported by: Myriam Owned by: Dmitri K
Priority: normal Component: AnchorMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

With Trac 0.10 and Python 2.4, the plugin worked perfectly. With Trac 0.11.5 and Python 2.5, I have just "No macro or processor named 'Anchor' found" while I have to copy the file Anchor.py in macro repository (C:\Python25\Lib\plugins). I also tried by copying it in a local directory unsuccessfully. :( Can anybody help me?

Attachments (0)

Change History (4)

comment:1 Changed 14 years ago by Ryan J Ollos

Shouldn't it go in trac/plugins?

comment:2 Changed 14 years ago by Myriam

Yes. I also tried by copying in C:\Python25\Lib\plugins unsuccessfully.
Other plugins with a unique file .py (WikiCalendar) not functioning, while some work very well (ColorMacro).

comment:3 Changed 14 years ago by Ryan J Ollos

I just started developing macros, and I have found that simply changing some indenting of the code will result in a "No macro found" error. It (python?) seems excessively sensitive to indentation to the extent that indenting a line by 3 rather than 4 chars will make the macro not work for me.

I'm not really sure what is going on, but that might be the same issue you are experiencing.

comment:4 in reply to:  3 Changed 14 years ago by Myriam

Resolution: fixed
Status: newclosed

Replying to rjollos:

I just started developing macros, and I have found that simply changing some indenting of the code will result in a "No macro found" error. It (python?) seems excessively sensitive to indentation to the extent that indenting a line by 3 rather than 4 chars will make the macro not work for me.

I'm not really sure what is going on, but that might be the same issue you are experiencing.

Thank you for your answer, but my problem did not come from indentation.
It occurs because I downloaded files by saving the target of the link after a right click on the attached file (with Firefox), what did not save the file .py but the html page!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dmitri K.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.