Modify

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#11753 closed defect (fixed)

Adding missing __init__.py for python 2.7

Reported by: agil Owned by: agil
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 6 months ago by rjollos

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

In 13932:

Added missing __init__.py. Fixes #11753.

Patch by agil.

comment:2 Changed 6 months ago by rjollos

  • Owner changed from dgc to agil

Thanks for the fix!

Add Comment

Modify Ticket

Action
as closed The owner will remain agil.
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.