Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#1500 closed defect (fixed)

Trac fails to run due to failed "from svn import util"

Reported by: ilia@… Owned by: Christopher Lenz
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:

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.

Attachments (0)

Change History (14)

comment:1 by Matthew Good, 14 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, 14 years ago

I should say the SWIG Python bindings.

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

maybe reporter use svn 1.2.x.

suggest to try trac subversion trunk.

comment:4 by Christopher Lenz, 14 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.

comment:5 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [1583].

comment:6 by sofar@…, 14 years ago

Since subversion 1.2.0 is a major release version change, can I request that 0.8.2 be released soon? a lot of people will want to upgrade subversion relatively quickly, but this breaks trac (just got hit myself).

A new release of trac would at least allow people to have a choice. Thanks.

comment:7 by chris@…, 14 years ago

Keywords: trac-admin subversion bindings added

+1 for a new offical release with [1583] to correspond with Subversions 1.2.0 release. Not that I have a vote anyway. ;)

comment:8 by moschny at ipd dot uka dot de, 14 years ago

Resolution: fixed
Status: closedreopened

Hmm, scripts/trac-admin needs one more patch, otherwise the resync command won't work:

--- scripts/trac-admin~ 2005-05-04 23:58:18.000000000 +0200
+++ scripts/trac-admin  2005-06-03 15:34:48.000000000 +0200
@@ -564,7 +564,7 @@

     ## Resync
     def do_resync(self, line):
-        from svn import util, repos, core
+        from svn import repos, core
         core.apr_initialize()
         pool = core.svn_pool_create(None)



comment:9 by anonymous, 14 years ago

here is a patch for 0.8.2 release:

--- a/trac-admin  2005-05-04 23:58:18.000000000 +0200
+++ b/trac-admin 2005-06-03 15:43:43.000000000 +0200
@@ -564,7 +564,7 @@

     ## Resync
     def do_resync(self, line):
-        from svn import util, repos, core
+        from svn import repos, core
         core.apr_initialize()
         pool = core.svn_pool_create(None)

comment:10 by anonymous, 14 years ago

Milestone: 0.8.20.9

Version 0.8.2 is not selectable, and Milestone 0.8.3 is neither, so setting Milestone to 0.9.

comment:11 by Christopher Lenz, 14 years ago

Milestone: 0.90.8.3

Okay, so it's decided: there'll be a 0.8.3 release.

comment:12 by Christopher Lenz, 14 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: reopenednew

comment:13 by Christopher Lenz, 14 years ago

Status: newassigned

comment:14 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1793].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christopher Lenz 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.