On 01/18/11 00:13, Tshepang Lekhonkhobe wrote:
> On Mon, Jan 17, 2011 at 23:51, Kingsley G. Morse Jr.
> <[email protected]> wrote:
> > On 01/17/11 18:22, Tshepang Lekhonkhobe wrote:
> >> On Sun, Jan 16, 2011 at 08:41, Kingsley G. Morse Jr.
> >> <[email protected]> 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 <[email protected]>
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/
$ 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.
What would you think of changing the wajig
package to depend on python >=2.6?
~K
>
> > Hi Tshepang,
> >
> > Thank you for your quick reply.
>
> kool stuff
>
> > For years, I've been using the "unstable"
> > repositories and tools like "apt-get install
> > <package>" do download new code and dependencies.
> >
> > May I please have the benefit of your thoughts on
> > whether wajig should depend on a specific version
> > of python?
>
> Not specific python version per se, but default python version. At the
> moment, it is 2.6, so think of it like wajig currently depends on 2.6.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]