You are not logged in.

#1 2009-10-31 20:39:55

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 61

[ REQUEST ] SOFA Statistics open for all

Is there somebody who could make a PKGBUILD for this program? http://www.sofastatistics.com/home.php

Sourcecode is hosted on launchpad.

A big thanks.

Offline

#2 2009-12-21 02:19:13

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

Re: [ REQUEST ] SOFA Statistics open for all

I would also like to have this package as a PKGBUILD. Many thanks to anyone who can help.


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#3 2009-12-22 15:18:27

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [ REQUEST ] SOFA Statistics open for all

I will try this evening.

Offline

#4 2009-12-23 04:32:14

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

Re: [ REQUEST ] SOFA Statistics open for all

@stefan

http://groups.google.com/group/sofastat … fa6baf50d8?

That could help you. I am a novice when it comes to trying to build packages, so any help is much appreciated. this software looks like being a good statistics tool for Linux users.

Thanks for helping out.


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

#5 2009-12-23 05:07:14

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [ REQUEST ] SOFA Statistics open for all

It seems there is wxwebkit needed, which is not packaged yet.

edit: I was not aware of your last post. At the end of the given link it is clearly stated that wxwebkit is needed. So I have to write a PKGBUILD for that first.

Last edited by Stefan Husmann (2009-12-23 05:11:29)

Offline

#6 2009-12-26 12:52:14

pyGrant
Member
Registered: 2009-12-26
Posts: 3

Re: [ REQUEST ] SOFA Statistics open for all

Hi - Grant Paton-Simpson here, lead developer of SOFA Statistics.  If there is anything I can do to help please feel free to ask.  There is currently a thread on the topic at http://groups.google.com/group/sofastat … f08a991899. I don't know anything about Archlinux packaging but I do know which libraries are required, which modules, and a bit about the status of wxWebKit.  The first of a new series of releases (0.9.0) will be out soon so there will be a few modules added (e.g. normal.py), a few removed (e.g. output_buttons.py), and a few renamed (e.g. gen_config.py -> config_dlg.py and config.py -> config_globals.py).  Plus there should be some new images.  The matplotlib library will also start being used.

If anyone does wish to make Archlinux packages, I could include that in my routine release process.  At present, there are a couple of releases a month so anyone taking this on would probably want to automate the process somehow.  Should this occur, it would be possible to grab modules from the launchpad site at http://bazaar.launchpad.net/~launchpad- … main/files.  I could then add any completed package to the sourceforge site https://sourceforge.net/projects/sofastatistics/files/ and link to it from http://www.sofastatistics.com/downloads.php.

Offline

#7 2009-12-27 13:45:05

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [ REQUEST ] SOFA Statistics open for all

So far I got a PKGBUILD for wxwebkit

# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=wxwebkit
pkgver=20091223
pkgrel=1
pkgdesc="WebKit for wxWidgets"
arch=('x86_64')
url="http://wxwebkit.wxcommunity.com/index.php"
license=('GPL')
depends=('wxpython')
conflicts=('libwebkit')
provides=('libwebkit')
makedepends=('git')
_gitroot="git://gitorious.org/wxwebkit/wxwebkit.git"
_gitname="wxwebkit"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull $_gitroot
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #

  ./autogen.sh || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR=$pkgdir install  || return 1
}

and for sofa-statistics

# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=sofastatistics
pkgver=196
pkgrel=1
pkgdesc="statistics, analysis, and reporting program"
url="http://www.sofastatistics.com/home.php"
license=('AGPL')
depends=('python' 'python-pysqlite' 'wxpython' 'wxwebkit')
makedepends=('bzr')
options=('docs' '!emptydirs')
arch=('i686' 'x86_64')
source=($pkgname.desktop sofa.sh)
md5sums=('95865cacab74d5ebb70dac800c1298cd' '56ae4f987f7cf917f24d336c84b684db')
_bzrtrunk=lp:$pkgname
_bzrmod=$pkgname

