[Patch] Filename causes module not loaded error
|Reported by:||trac-hacks@…||Owned by:||rjollos|
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.
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