Modify

Opened 5 years ago

Closed 5 years ago

#6147 closed defect (fixed)

Anchor with Trac 0.11.5 and Python 2.5

Reported by: Myriam Owned by: dkhijniak
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 5 years ago by rjollos

Shouldn't it go in trac/plugins?

comment:2 Changed 5 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: Changed 5 years ago by 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.

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

  • Resolution set to fixed
  • Status changed from new to closed

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!

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from dkhijniak. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.