
Recently python-iview stopped working because the ABC apparently started sending unicode characters where the previous code didn't work. The new python-iview in GIT depends on Version 3+ of Python and the Debian/Wheezy Python build system doesn't seem designed for building that - or at least it's well beyong my Python coding ability. I used the below patch to convert the text in question to plain ASCII and make the program work again (the change to the #! line isn't needed). Note that the ABC doesn't want us to create archives of programs downloaded from their web site. But if you do want to create such archives I can recommend a BTRFS RAID-1 array of two cheap SATA disks for that purpose. 3TB SATA disks are dirt cheap nowadays. The worst of the BTRFS problems I described in my last LUV talk only occur when a filesystem is filled and a 3TB RAID array isn't something you'll fill quickly. --- a/iview-cli +++ b/iview-cli @@ -1,9 +1,10 @@ -#!/usr/bin/env python +#!/usr/bin/python from __future__ import print_function import sys, os, getopt import os.path import iview.config +import codecs try: import configparser as ConfigParser # Python 3 @@ -80,7 +81,7 @@ def print_series_items(items, indent=''): url = item['livestream'] else: url = item['url'] - print(indent + item['title'] + '\t(' + url + ')') + print(indent + item['title'].encode('ascii', 'ignore') + '\t(' def print_auth(): config() -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On 28/04/2014 19:33, Russell Coker wrote:
The new python-iview in GIT depends on Version 3+ of Python and the Debian/Wheezy Python build system doesn't seem designed for building that - or at least it's well beyong my Python coding ability.
I find that surprising. Python 3 is available in Debian Wheezy, and any of the dependency requirements should be easily installable through apt or pip. It's probably easier to focus on installing the dependencies, rather than trying to build the Debian package, in cast that's what you've been trying to do. In terms of dependencies, it is actually pretty light-on...

On Mon, 28 Apr 2014 20:22:01 Jeremy Visser wrote:
On 28/04/2014 19:33, Russell Coker wrote:
The new python-iview in GIT depends on Version 3+ of Python and the Debian/Wheezy Python build system doesn't seem designed for building that - or at least it's well beyong my Python coding ability.
I find that surprising. Python 3 is available in Debian Wheezy, and any of the dependency requirements should be easily installable through apt or pip.
It's probably easier to focus on installing the dependencies, rather than trying to build the Debian package, in cast that's what you've been trying to do.
The debian/ directory in the source tree I'm using includes some standard Python makefiles that do all sorts of mysterious stuff and end up running the config script in Python 2. I can't seem to get it to use Python 3 for everything in the package build process even though it's all installed. Anyway the current version is working well. Hopefully these things will be easier by the time the ABC does the next major breakage. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On 28 April 2014 20:22, Jeremy Visser <jeremy@visser.name> wrote:
On 28/04/2014 19:33, Russell Coker wrote:
The new python-iview in GIT depends on Version 3+ of Python and the Debian/Wheezy Python build system doesn't seem designed for building that - or at least it's well beyong my Python coding ability.
I find that surprising. Python 3 is available in Debian Wheezy, and any of the dependency requirements should be easily installable through apt or pip.
Not sure what the latest version is, but if this the following file is anything to go by: https://github.com/vadmium/python-iview/blob/master/debian/rules ...then it uses pysupport (aka python-support) to for the Debian packaging. pysupport is considered obsolete, and AFAIK doesn't have (and never will have) Python 3 support. See: https://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tool... Also see: https://wiki.debian.org/Python/TransitionToDHPython2 This page only talks about dh_python2, there is also a dh_python3 for Python 3 support. -- Brian May <brian@microcomaustralia.com.au>

On 29/04/2014 09:31, Brian May wrote:
Not sure what the latest version is, but if this the following file is anything to go by then it uses pysupport (aka python-support) to for the Debian packaging. pysupport is considered obsolete, and AFAIK doesn't have (and never will have) Python 3 support.
I'm sure they'd accept a patch to get rid of that dependency!
participants (3)
-
Brian May
-
Jeremy Visser
-
Russell Coker