Modify

Opened 3 years ago

Last modified 3 years ago

#9125 new defect

Warning: Failed write operation: cannot import name client

Reported by: ksariash Owned by: moreati
Priority: normal Component: BrowserSvnOperationsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

The plugin fails when trying to create a new folder with the error:
Warning: Failed write operation: cannot import name client

I did some digging and was able to track down the error

File: trac_browser_svn_ops/svn_fs.py
        # have to avoid importing this from the svn bindings directly,
        # see #define bug #420
        SubversionConnector(env)
        from trac.versioncontrol.svn_fs import core, fs, repos, client

The error is fixed if trac.versioncontrol.svn_fs is replaced with svn, but the comment says that should be avoided, not sure why. If I change the import line, I'm unable to delete files. I get this error:

Warning: Delete failed: ('The root directory cannot be deleted', 160021)

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by nikos.korfiatis@…

Hello, are there any news on that issue ?

comment:2 Changed 3 years ago by rjollos

  • Description modified (diff)

comment:3 Changed 3 years ago by rjollos

  • Description modified (diff)

comment:4 Changed 3 years ago by moreati

Sorry for the lack of response to this bug. #define is a project management project that builds on Trac, bug #420 concerns double import of the subversion bindings because of the hosting configuration.

If you're using Trac then replacing from trac.versioncontrol.svn_fs import core, fs, repos, client with from svn import core, fs, repos, client will be fine. Regarding The root directory cannot be deleted it sounds like you're trying to delete the root directory of your repository (i.e. the directory that /trunk, /tags and /branches normally reside in). The error is to be expected, when I revisit this plugin I'll add some error handling for it

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.