You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Barry Scott <ba...@barrys-emacs.org> on 2005/11/05 16:35:03 UTC

Re: Python hookscipt confusion: "ImportError: No module named svn"

On Oct 3, 2005, at 14:46, x nooby wrote:

>
> Hi,
>
> I'm trying to use the "check-case-insensitive.py"
> script on a Windows XP Subversion host. I am getting
> an error "ImportError: No module named svn"
>
>
> My complete error is:
>
> E:\svntesting\acmepss\sales>svn ci zdate.hpp -m "test"
> Sending        zdate.hpp
> Transmitting file data .svn: Commit failed (details
> follow):
> svn: 'pre-commit' hook failed with error output:
> Traceback (most recent call last):
>   File "e:\svnrepo\hooks\check-case-insensitive.py",
> line 66, in ?
>     from svn import fs, core, repos, delta
> ImportError: No module named svn
> Error found in commit

You can write hook scripts using pysvn and its easy to do.
However the errors you are getting are from trying to use the
svn python bindings not pysvn.

Barry


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org