build() {
  if [ -d ${_bzrmod}/.bzr  ]; then
    msg "fetching only new files"
    cd ${_bzrmod}
    bzr pull ${_bzrtrunk} 
    msg "Local repository updated."
    cd ..
  else
    msg "fetching branch"
    bzr checkout  ${_bzrtrunk}     
    msg "Local repository updated."
  fi

  msg "checkout done"
  msg "starting build ..."

  [ -d $srcdir/${_bzrmod}-build ] && rm -rf $srcdir/${_bzrmod}-build
  cp -r $srcdir/${_bzrmod} $srcdir/${_bzrmod}-build

  # Build
  
  install -d $pkgdir/usr/lib/python2.6/site-packages/$pkgname
  cp -r $srcdir/$pkgname $pkgdir/usr/lib/python2.6/site-packages/ || return 1
  rm -rf $pkgdir/usr/lib/python2.6/site-packages/$pkgname/.bzr
  install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  install -Dm755 $srcdir/sofa.sh $pkgdir/usr/bin/sofa
}

The build succeeds but running sofa gives an error message

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/sofastatistics/start.py", line 30, in <module>
    import full_html
  File "/usr/lib/python2.6/site-packages/sofastatistics/full_html.py", line 33, in <module>
    import wx.webview
ImportError: No module named webview

The same error message appears when building without wxwebkit, so maybe the mistake is to be searched there.

Offline

#8 2009-12-27 21:18:00

pyGrant
Member
Registered: 2009-12-26
Posts: 3

Re: [ REQUEST ] SOFA Statistics open for all

Sounds like you're making real progress.  Re: webview, I have seen that error in the past and I think it is to do with the wxWebKit package.  The two people who know the most about the wxWebKit build process are Christoph Willing and Kevin Ollivier and they have been really helpful.  If you email me off-list at "grant at sofastatistics dot com" I can provide you with contact details etc.  My progress on SOFA Statistics is about to slow down for a week but 0.9.0 is well under way.

Offline

#9 2010-11-07 19:44:30

pyGrant
Member
Registered: 2009-12-26
Posts: 3

Re: [ REQUEST ] SOFA Statistics open for all

Finally, some major progress.  SOFA Statistics has been successfully installed on a couple of non-Ubuntu Linux distros recently (Fedora 14 and openSUSE 11.3) - details can be found here http://www.sofastatistics.com/wiki/doku … stallation.  The next release (0.9.22) includes an INSTALL.sh script which copies all the necessary Python scripts to the right folders and makes a symlink so that the single word command sofastats will open the program.  The main thing is to ensure that Arch Linux packages are available for the dependencies e.g. matplotlib.  The challenges with wxwebkit are gone.  Here are the packages required and what they are called in 3 different distros.  If someone could let me (grant@sofastatistics.com) know the Arch Linux equivalents I can add them to the official SOFA documentation.

In Ubuntu SOFA requires:

    *      python (>= 2.6.2),
    *      wx-common (>= 2.8.9.2),
    *      python-wxversion (>= 2.8.9.2),
    *      python-wxgtk2.8 (>= 2.8.9.2),
    *      python-numpy (>= 1:1.2.1),
    *      python-pysqlite2 (>= 1.0.1),
    *      python-mysqldb (>= 1.2.2),
    *      python-pygresql (>= 1:4.0),
    *      python-matplotlib

In Fedora 14 I installed the following successfully:

    *      Python was already there
    *      wxPython-2.8.11… and that brought with it some other packages needed.
    *      numpy-1:1.4.1…
    *      python-sqlite2-1:2.3.5…
    *      MySQL-python-1.2.3…
    *      PyGreSQL-3.8.1…
    *      python-matplotlib-1.0.0…

In openSUSE 11.3 I installed the following successfully AFTER I had added the community devel:languages:python and education repositories:

    *      python-wxGTK 2.8.10.1…
    *      python-numpy (NB to upgrade the existing version 1.3… to the later education repo version 1.5… - see Python matplolib on openSUSE)
    *      python-mysql 1.2.2-90.1
    *      PyGreSQL 3.8.1…
    *      python-matplotlib 1.0.0…
    *      python-sqlite2 2.6.0…
    *      python-webkit (upgraded)
    *      python-webkitgtk 1.1.8… (to avoid error about backend_wxagg module being missing)

Offline

Board footer

Powered by FluxBB