Hello All,
After many iterations of building Pillow from source, I think I have a
solution that's working now. I have JTSDK Nix updated to do this when
the user runs $(MAKE) for Debian 8.0 and Ubuntu 14.10 only. Later
versions of Ubuntu do not seem to be a problem.
Windows seems fine sitting on v2.3.0, but, on the next JTSDK upgrade
2.0.1 or whatever it will be, maybe pushing up to / past Pillow v2.8.1
would be wise.
In a nutshell, you should simply install whatever version of Pillow is
in the repo for that distro. For Debian 8.0 and Ubuntu 14.10, that is
v2.6.1 unfortunately.
So the base packages are:
-
python3-pil python3-pil.imagetk python3-tk
-
After installing the base packages, add the required Pillow build
dependencies, for Debian 8.0 (which works on Raspbian also) and Ubuntu
14.10, that would be:
-
libfreetype6-dev libjpeg-dev liblcms2-dev libtiff5-dev libwebp-dev \
libwebpmux1 mime-support tcl8.6-dev tk8.6-dev zlib1g-dev'
-
Following the dependency installation, install Pillow from the terminal
using pip3:
sudo pip3 install --upgrade pillow
The --upgrade flag is important, as you would already have Pillow installed.
You could specify a version if you wish, using pillow==2.8.1 for
example, but I chose to let pip3 sort it out.
After install/upgrade, rebuild WSJT or WSPR from the JTSDK build menu.
I tested WSJT FSK441 wav files and left it in monitor with no failures.
WSPR fires up and runs OK.
I've not isolated the exact issue in v2.6.1, but it's only a problem
long term for Debian 8.0 (Jessie) until the Pillow package is upgraded.
At the moment, due to their pending release, pkg updates are in a freeze
mode , unless it's deemed critical.
Ubuntu 14.10 is a short term support release, end of life date is July
2015, and 15.04 is due out on April 28th I believe.
If anyone has troubles with upgrading Pillow through JTSDK, just send a
message to the devel-list, I'm sure we can get it sorted out.
73's
Greg, KI7MT
On 04/14/2015 05:59 PM, KI7MT wrote:
Hi Alan,
I've not tried 2.6.2 as that version ins't in the Debian / Ubuntu repo's
but it is in PyPi ( via pip3 install):
https://pypi.python.org/pypi/Pillow/2.6.2
I tried to stay with versions I could compare with Native packages, with
the exception of 2.5.3.
Debian (8.0 Jessie) == Ubuntu (14.10 Utopic) is at:
https://packages.debian.org/jessie/python3-pil v2.6.1
I've not tested the Raspbian (8.0 Jessie) on the RPI2, but their
packaging seems to follow closely with Debian core, apart from the
Raspbian specific components.
73's
Greg, KI7MT
On 04/14/2015 04:42 PM, Alan VK2ZIW wrote:
Hi Greg,
Fedora 21 now cones with: python3-pillow.armv7hl 2.6.2-1.fc21
So, does 2.6.2 work?
I'm not sure as I've upgraded pillow using pip to 2.7.0.
/usr/lib/python3.4/site-packages/Pillow-2.7.0-py3.4.egg-info
Today, I did a yum update and I now have
/usr/lib/python3.4/site-packages/Pillow-2.6.2-py3.4.egg-info
dated Apr 15 07:20
Today,
wsjt10 runs fine via RDP session, (headless, there is no Mali driver yet)
Back on Jan 15, there was, when the Banana Pi was loaded, pillow 2.6.1.
Keep Smiling
Alan VK2ZIW
On Tue, 14 Apr 2015 10:50:28 -0600, KI7MT wrote
Hello All,
While updating WSJT/WSPR build documentation, I've come full circle
on the Python3-Pillow 2.6.1 segfault problem that many have
reported. I'm need of assistance in trying to debug / generate a
work around, as this has gone well past my level of knowledge with Python.
This issue affects both Windows and *Nix, but seems to be isolated
to the Pillow 2.6.1.
THE PROBLEM
When using Pillow 2.6.1, WSPR and WSJT will both segfault, almost
immediately, either at decode time for WSPR ( sample *.wav file or T=50
to 55 of the 2min cycle ) or at the end of the first FSK441 cycle (
first whole minute? ) with WSJT. Neither application present the
issue when using Pillow or 2.6.1 on my test distro's.
TESTING PERFORMED
I've performed several tests with various versions of Pillow, primarily
on Linux. On my Ubuntu based installs, after installing JTSDK Nix, those
distros using python3-pil 2.6.1 ( Ubuntu 14.10, Debian Jessie for
example ) will build correctly but fail as above.
Removing python3-pil and python3-pil.imagetk, installing the required
build dependencies:
libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev
libwebp-dev tcl8.6-dev tk8.6-dev
then installing ( via pip3 ) Pillow==2.5.3, ==2.7.0 or ==2.8.1 ( the
latest Pillow release ), neither WSJT nor WSPR present the segfault.
At this point, I would think the import instructions in WSPR.py an
WSJT.py are OK, but I don't know where or how to take this any further.
Without getting this resolved, we will not be able to update WSJT / WSPR
in any distro using Pillow 2.6.1 as the default package (Ubuntu 14.10
and Debian Jessie at present ). I believe there are Fedora based distros
also using Pillow-2.6.1, but I am not as familiar with