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

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

From: x nooby <xnooby_at_yahoo.com>
Date: 2005-10-03 15:46:54 CEST


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
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

I installed:

   Subversion 1.20
   Python 2.4
   PySVN for Python 2.4

My Python path is:

>>> import sys
>>> print sys.path
['', 'C:\\WINDOWS\\system32\\python24.zip',
'C:\\Python24', 'C:\\Python24\\DLLs',

I've never used hook-scripts or Python before, so
maybe I am missing something simple.

Any suggestions?

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 3 15:49:27 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.