Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

#12290 closed defect (worksforme)

Traceback from tracopt.versioncontrol.svn when dependency is not installed

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone:
Component: version control Version:
Severity: normal Keywords: svn
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

While working on #12282, I noticed another traceback in the log we should try to resolved:

10:40:36 Trac[svn_fs] INFO: Failed to load Subversion bindings
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/tracopt/versioncontrol/svn/svn_fs.py", line 297, in __init__
    _import_svn()
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/tracopt/versioncontrol/svn/svn_fs.py", line 79, in _import_svn
    from svn import fs, repos, core, delta
ImportError: No module named svn

The svn and libsvn modules aren't installed as a setuptools package, so as far as I know we can't use an extras_require specification.

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 8 years ago

Milestone: 1.0.10
Resolution: worksforme
Status: newclosed

Oh, I see this is intentional: tags/trac-1.0.9/tracopt/versioncontrol/svn/svn_fs.py@:301#L294. I guess that is fine since the module is optional and shouldn't be enabled unless the bindings are available.

Modify Ticket

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