Re: [Yum-devel] “Fatal Python error: deallocating None” and urlgrabber

2011-02-04 Thread James Antill
On Fri, 2011-02-04 at 09:11 +0100, Stefan Urbanek wrote: > Hi, > > I'm trying to fetch 1m+ pages over HTTP from single site. urlgrabber > seemed like fast solution using "keep alive" connections. However, > after a while my script fails without any stack trace with: "Fatal > Python error: dealloca

Re: [Yum-devel] [PATCH 2/2] Hide invalid XML errors for updateinfo, BZ 663378

2011-02-04 Thread seth vidal
On Fri, 2011-02-04 at 11:35 -0500, James Antill wrote: > On Fri, 2011-02-04 at 11:31 -0500, seth vidal wrote: > > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > > > + > > > +def safe_iterparse(filename): > > > +""" Works like iterparse, but hides XML errors (prints a warning). > >

Re: [Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread seth vidal
On Fri, 2011-02-04 at 11:53 -0500, James Antill wrote: > On Fri, 2011-02-04 at 11:49 -0500, seth vidal wrote: > > On Fri, 2011-02-04 at 11:37 -0500, James Antill wrote: > > > On Fri, 2011-02-04 at 11:30 -0500, seth vidal wrote: > > > > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > > >

Re: [Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread James Antill
On Fri, 2011-02-04 at 11:49 -0500, seth vidal wrote: > On Fri, 2011-02-04 at 11:37 -0500, James Antill wrote: > > On Fri, 2011-02-04 at 11:30 -0500, seth vidal wrote: > > > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > > > --- > > > > output.py | 43 +

Re: [Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread seth vidal
On Fri, 2011-02-04 at 11:37 -0500, James Antill wrote: > On Fri, 2011-02-04 at 11:30 -0500, seth vidal wrote: > > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > > --- > > > output.py | 43 ++- > > > 1 files changed, 34 insertions(+), 9 deletion

Re: [Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread James Antill
On Fri, 2011-02-04 at 11:30 -0500, seth vidal wrote: > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > --- > > output.py | 43 ++- > > 1 files changed, 34 insertions(+), 9 deletions(-) > > fine with this patch except for why it is named '_hpkg2

Re: [Yum-devel] [PATCH 2/2] Hide invalid XML errors for updateinfo, BZ 663378

2011-02-04 Thread James Antill
On Fri, 2011-02-04 at 11:31 -0500, seth vidal wrote: > On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > > + > > +def safe_iterparse(filename): > > +""" Works like iterparse, but hides XML errors (prints a warning). """ > > +try: > > +for event, elem in safe_iterparse(infile

Re: [Yum-devel] [PATCH 2/2] Hide invalid XML errors for updateinfo, BZ 663378

2011-02-04 Thread seth vidal
On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > --- > yum/update_md.py | 11 ++- > 1 files changed, 10 insertions(+), 1 deletions(-) > > diff --git a/yum/update_md.py b/yum/update_md.py > index 83e56c6..619250e 100644 > --- a/yum/update_md.py > +++ b/yum/update_md.py > @@ -32,6

Re: [Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread seth vidal
On Fri, 2011-02-04 at 11:24 -0500, James Antill wrote: > --- > output.py | 43 ++- > 1 files changed, 34 insertions(+), 9 deletions(-) > fine with this patch except for why it is named '_hpkg2from_repo' why the 2? Is there an _hpkgfrom_repo somewhere

[Yum-devel] [PATCH 1/2] Show from_repo in history output, if available.

2011-02-04 Thread James Antill
--- output.py | 43 ++- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a/output.py b/output.py index 04b718b..08fe0e3 100755 --- a/output.py +++ b/output.py @@ -1619,6 +1619,18 @@ to exit. self._historyInfoCmd(mobj) +def

[Yum-devel] [PATCH 2/2] Hide invalid XML errors for updateinfo, BZ 663378

2011-02-04 Thread James Antill
--- yum/update_md.py | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/yum/update_md.py b/yum/update_md.py index 83e56c6..619250e 100644 --- a/yum/update_md.py +++ b/yum/update_md.py @@ -32,6 +32,15 @@ import Errors import rpmUtils.miscutils + +def safe_iterp

Re: [Yum-devel] “Fatal Python error: deallocating None” and urlgrabber

2011-02-04 Thread tim.laurid...@gmail.com
On Fri, Feb 4, 2011 at 9:11 AM, Stefan Urbanek wrote: > Hi, > > I'm trying to fetch 1m+ pages over HTTP from single site. urlgrabber seemed > like fast solution using "keep alive" connections. However, after a while my > script fails without any stack trace with: "Fatal Python error: deallocating

[Yum-devel] “Fatal Python error: deallocating None” and urlgrabber

2011-02-04 Thread Stefan Urbanek
Hi, I'm trying to fetch 1m+ pages over HTTP from single site. urlgrabber seemed like fast solution using "keep alive" connections. However, after a while my script fails without any stack trace with: "Fatal Python error: deallocating None" Here is isolated python code that fails (for simplific