Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3364 closed defect (worksforme)

reStructuredText is broken

Reported by: enrico.straube@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.6
Severity: normal Keywords: rst reStructuredText
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

After update from 0.9.5 to 0.9.6 all my reStructuredText are broken.

This doesn't work here:

{{{
 #!rst
 * Workshop_ Repository

 .. _Workshop: /projects/workshop
}}}

Attachments (0)

Change History (12)

comment:1 by Christopher Lenz, 18 years ago

Are you using Docutils ≥ 0.3.9? And what exactly do you mean with "doesn't work"?

in reply to:  1 comment:2 by anonymous, 18 years ago

Replying to cmlenz:

Are you using Docutils ≥ 0.3.9? And what exactly do you mean with "doesn't work"?

No I have Docutils 0.3.5 installed… I will try a newer one…

comment:3 by enrico.straube@…, 18 years ago

Milestone: 0.9.7
Resolution: fixed
Status: newclosed

after the update to Docutils 0.4 all workes fine..

comment:4 by Matthew Good, 18 years ago

Resolution: fixed
Status: closedreopened

comment:5 by Matthew Good, 18 years ago

Resolution: worksforme
Status: reopenedclosed

The fixed resolution is reserved for issues that require code modifications.

comment:6 by mark@…, 18 years ago

Resolution: worksforme
Status: closedreopened

I am using docutils 0.4 and reStructuredText does not work since 0.9.5.
See http://openmailadmin.ossdl.de/wiki/About/CompareCompetitors .

Are there any other dependencies?

comment:7 by Matthew Good, 18 years ago

Resolution: worksforme
Status: reopenedclosed

I'm testing that same page content here with Trac 0.9.6 and docutils 0.4 which works fine. Check that you have installed docutils for under the same version of Python as Trac is using. Also turn on logging and check the logs for any errors related to docutils.

comment:8 by anonymous, 18 years ago

Summary: reStructuredText is borkenreStructuredText is broken

With

  • www-apps/trac-0.9.6
  • dev-libs/clearsilver-0.10.1
  • app-text/enscript-1.6.4-r2
  • sys-devel/flex-2.5.33-r1
  • dev-python/docutils-0.4
  • app-text/silvercity-0.9.5-r1
  • dev-lang/python-2.4.3-r1
  • dev-python/mod_python-3.1.4-r1
  • net-www/apache-2.0.58

I receive this error:

16:19:15 Trac[api] DEBUG: Trying to render HTML preview using ReStructuredTextRenderer
16:19:16 Trac[api] WARNING: HTML preview using <trac.mimeview.rst.ReStructuredTextRenderer object at 0xa3b5916c> failed (No module named pwd)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/mimeview/api.py", line 233, in render
    result = renderer.render(req, mimetype, content, filename, rev)
  File "/usr/lib/python2.4/site-packages/trac/mimeview/rst.py", line 226, in render
    settings_overrides={'halt_level': 6,
  File "/usr/lib/python2.4/site-packages/docutils/core.py", line 397, in publish_string
    enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.4/site-packages/docutils/core.py", line 608, in publish_programmatically
    pub.process_programmatic_settings(
  File "/usr/lib/python2.4/site-packages/docutils/core.py", line 139, in process_programmatic_settings
    config_section=config_section,
  File "/usr/lib/python2.4/site-packages/docutils/core.py", line 126, in get_settings
    option_parser = self.setup_option_parser(
  File "/usr/lib/python2.4/site-packages/docutils/core.py", line 114, in setup_option_parser
    usage=usage, description=description)
  File "/usr/lib/python2.4/site-packages/docutils/frontend.py", line 516, in __init__
    config_settings = self.get_standard_config_settings()
  File "/usr/lib/python2.4/site-packages/docutils/frontend.py", line 562, in get_standard_config_settings
    for filename in self.get_standard_config_files():
  File "/usr/lib/python2.4/site-packages/docutils/frontend.py", line 558, in get_standard_config_files
    return [os.path.expanduser(f) for f in config_files if f.strip()]
  File "/usr/lib/python2.4/posixpath.py", line 320, in expanduser
    import pwd
ImportError: No module named pwd
16:19:16 Trac[api] DEBUG: Trying to render HTML preview using PlainTextRenderer
16:19:16 Trac[api] DEBUG: Using default plain text mimeviewer

comment:9 by Matthew Good, 18 years ago

The module "pwd" is a core part of Python. If it can't be imported then it seems like something is broken in your Python installation.

comment:10 by papercrane@…, 18 years ago

Aha! The solution (for me) was to make the trac project directory owned by the webserver's user. (writable by web server user would probably be enough)

comment:11 by anonymous, 18 years ago

I've had this effect as well on upgrade to 0.9.6. The solution for me, on Gentoo, was to re-emerge mod_python.

in reply to:  6 comment:12 by anonymous, 18 years ago

Replying to mark@openmailadmin.org:

I am using docutils 0.4 and reStructuredText does not work since 0.9.5.
See http://openmailadmin.ossdl.de/wiki/About/CompareCompetitors .

Are there any other dependencies?

It works with docutils 0.3.9.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.