Opened 7 years ago

Closed 7 years ago

# Anchor with Trac 0.11.5 and Python 2.5

Reported by: Owned by: Myriam Dmitri K normal AnchorMacro normal 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?

### comment:1 Changed 7 years ago by Ryan J Ollos

Shouldn't it go in trac/plugins?

### comment:2 Changed 7 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 follow-up:  4 Changed 7 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 7 years ago by Myriam

Resolution: → fixed new → closed

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