OK that worked thanks I'm not sure whether these files got copied over from my old machine - I didn't do the copy myslef
Phil On 4 May 2011, at 13:16, Paul Emsley wrote: > On 04/05/11 13:11, Phil Evans wrote: >> Is that dangerous? > > Not really, python makes the pyc files again (I understand). > >> If I move it I then get >> >> ImportError: Bad magic number in >> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc >> >> after moving that I then get >> >> ImportError: Bad magic number in >> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.pyc >> >> and so on I guess > > So I understand after a bit more googling. > > I should have recommended some sort of find: > > $ find /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 > -name "*.pyc" -delete