On Tue, Jan 18, 2011 at 00:43, Kingsley G. Morse Jr. <kings...@loaner.com> wrote: > On 01/18/11 00:13, Tshepang Lekhonkhobe wrote: >> On Mon, Jan 17, 2011 at 23:51, Kingsley G. Morse Jr. >> <kings...@loaner.com> wrote: >> > On 01/17/11 18:22, Tshepang Lekhonkhobe wrote: >> >> On Sun, Jan 16, 2011 at 08:41, Kingsley G. Morse Jr. >> >> <kings...@loaner.com> wrote: >> >> > Thanks for maintaining wajig. >> >> >> >> Thanks. >> >> >> >> > I look forward to using it. >> >> > >> >> > Here's what I'm seeing with version 2.0.50.1 of >> >> > wajig: >> >> > >> >> > $ wajig list-commands >> >> > /usr/share/wajig/documentation.py:83: Warning: 'with' will become a >> >> > reserved keyword in Python 2.6 >> >> > Traceback (most recent call last): >> >> > File "/usr/share/wajig/wajig.py", line 35, in <module> >> >> > import documentation >> >> > File "/usr/share/wajig/documentation.py", line 83 >> >> > with open("/usr/share/wajig/help/COMMANDS") as f: >> >> > ^ >> >> > SyntaxError: invalid syntax >> >> >> >> wajig depends on default python version, and in Squeeze and Sid, that >> >> happens to be python2.6. What system are using, such that you are >> >> still running < python2.6? >> >> This line: >> /usr/share/wajig/documentation.py:83: Warning: 'with' will become a >> reserved keyword in Python 2.6 >> tells me that your default python < 2.6. Run 'aptitude show python' to >> make sure. If not, check where /usr/bin/python points to. > > Hi Tshepang, > > I did as you said. > > Here's what happened. > > $ aptitude show python > Package: python > State: not installed > Automatically installed: no > Version: 2.6.6-3+squeeze5 > Priority: standard > Section: python > Maintainer: Matthias Klose <d...@debian.org> > Uncompressed Size: 754k > Depends: python2.6 (>= 2.6.6-1~), python-minimal (= 2.6.6-3+squeeze5) > Suggests: python-doc (= 2.6.6-3+squeeze5), python-tk (= 2.6.6-3+squeeze5), > python-profiler (= 2.6.6-3+squeeze5) > Conflicts: python-central (< 0.5.5) > Breaks: python-bz2 (< 1.1-8), python-csv (< 1.0-4), python-email (< > 2.5.5-3) > Replaces: python-dev (< 2.6.5-2) > Provides: python-ctypes, python-email, python-wsgiref > Provided by: python-base > Description: interactive high-level object-oriented language (default > version) > Python, the high-level, interactive object oriented language, includes an > extensive class library with lots of goodies for > network programming, system administration, sounds and graphics. > > This package is a dependency package, which depends on Debian's default > Python version (currently v2.6). > Homepage: http://www.python.org/
Looks good. It's what I get. > $ which /usr/bin/python > /usr/bin/python > > $ ls -l /usr/bin/python > lrwxrwxrwx 1 root root 9 2008-07-10 11:46 /usr/bin/python -> python2.5 > > Maybe you agree that my version of python is too > old for wajig. Well it is too old. It's also risky to mess around with Debian-managed symlinks (like /usr/bin/python) unless you keep note of them. What you can do is re-install python (which should replace that symlink with a proper one -- IE one that points to python2.6). Of course you can do this manually, but I don't recommend it. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org