fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #00548
Re: Problems with Fenics port to Debian/Etch
Hi,
Thanks for pointing that out. I have been digging further. Looks like there
are a lot more python2.5 statements. So I will probably give up on porting
to python 2.4. I tired that because lots of modules in etch are for
python2.4. Instead I guess I am planning to upgrade to lenny and work from
there. Hopefully lenny is round the corner as it seems.
regards
balbir thomas
On Sat, Feb 7, 2009 at 8:30 AM, Martin Sandve Alnæs <martinal@xxxxxxxxx>wrote:
> On Sat, Feb 7, 2009 at 11:24 AM, Balbir Thomas <balbir.thomas@xxxxxxxxx>
> wrote:
> > +++ instant-0.9.5/src/instant/cache.py
> > @@ -37,8 +37,8 @@
> > except:
> > instant_warning("In instant.import_module_directly: Failed to
> > import module '%s' from '%s'." % (modulename, path))
> > module = None
> > - finally:
> > sys.path.pop(0)
> > + sys.path.pop(0)
> > return module
>
> Seems like this will pop twice if an exception occurs?
> Move the last sys.path.pop(0) to the end of the try block
> just before except:, but keep the one the end of the except block.
> I don't think this is your problem though.
>
> Martin
>
Follow ups
References