Modify

Opened 4 years ago

Closed 4 years ago

#6987 closed defect (fixed)

Unable to enable the wysiwyg plugin in trac 0.10.4

Reported by: soclays Owned by: jun66j5
Priority: normal Component: TracWysiwygPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

I installed python 2.4, trac 0.10.4
The components installed are:

acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
acct_mgr.web_ui.registrationmodule = disabled
iniadmin.iniadmin.iniadminplugin = enabled
trac.web.auth.loginmodule = disabled
tractags.* = enabled
;tracwysiwyg.* = enabled
webadmin.* = enabled

When set tracwysiwyg.* to enabled, trac website reports error as:

Traceback (most recent call last):

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 239, in dispatch

template, content_type = self._post_process_request(req,

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 269, in _post_process_request

content_type)

File "build\bdist.win32\egg\tracwysiwyg\init.py", line 37, in post_process_request

NameError: global name 'add_link' is not defined

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by jun66j5

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

(In [7848]) fixed #6987 - undefined symbol add_link

comment:2 Changed 4 years ago by jun66j5

Hi, thanks for your report. Try to upgrade r7848.

comment:3 Changed 4 years ago by soclays

  • Resolution fixed deleted
  • Status changed from closed to reopened

After installed r7848, still met error in startup phase.
Is there some lib dependency unrevealed in the install chapter?

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 239, in dispatch
    template, content_type = self._post_process_request(req,
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 269, in _post_process_request
    content_type)
  File "build\bdist.win32\egg\tracwysiwyg\__init__.py", line 41, in post_process_request
  File "build\bdist.win32\egg\tracwysiwyg\__init__.py", line 50, in _expand_filename

AttributeError: 'Request' object has no attribute 'chrome'

My server runs in win server 2003, python 2.4, trac 0.10.4. Here's the list of plugins I've installed:

svnauthzadminplugin-0.1-py2.4.egg
tracaccountmanager-0.1.3dev_r5273-py2.4.egg
tracwysiwyg-0.2_r7848-py2.4.egg

comment:4 Changed 4 years ago by jun66j5

(In [7850]) refs #6987 - fixed problem that add_link(req, 'tracwysiwyg.stylesheet', ..) doesn't work with trac 0.10.x and clearsilver.

comment:5 Changed 4 years ago by jun66j5

I reworked for the problem. In this time, I tested with trac-0.10.4, python-2.3 and r7850.
Thanks.

comment:6 Changed 4 years ago by soclays

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

Many thanks[[BR]]
It's working great for our project now

Add Comment

Modify Ticket

Action
as closed .
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.