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

Re: Python bindings and SVN 1.3.0-rc4

From: W-Mark Kubacki <wmark_at_hurrikane.de>
Date: 2005-12-11 13:04:01 CET

Hello!

The error occurs with any version of Trac 0.9 series (and probably with
any version below 0.9). (Linux distro is Gentoo.)
. SWIG: 1.3.21
. APR: 0.9.7
. NEON: 0.24.7
. Python: 2.4.2
. GCC: 3.3.6 (and 3.4.4-r1 - no difference)

Steps to reproduce:
1. install these versions
2. make some commits to your SVN repository
3. go to Trac's page and try to open "timeline", "changeset viewer" or
"code browser" (that is, any component interacting with Trac)

You will either receive a blank page or a traceback.
I've attached three tracebacks to this email, which (essentially) only
differ in the last line containing that address.

And there is something that makes me very puzzled:
If you reloaded that page after having received that error (and
traceback) everything is shown properly. - And yes, I've cleaned my
browser's cache.
Perhaps Trac has some sort of failback-code, I don't know. (Downgrading
to SVN 1.2.3 makes the errors disappear.)

Gruß,

W-Mark Kubacki

P.S: Good luck and, enjoy being at school. Your free time will
dramatically decrease when studying.

David James wrote:
> On 12/10/05, W-Mark Kubacki <wmark@hurrikane.de> wrote:
>> After having upgraded to SVN 1.3.0-rc4 I receive these errors with Trac
>> (which is written in Python) and tend to believe the error is on SVN (or
>> it's bindings') side:
>>
>> argument number 0: a 'apr_pool_t *' is expected,
>> 'instance(<libsvn.core.GenericSWIGWrapper instance at 0xb4735a0c>)' is
>> received
>
> Hi Mark,
>
> This looks like an important bug in the new 1.3.0 Python bindings in
> Subversion. Could you describe which version of Trac you're using, and
> how to reproduce the bug? (Do you know which function or line of code
> in Trac is triggering this?)
>
> Thanks,
>
> David
>
> P.S. I'm in the middle of exams in school right now, so I might not
> have a chance to follow up on this right away.
>
> --
> David James -- http://www.cs.toronto.edu/~james

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/Timeline.py", line 138, in process_request
    filters)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py", line 108, in get_timeline_events
    repos = self.env.get_repository()
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 155, in get_repository
    from trac.versioncontrol.svn_fs import SubversionRepository
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 25, in ?
    from svn import fs, repos, core, delta
  File "/usr/lib/python2.4/site-packages/svn/fs.py", line 19, in ?
    from libsvn.fs import *
  File "/usr/lib/python2.4/site-packages/libsvn/fs.py", line 29, in ?
    import core
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 3048, in ?
    svn_pool_create()
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 1097, in svn_pool_create
    return apply(_core.svn_pool_create, args)
TypeError: argument number 0: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0xb43f060c>)' is received

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 90, in process_request
    repos = self.env.get_repository(req.authname)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 155, in get_repository
    from trac.versioncontrol.svn_fs import SubversionRepository
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 25, in ?
    from svn import fs, repos, core, delta
  File "/usr/lib/python2.4/site-packages/svn/fs.py", line 19, in ?
    from libsvn.fs import *
  File "/usr/lib/python2.4/site-packages/libsvn/fs.py", line 29, in ?
    import core
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 3048, in ?
    svn_pool_create()
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 1097, in svn_pool_create
    return apply(_core.svn_pool_create, args)
TypeError: argument number 0: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0xb43f080c>)' is received

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 90, in process_request
    repos = self.env.get_repository(req.authname)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 155, in get_repository
    from trac.versioncontrol.svn_fs import SubversionRepository
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 25, in ?
    from svn import fs, repos, core, delta
  File "/usr/lib/python2.4/site-packages/svn/fs.py", line 19, in ?
    from libsvn.fs import *
  File "/usr/lib/python2.4/site-packages/libsvn/fs.py", line 29, in ?
    import core
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 3048, in ?
    svn_pool_create()
  File "/usr/lib/python2.4/site-packages/libsvn/core.py", line 1097, in svn_pool_create
    return apply(_core.svn_pool_create, args)
TypeError: argument number 0: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0xb43728ac>)' is received

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 11 16:57:15 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.