Edgewall Software

Opened 19 years ago

Last modified 18 years ago

#1500 closed defect

Trac fails to run due to failed "from svn import util" — at Version 4

Reported by: ilia@… Owned by: Jonas Borgström
Priority: high Milestone: 0.8.3
Component: general Version: 0.8.1
Severity: major Keywords: trac-admin subversion bindings
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

After a installing trac on python 2.4.1, I've attempted to run "trac-admin [path] initenv" to initialize the database. This failed with the following error:

Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 34, in ?
    from trac import sync
  File "/usr/lib/python2.4/site-packages/trac/sync.py", line 23, in ?
    from svn import fs, util, delta, repos, core
ImportError: cannot import name util

The trac python modules have been installed in the default path and /usr/lib/python2.4/site-packages/trac/util.py is available.

Change History (4)

comment:1 by Matthew Good, 19 years ago

Resolution: invalid
Status: newclosed

The "util" package that it's looking for is the one from svn, not Trac. You need to install the SWIG bindings for Subversion to get this package.

comment:2 by Matthew Good, 19 years ago

I should say the SWIG Python bindings.

comment:3 by Topia <topia@…>, 19 years ago

maybe reporter use svn 1.2.x.

suggest to try trac subversion trunk.

comment:4 by Christopher Lenz, 19 years ago

Description: modified (diff)
Milestone: 0.8.2
Priority: normalhigh
Resolution: invalid
Severity: normalmajor
Status: closedreopened
Summary: trac-admin fails to run due to failed "import util"Trac fails to run due to failed "from svn import util"

This error is due to Subversion 1.2 breaking compatibility with Trac 0.8.x by removing the svn.util module.

We should fix this in 0.8.2.

Note: See TracTickets for help on using tickets.