Modify

Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#4800 closed defect (fixed)

[Patch] Filename causes module not loaded error

Reported by: trac-hacks@… Owned by: rjollos
Priority: normal Component: AllAttachmentsMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Installing following the instructions initially failed to load the plugin with the following error in my trac.log:

2009-03-17 13:51:45,816 Trac[loader] ERROR: Failed to load plugin from /Users/tracroot/etl2/plugins/AllAttachmentsMacro-1.0.py
Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/loader.py", line 89, in _load_py_files
    module = imp.load_source(plugin_name, plugin_file)
  File "/Users/tracroot/etl2/plugins/AllAttachmentsMacro-1.0.py", line 9, in <module>
    from trac.wiki.macros import WikiMacroBase, parse_args
SystemError: Parent module 'AllAttachmentsMacro-1' not loaded

Renaming the file from AllAttachmentsMacro-1.0.py to AllAttachments.py cleared this and the macro appears in my admin page and can be used as expected.

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by rjollos

  • Summary changed from Filename causes module not loaded error to [Patch] Filename causes module not loaded error

comment:2 Changed 4 years ago by rjollos

  • Owner changed from daan to rjollos

Assigining ticket to new maintainer.

comment:3 Changed 4 years ago by rjollos

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

(In [8400]) Removed revision from filename. Added revision info to macro. Fixes #4800.

comment:4 Changed 4 years ago by rjollos

(In [8401]) Accidentally added revision info twice in [8400]. Refs #4800.

Add Comment

Modify Ticket

Action
as 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.