Archive for the ‘ubuntu’ Category

Nearly ready to release 1.5.0

Monday, April 29th, 2019

Version 1.5.0 is nearly ready to release and not before time ;-). The last release was 1.4.6 in January 2016 but the time since then has not been wasted. Here are some of the changes ready to go:

  • SOFA will be able to display worked examples for the following statistical tests:
    • Mann-Whitney U
    • Wilcoxon’s Signed Ranks
    • Spearman’s Rho
    • Pearson’s Chi Square
  • It will be possible to choose the number of decimal places to show in report tables and charts
  • SOFA will be able to display counts or percentage separately on pie charts
  • There will be better smoothed line will be displayed for line charts
  • Better visual separation of subtables
  • Charts will be able to show N
  • Improvements to darker themes
  • Numerous bug fixes

Under the hood, SOFA has had some major changes:

  • Python 3.6+ (Linux) / 3.7 (Windows)
  • wxPython GUI toolkit is 4.0 (up from 2.8)

Sadly, the 1.5.0 release will not include a Mac package but later versions might do depending on practical considerations and offers of packaging help from Mac users. A deb package is already generated for Ubuntu / Debian. A Windows package is nearly ready – SOFA works on Windows 10 and all the dependencies have been baked into an executable ready for the final stages of packaging.

It is expected there will be a few minor bugs slipping through given the scale of the changes underneath but the plan is to quickly release 1.5.1 with these mopped up.

Installing SOFA on Ubuntu 16.04 and 16.10

Friday, January 27th, 2017

tl;dr

echo "deb http://archive.ubuntu.com/ubuntu wily main universe" | sudo tee /etc/apt/sources.list.d/wily-copies.list

sudo apt update
sudo apt install python-wxgtk2.8
sudo rm /etc/apt/sources.list.d/wily-copies.list
sudo apt update
Download latest deb from http://www.sofastatistics.com/downloads.php
cd ~/Downloads
sudo dpkg -i sofastats-1.4.6-1_all.deb

Details

Even though SOFA is developed on Ubuntu (16.10 at present) there was a problem installing SOFA onto 16.04 or 16.10. The root cause related to Ubuntu support for different versions of wxPython and I spent a lot of time trying different solutions. Fortunately there is a simple workaround that only requires about six terminal commands (see below). Obviously, having to run commands is not as good as a standard installation but it will have to do for now because the main alternatives aren’t currently viable. E.g. some parts of SOFA don’t seem to play nicely with the packaged versions of wxPython 3.0. Snap packaging holds some promise but that will have to wait for later depending on the next releases of Ubuntu.

Thanks to bbobbo for finding a general solution to wxPython 2.8 installation problems on Ubuntu 16 and relating them to the specific SOFA problem and Domenico Somma for bringing it to my attention via the SOFA forum. Here are the steps (Solution from SOFA (statistics) – python 2.8 request – unable installation):

1. Add needed repository and update package list

echo "deb http://archive.ubuntu.com/ubuntu wily main universe" | sudo tee /etc/apt/sources.list.d/wily-copies.list

sudo apt update

2. Install it
sudo apt install python-wxgtk2.8

3. Remove repository entry and update package list again
sudo rm /etc/apt/sources.list.d/wily-copies.list

sudo apt update

4. Install SOFA Statistics
Download latest deb from http://www.sofastatistics.com/downloads.php

cd ~/Downloads

sudo dpkg -i sofastats-1.4.6-1_all.deb

5. Success?
sofastats

Extra info – Warning from http://askubuntu.com/questions/789302/install-python-wxgtk2-8-on-ubuntu-16-04 – “Following this method on large scale can lead to unmet dependency hell. So keep in mind this is similar to PPA’s.” This comment also has more details too about solving issues with broken packages.

0.8.6 supports PostgreSQL and has better output formatting

Monday, August 24th, 2009

New features:

  • Added support for PostgreSQL databases.
  • Each item of output now has a preceding display line and a description of its data source (database and table) and when it was created.
  • Improved layout of exported scripts.
  • Added unit tests for main statistical algorithms used.
  • Better handling of timestamp and autonumber fields in data entry/editing.

