Compiling WSPR on Ubuntu 12.10 and 13.04 alpha


Last year I tried to compile WSPR on my Medion Akoya Netbooks, under ubuntu 10.x, 11.x and 12.04 without any success. I remember the error messages like 'cannot import name w' or a string-to-float conversion problem and so on. Compiling or using the .deb package and running 'python' in the wspr directory under Debian 6 however was no problem, though I didn't test the CAT function.
By the way, Ubuntu 12.10 with kernel 3.5 does not run on the Akoya 1230, but Ubuntu 13.04 alpha with kernel 3.7 can be installed without a crash of the x server. On the other hand both Ubuntu versions work without problems on the Akoya 1210 and 1312.

At first I installed a fresh ubuntu system 12.10 and 13.04 alpha resp. and some other programs I need like gnome-environment, synaptic, gnome-schedule, wsjt and fldigi.
The CAT function of WSPR is a must-have for me and so at first I intended to install virtualbox with Windows XP, but finally I decided to compile WSPR again, and it worked!

The known procedure was as follows:
$ sudo apt-get install subversion python2.7-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev libhamlib-utils
$ svn co
$ cd wspr
$ ./configure --with-portaudio-lib-dir=/usr/lib/i386-linux-gnu/
$ make
(may be some warnings and errors, but no interrupt)
WSPR runs with
'python' in the wspr directory

To use the CAT function you must have installed libhamlib-utils and the usb to serial converter working (dev/ttyUSB0). (The correct detection and allocation of the converter you can find in the kernel log with the command 'dmesg').
Finally you have to add the group 'dialout' to user.
And so WSPR 4.0 (r2874) works for me starting together with ntpdate and fldigi.

Two annoying probably hardware related problems remain: audio output does not start until I click in ubuntu's audio vulume menue, the adjustment of the display's brightness does not work, neither with the Fn keys nor with the ubuntu system settings 'Brightness and Lock'.

73, Wolfgang DL8YCA    2013-01-25


addendum 2013-03-07

 It's really a pain with Ubuntu and WSPR!

After updating Ubuntu 13.04 alpha last week WSPR doesn't work correctly any more. Changing from RX to TX status the WSPR window freezes, but TX with CAT works on.
Error Message:
Exception in Tkinter callback
Traceback (most recent call last):

  File "/usr/lib/python2.7/lib-tk/", line 1473, in __call__ return self.func(*args)
  File "/usr/lib/python2.7/lib-tk/", line 534, in callit     func(*args)
  File "", line 1228, in update
    draw.text((x,148),tw[i],fill=253)        #Insert time label
  File "/usr/lib/python2.7/dist-packages/PIL/", line 256, in text
    ink, fill = self._getink(fill)
  File "/usr/lib/python2.7/dist-packages/PIL/", line 144, in _getink
    if self.palette and not Image.isNumberType(ink):
AttributeError: 'module' object has no attribute 'isNumberType'

Very angry about this without further ado I commented out the following lines in

1228 draw.text((x,148),tw[i],fill=253)        #Insert time label
1229                if i<len(fw):
1230                    draw.text((x+10,1),fw[i],fill=253)   #Insert band label

And.. WSPR worked again.

Let's see what'll happen next!

Wolfgang,  DL8YCA