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

Python bindings seems to be broken

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2005-01-05 07:45:53 CET


I found following when I tried to implement one minor enhancement to
the mailer.py.

$ python mailer.py commit ./repo 1 ./mailer.conf
Traceback (most recent call last):
  File "mailer.py", line 981, in ?
    author, propname, action)
  File "/home/jaa/tmpfs/inst/svn/lib/svn-python/svn/core.py", line 40,in run_app
    return apply(func, (pool,) + args, kw)
  File "mailer.py", line 45, in main
    messenger = Commit(pool, cfg, repos)
  File "mailer.py", line 273, in __init__
    editor = svn.repos.ChangeCollector(repos.fs_ptr, repos.root_this, self.pool)
  File "/home/jaa/tmpfs/inst/svn/lib/svn-python/svn/repos.py", line 71, in __init__
    subpool = svn.core.svn_pool_create(self.pool)
NameError: global name 'svn' is not defined

The bindings are working somehow, because I can use some commands of
svnlook.py, but not all of them. Those svnlook.py commands which
don't work, will fail with similar errors.

The exactly same setup compiled with svn & bindings from 1.1.x branch
works OK.

I am using following combo at the moment (which fails)
svn: trunk @ 12591
Python: 2.3.4
SWIG: 1.3.21

BR, Jani

Jani Averbach
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 5 07:46:58 2005

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

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