On 10/12/2004 05:57, Arnout Standaert wrote:
> Hi list,
>
> I'm trying to get the mailer.py script working at post-commit on a test
> repository running under Windows 2000.
> Test-running my post-commit.bat file, I get the following error:
>
> Traceback (most recent call last):
> File "e:/svn/testing\hooks\mailer.py", line 861, in ?
> author, propname, action)
> File "c:\Python23\lib\svn\core.py", line 33, in run_app
> return apply(func, (pool,) + args, kw)
> File "e:/svn/testing\hooks\mailer.py", line 37, in main
> repos = Repository(repos_dir, rev, pool)
> File "e:/svn/testing\hooks\mailer.py", line 593, in __init__
> self.repos_ptr = svn.repos.open(repos_dir, pool)
> AttributeError: 'module' object has no attribute 'open'
>
> I'm running Subversion 1.1.1 combined with the Python 2.3 bindings for
> 1.1.1 that I got from the Documents & Files section. Python installed is
> ActiveState Python 2.4.3.
>
> Any ideas on this? A google/mailing list search did not turn up too
> much...
The function is named "svn_repos_open" in 1.1.1. It looks like you're
using the trunk version of mailer.py. Use the one from the 1.1.1 tag:
http://svn.collab.net/repos/svn/tags/1.1.1
Hope that helps !
François
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 10 15:49:52 2004