Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11753 closed defect (fixed)

Adding missing __init__.py for python 2.7

Reported by: Albert Owned by: Albert
Priority: normal Component: TracMyPagePlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Hi,

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!

Albert

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 13932:

Added missing __init__.py. Fixes #11753.

Patch by agil.

comment:2 Changed 10 years ago by Ryan J Ollos

Owner: changed from dgc to Albert

Thanks for the fix!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Albert.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.