Bug fixes:

  • Fixed script export bug.

Additionally, the Windows package now installs a menu shortcut for uninstallation. It always should have, of course, but the latter is still an example of a little thing which makes newer versions of SOFA Statistics nicer to use. The idea is that, collectively, thousands of details like that will create a sense of polish. The Ubuntu 100 papercuts project is one inspiration.

wxPython hourglass cursor not working in Ubuntu

Monday, August 17th, 2009

The following code worked in Windows but not in Ubuntu:

# hourglass cursor

curs = wx.StockCursor(wx.CURSOR_WAIT)
self.SetCursor(curs)
Something happens that takes a while … … … …
# Return to normal cursor
curs = wx.StockCursor(wx.CURSOR_ARROW)
self.SetCursor(curs)

Use instead:

wx.BeginBusyCursor()
wx.EndBusyCursor()

NB good to use wx.IsBusy() with EndBusyCursor().  On Windows, ending a cursor if one is not running causes an error.

if wx.IsBusy():
    wx.EndBusyCursor()

Installation testing using VirtualBox snapshots

Thursday, May 28th, 2009

VirtualBox is brilliant.  You can set up Windows XP, Ubuntu Jaunty etc and test installations into them.  Then reset to snapshot and rinse and repeat.  Installing onto systems that are not “clean” is never as certain – perhaps you have already installed comtypes or whatever.

One tip for sharing files between a host OS and a Linux (Ubuntu) guest OS (see http://www.virtuatopia.com/index.php/VirtualBox_Shared_Folders).

Within the guest OS, make a directory e.g.

sudo mkdir /transfer

Then mount the shared folder you set up externally in VirtualBox using:
sudo mount -t vboxsf sharename mountpoint
in my case:
sudo mount -t vboxsf transfer /transfer
It is then easy to grab files from the host OS e.g. a deb package that needs to be installed.

Ubuntu packages the only Linux option

Thursday, May 28th, 2009

I have just watched a fascinating video entitled “Why Desktop Linux Sucks” by Bryan Lunduke (http://anotherubuntu.blogspot.com/2009/05/why-desktop-linux-sucks.html).  Desktop Linux works really well for me but Bryan makes a lot of important points.   I certainly agree that packaging is a big problem.  The approach I have taken for Linux installation with the SOFA Statistics project is to only release a deb package aimed at Ubuntu (http://www.sofastatistics.com/downloads.php).  I am already spending a lot of time packaging as it is and would like to spend more time developing new features.

Launchpad puts the Open into Open Source

Friday, May 22nd, 2009

I have made some more revisions of SOFA Statistics (bugs fixed, mainly regressions after refactoring).  Launchpad makes it easy to see every difference between the different versions.   http://bazaar.launchpad.net/~launchpad-p-s/sofastatistics/main/revision/5 Truly, nothing is hidden which shall not be revealed!  These are very powerful tools, all made available through the power of open source.

Working SOFA deb package under testing – release soon

Monday, May 11th, 2009

A working debian package has been created for the SOFA project.  It will be uploaded onto the installation page http://www.sofastatistics.com/wiki/doku.php?id=help:installation in the next few days once a few extra test installations have been completed.

Windows and OS X packages are on the agenda once wxWebKit has been packaged for those platforms.

Made first demo deb package successfully

Friday, May 8th, 2009

The instructions kindly provided by Horst Jens  at http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb were very helpful.  There are a few details I have to understand better but it all looks doable.  One gotcha when editing the rules file in gedit – tabs != spaces and manually added tabs are converted into spaces!  Copying and pasting tabs from elsewhere solved the problem.

Working on streamlining manual installation

Thursday, May 7th, 2009

Making sure that the program can be manually installed on a clean Intrepid/Jaunty system (see http://www.sofastatistics.com/wiki/doku.php?id=help:installation#ubuntu_linux_intrepid_or_jaunty) exposed a few issues which have now been resolved.  The default SQLite database now has 1500 records and is indexed.  One of the design goals for the project is easy installation and that is what is being worked on now.