Thanks for figuring this out! This seems to be a big change between the Python versions. I am not sure if changing the dep_check.py file will solve the problem of Python 2.4, as I expect all the other classes to crash as well. I will sonn release another version of NESSY. I will also release a compiled version for Linux, which includes all the Python and other packages. I hope people with older versions will be able to use this version. But agree, Python 2.4 is a bit out dated...
Cheers, Michael -------- Original-Nachricht -------- > Datum: Tue, 27 Mar 2012 14:26:14 +0200 > Von: "Edward d\'Auvergne" <[email protected]> > An: Brian Smith <[email protected]> > CC: [email protected] > Betreff: Re: [Nessy-users] nessy dep_check.py issue > Hi, > > Actually, I can confirm this: > > ----- > [edward@localhost nessy]$ python2.4 nessy > Traceback (most recent call last): > File "nessy", line 27, in ? > from dep_check import Dep_check, version_check > File "/data/software/nessy/nessy/dep_check.py", line 46 > class Dep_check(): > ^ > SyntaxError: invalid syntax > [edward@localhost nessy]$ > ----- > > > The following change should resolve the problem: > > ----- > [edward@localhost nessy]$ svn diff > Index: dep_check.py > =================================================================== > --- dep_check.py (revision 1072) > +++ dep_check.py (working copy) > @@ -43,7 +43,7 @@ > > > > -class Dep_check(): > +class Dep_check: > """Class to check if dependencies are installed.""" > > def __init__(self): > [edward@localhost nessy]$ > ----- > > Though there will probably be other issues using such an ancient > Python version (it was first released on November 30, 2004). > > Regards, > > Edward > > > > > On 27 March 2012 14:12, Brian Smith <[email protected]> wrote: > > > > I see the same problem using python 2.4 on CentOS 5. I think you need > python > > 2.6 or 2.7 for all the nessy stuff to work. > > > > > >> Traceback (most recent call last): > >> File "/usr/share/nessy/nessy", line 27, in ? > >> from dep_check import Dep_check, version_check > >> File "/usr/share/nessy/dep_check.py", line 46 > >> class Dep_check(): > >> ^ > >> SyntaxError: invalid syntax > > > > > > _______________________________________________ > > Nessy-users mailing list > > [email protected] > > https://mail.gna.org/listinfo/nessy-users > > _______________________________________________ > Nessy-users mailing list > [email protected] > https://mail.gna.org/listinfo/nessy-users -- Michael Bieri Kardiologie, HTx Inselspital, Pathologie L621 Murtenstr. 31, CH-3010 Bern Switzerland Tel.: +41 31 632 13 82 Fax: +41 31 632 88 37 [email protected] www.cvrc.dkf.unibe.ch www.insel.ch NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a _______________________________________________ Nessy-users mailing list [email protected] https://mail.gna.org/listinfo/nessy-users
