Opened 6 years ago

Closed 6 years ago

#12935 closed defect (fixed)

AttributeError: 'Tidy' object has no attribute '_tidy'

Reported by: ntmlod Owned by: Aurélien Bompard
Priority: normal Component: OdtExportPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


Finally I got through my installation issues (lxml, pytidylib and tidy requirements) but there is still something not working.

File "/usr/lib/python2.7/site-packages/trac/web/", line 497, in _dispatch_request
File "/usr/lib/python2.7/site-packages/trac/web/", line 214, in dispatch
  resp = chosen_handler.process_request(req)
File "/usr/lib/python2.7/site-packages/trac/wiki/", line 177, in process_request
File "/usr/lib/python2.7/site-packages/trac/mimeview/", line 1015, in send_converted
  content, selector)
File "/usr/lib/python2.7/site-packages/trac/mimeview/", line 691, in convert_content
  output = converter.convert_content(req, mimetype, content, ck)
File "build/bdist.linux-x86_64/egg/odtexport/", line 87, in convert_content
  html = self.wiki_to_html(content, req)
File "build/bdist.linux-x86_64/egg/odtexport/", line 145, in wiki_to_html
  'char-encoding': 'utf8'
File "/ipsl/forge/projets/nemo/trac/plugins/tidylib/", line 221, in tidy_document
  return get_module_tidy().tidy_document(text, options)
File "/ipsl/forge/projets/nemo/trac/plugins/tidylib/", line 233, in get_module_tidy
  _tidy = Tidy()
File "/ipsl/forge/projets/nemo/trac/plugins/tidylib/", line 95, in __init__
  if self._tidy is None:

Although HTML Tidy has been locally installed in the project account, for unknown reason the plugin couldn't locate it. I've already done several compilations from source to install various softwares (ghostscript, doxygen, texlive, ...) but I'v never encountered this problem.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by ntmlod

Fix it by manually add the absolute paths to my local installation of tidy (libs and binary) in LIB_NAMES at the beginning of, recompile pytidylib and everything works perfectly :-)

comment:2 Changed 6 years ago by ntmlod

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Aurélien Bompard.
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.