Adding missing __init__.py for python 2.7
|Reported by:||Albert||Owned by:||Albert|
I've recently migrated our trac service to a server from python 2.5 to puthon 2.7 and this plugin didn't work. Debugging it I've found this error:
2014-05-20 12:07:15,948 Trac[loader] ERROR: Skipping "mypage = MyPagePlugin.MyPagePlugin": Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/trac/loader.py", line 68, in _load_eggs entry.load(require=True) File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2147, in load ['__name__']) ImportError: No module named MyPagePlugin.MyPagePlugin
To fix it I've just added the empty file
MyPagePlugin/__init__.py and rebuilt it.
I was thinking to just commit it... but problably I have no rights, and it is not so polite...? ;-)
Hope it helps!