You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "C. Michael Pilato" <cm...@collab.net> on 2010/07/15 19:43:10 UTC
Note to self (with all of dev@ peering over my shoulder...)
[ Mailing this to the list so I don't forget about it -- I haven't
time to dive in right now. ]
I ran into a problem today with the SWIG Python bindings when doing some
ViewVC work (annotate view under standalone.py). Exception below:
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 4422, in main
request.run_viewvc()
File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 398, in run_viewvc
self.view_func(self)
File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 1777, in view_annotate
markup_or_annotate(request, 1)
File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 1689, in
markup_or_annotate
blame_source, revision = request.repos.annotate(path, rev)
File "/usr/local/viewvc-1.2-dev/lib/vclib/svn/svn_repos.py", line 572, in
annotate
youngest_rev, oldest_rev, self.config_dir)
File "/usr/local/viewvc-1.2-dev/lib/vclib/svn/svn_repos.py", line 342, in
__init__
ctx.config = core.svn_config_get_config(config_dir)
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 623, in
__setattr__
return _swig_setattr(self, self.__class__, name, value)
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 38, in
_swig_setattr
return _swig_setattr_nondynamic(self,class_type,name,value,0)
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 31, in
_swig_setattr_nondynamic
if method: return method(self,value)
TypeError: Unexpected NULL parent pool on proxy object
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Re: Note to self (with all of dev@ peering over my shoulder...)
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 08/12/2010 05:46 PM, Роман Донченко wrote:
> C. Michael Pilato <cm...@collab.net> писал в своём письме Fri, 13 Aug
> 2010 00:41:36 +0400:
>
>> Simplest recipe I can find:
>>
>> $ python -c 'from svn import client, core;
>> ctx = client.svn_client_ctx_t();
>> ctx.config = core.svn_config_get_config(None)'
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line
>> 633, in
>> __setattr__
>> return _swig_setattr(self, self.__class__, name, value)
>> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line
>> 44, in
>> _swig_setattr
>> return _swig_setattr_nondynamic(self,class_type,name,value,0)
>> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line
>> 37, in
>> _swig_setattr_nondynamic
>> if method: return method(self,value)
>> TypeError: Unexpected NULL parent pool on proxy object
>> $
>>
>
> You're supposed to use svn_client_create_context (that is,
> client.create_context).
Okay. That works.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Re: Note to self (with all of dev@ peering over my shoulder...)
Posted by Роман Донченко <DX...@yandex.ru>.
C. Michael Pilato <cm...@collab.net> писал в своём письме Fri, 13 Aug
2010 00:41:36 +0400:
> Simplest recipe I can find:
>
> $ python -c 'from svn import client, core;
> ctx = client.svn_client_ctx_t();
> ctx.config = core.svn_config_get_config(None)'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line
> 633, in
> __setattr__
> return _swig_setattr(self, self.__class__, name, value)
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 44,
> in
> _swig_setattr
> return _swig_setattr_nondynamic(self,class_type,name,value,0)
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 37,
> in
> _swig_setattr_nondynamic
> if method: return method(self,value)
> TypeError: Unexpected NULL parent pool on proxy object
> $
>
You're supposed to use svn_client_create_context (that is,
client.create_context).
Roman.
Re: Note to self (with all of dev@ peering over my shoulder...)
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 07/15/2010 04:04 PM, Daniel Shahaf wrote:
> C. Michael Pilato wrote on Thu, Jul 15, 2010 at 15:43:10 -0400:
>> [ Mailing this to the list so I don't forget about it -- I haven't
>> time to dive in right now. ]
>>
>> I ran into a problem today with the SWIG Python bindings when doing some
>> ViewVC work (annotate view under standalone.py). Exception below:
>>
>
> How to reproduce? (just go to the "annotate" view!?)
Simplest recipe I can find:
$ python -c 'from svn import client, core;
ctx = client.svn_client_ctx_t();
ctx.config = core.svn_config_get_config(None)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 633, in
__setattr__
return _swig_setattr(self, self.__class__, name, value)
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 44, in
_swig_setattr
return _swig_setattr_nondynamic(self,class_type,name,value,0)
File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 37, in
_swig_setattr_nondynamic
if method: return method(self,value)
TypeError: Unexpected NULL parent pool on proxy object
$
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Re: Note to self (with all of dev@ peering over my shoulder...)
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 07/15/2010 04:04 PM, Daniel Shahaf wrote:
> C. Michael Pilato wrote on Thu, Jul 15, 2010 at 15:43:10 -0400:
>> [ Mailing this to the list so I don't forget about it -- I haven't
>> time to dive in right now. ]
>>
>> I ran into a problem today with the SWIG Python bindings when doing some
>> ViewVC work (annotate view under standalone.py). Exception below:
>>
>
> How to reproduce? (just go to the "annotate" view!?)
Well, annotate view will mask the error. All you'll see is a little note
saying "Error occurred while calculating annotation data." I had to hack
ViewVC to see the actual error via that route.
But I later found a quicker (and less obscured) route to the same error:
just use ViewVC to hit a remote Subversion repository (a root configured to
point to a Subversion URL instead of a local Subversion path).
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Re: Note to self (with all of dev@ peering over my shoulder...)
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
C. Michael Pilato wrote on Thu, Jul 15, 2010 at 15:43:10 -0400:
> [ Mailing this to the list so I don't forget about it -- I haven't
> time to dive in right now. ]
>
> I ran into a problem today with the SWIG Python bindings when doing some
> ViewVC work (annotate view under standalone.py). Exception below:
>
How to reproduce? (just go to the "annotate" view!?)
> An Exception Has Occurred
> Python Traceback
>
> Traceback (most recent call last):
> File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 4422, in main
> request.run_viewvc()
> File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 398, in run_viewvc
> self.view_func(self)
> File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 1777, in view_annotate
> markup_or_annotate(request, 1)
> File "/usr/local/viewvc-1.2-dev/lib/viewvc.py", line 1689, in
> markup_or_annotate
> blame_source, revision = request.repos.annotate(path, rev)
> File "/usr/local/viewvc-1.2-dev/lib/vclib/svn/svn_repos.py", line 572, in
> annotate
> youngest_rev, oldest_rev, self.config_dir)
> File "/usr/local/viewvc-1.2-dev/lib/vclib/svn/svn_repos.py", line 342, in
> __init__
> ctx.config = core.svn_config_get_config(config_dir)
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 623, in
> __setattr__
> return _swig_setattr(self, self.__class__, name, value)
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 38, in
> _swig_setattr
> return _swig_setattr_nondynamic(self,class_type,name,value,0)
> File "/usr/local/subversion/lib/svn-python/libsvn/client.py", line 31, in
> _swig_setattr_nondynamic
> if method: return method(self,value)
> TypeError: Unexpected NULL parent pool on proxy object
>
>
> --
> C. Michael Pilato <cm...@collab.net>
> CollabNet <> www.collab.net <> Distributed Development On Demand