[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2005-11-05 17:35:03 CET

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
Received on Sat Nov 5 17:41:35 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.