5x12 pentomino tiling
«

HMRC BPT on Yakkety Yak

»

HMRC provide some software for small employer called Basic PAYE Tools (BPT) and it runs on Linux, which is cool as we're usually forgotten about.

HMRC Basic Payment Tools

I recently upgraded my desktop PC, which is the one which runs BPT, and was depressed to find that it no longer worked, failing thus:

Traceback (most recent call last): File "/home/teamcity/tools/python-2.7.10/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> File "main.py", line 47, in <module> File "main.py", line 11, in main File "/home/teamcity/BuildAgent/work/92574102faf30229/src-copy/django_offline/__init__.py", line 11, in <module> File "ExtensionLoader_PyQt4_QtGui.py", line 11, in <module> ImportError: libpng12.so.0: cannot open shared object file: No such file or directory

Bugger. A quick review of their documentation suggested I might simply need to install some missing packages, especially 32 bit ones as it's a 32 bit app. So I did all that. No help.

Turns out that Ubuntu 16.10 (Yakkety Yak) comes with libpng16 not libpng12 however some Googling about lead me to a possible solution and hence this post to make it easier for the next person caught out by this.

Ubuntu 16.04 (Xenial Xerus) did come with libpng12 so if you wander over to http://packages.ubuntu.com/xenial/libpng12-0 you can grab the .deb files you need from one of the mirrors. If, like me, you're on an amd64 architecture you need to grab and install that first, then the i386 one.

So here's the steps in total (using the dk Ubuntu mirror and working as root - I've edited out the output from wget while it collects the files):

# cd /tmp # wget http://dk.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb # wget http://dk.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_i386.deb

# dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb Selecting previously unselected package libpng12-0:amd64. (Reading database ... 222736 files and directories currently installed.) Preparing to unpack libpng12-0_1.2.54-1ubuntu1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ... Setting up libpng12-0:amd64 (1.2.54-1ubuntu1) ... Processing triggers for libc-bin (2.24-3ubuntu2) ...

# dpkg -i libpng12-0_1.2.54-1ubuntu1_i386.deb Selecting previously unselected package libpng12-0:i386. (Reading database ... 222748 files and directories currently installed.) Preparing to unpack libpng12-0_1.2.54-1ubuntu1_i386.deb ... Unpacking libpng12-0:i386 (1.2.54-1ubuntu1) ... Setting up libpng12-0:i386 (1.2.54-1ubuntu1) ... Processing triggers for libc-bin (2.24-3ubuntu2) ... #

It's as simple as that. It seems to be working fine now. All ready for me to do the year end processing next month.

Tags: linux, work Written 22/02/17

Comment on this article

«
You can follow these posts on Twitter at @Wibblings
»
I am currently reading:

Faster, Higher, Farther by Jack Ewing The World of Mr Mulliner by PG Wodehouse

(?)
Word of the Day:
fakelore