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

Commin Mail Notifications on Windows with mailer.py fails

From: Andreas Guther <Andreas.Guther_at_markettools.com>
Date: 2006-10-15 02:13:36 CEST

Hi,

I am having problems getting the mailer.py python script to work as a
post-commit hook for commit notifications on our windows 2003 server.

Maybe someone has the same configuration and can give me tips how to get
this to work.

We are running Subversion for Win32, version 1.2.3. on a Windows 2003
Server.

I decided to try the mailer.py[1] python script and installed the
svn-win32-1.3.2_py.zip. I verified the svn python installation with
python -c "import svn" and this returns without an error.

Our post-commit.bat file looks as follows
@ECHO OFF
ECHO "%1" "%2" >> D:\subversion\logs\post-commit-mailer.log
@"C:\Program Files\Python23\python.exe" mailer.py commit "%1" "%2"
mailer.conf

After commit I get entries in the post-commit-mailer.log file, an
example is the following entry:
"D:/subversion/repos/test_repos" "18"

So far all seems to look fine. The entry is the two parameters passed
in by SVN. The problem is that we do not get mail notifications.

I then run the post-commit.bat manually and the mailing python script
exits with the following error message:

D:\subversion\repos\test_repos\hooks>post-commit.bat
D:/subversion/repos/test_repos 18
Traceback (most recent call last):
  File "mailer.py", line 1808, in ?
    repos_dir = svn.core.svn_path_canonicalize(sys.argv[2])
AttributeError: 'module' object has no attribute 'svn_path_canonicalize'

In the mailer.conf file I made very little changes, only the smtp server
(Windows Exchange) and the from address. I think I did not change
anything else.

Who has a similar configuration and got the commit notification to work
and might give me some tips what to pay attention to?

Thanks in advance for any help.

Andreas

 

[1] http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/mailer/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 15 02:14:09 2006

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.