Modify

Opened 3 months ago

Closed 3 months ago

#14313 closed defect (fixed)

No module named whiteboard.web_ui

Reported by: Florian Berger Owned by: Olemis Lang
Priority: normal Component: WhiteboardPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

I installed WhiteboardPlugin on a Trac 1.2.5 install using Python 2.7.18 . I built an .egg, uploaded it into plugins/, and manually set

[components]
whiteboard.* = enabled

The plugin does not show up on the plugins page at /admin/general/plugin .

In the log, there are these messages:

Trac[loader] DEBUG: Adding plugin "whiteboard 0.1.0-trac0.12dev" from "<redacted>/plugins/whiteboard-0.1.0_trac0.12dev-py2.7.egg"
Trac[loader] DEBUG: Loading plugin "whiteboard.web_ui" from "<redacted>/plugins/whiteboard-0.1.0_trac0.12dev-py2.7.egg"
Trac[loader] ERROR: Skipping "whiteboard.web_ui = whiteboard.web_ui": ImportError: No module named whiteboard.web_ui

The web_ui module is clearly present in the .egg:

$ unzip -t plugins/whiteboard-0.1.0_trac0.12dev-py2.7.egg 
Archive:  plugins/whiteboard-0.1.0_trac0.12dev-py2.7.egg
    testing: EGG-INFO/PKG-INFO        OK
    testing: EGG-INFO/SOURCES.txt     OK
    testing: EGG-INFO/dependency_links.txt   OK
    testing: EGG-INFO/entry_points.txt   OK
    testing: EGG-INFO/top_level.txt   OK
    testing: EGG-INFO/zip-safe        OK
    testing: whiteboard/web_ui.py     OK
    testing: whiteboard/web_ui.pyc    OK
    testing: whiteboard/htdocs/css/whiteboard.css   OK
    testing: whiteboard/htdocs/js/jquery-ui.js   OK
    testing: whiteboard/htdocs/js/jquery.equalheights.js   OK
    testing: whiteboard/htdocs/js/whiteboard.js   OK
    testing: whiteboard/templates/whiteboard.html   OK

How do I make Trac find the module, and get the plugin working?

Attachments (0)

Change History (3)

comment:1 Changed 3 months ago by Florian Berger

The problem had already been reported in February 2019 on trac-users here: Kanban / Whiteboard options , but did not receive any reply back then.

comment:2 Changed 3 months ago by Jun Omae

In 18619:

WhiteboardPlugin: add missing whiteboard/__init__.py (refs #14313)

comment:3 Changed 3 months ago by Florian Berger

Resolution: fixed
Status: newclosed

Confirmed fix, the plugin is now usable with Trac 1.2.5 . Thank you.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Olemis Lang.
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.