Modify ↓
#4800 closed defect (fixed)
[Patch] Filename causes module not loaded error
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
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 15 years ago by
Summary: | Filename causes module not loaded error → [Patch] Filename causes module not loaded error |
---|
comment:2 Changed 15 years ago by
Owner: | changed from daan to Ryan J Ollos |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 14 years ago by
Note: See
TracTickets for help on using
tickets.
Assigining ticket to new maintainer.