Table Of Contents

Previous topic


Next topic

First Steps with FunkLoad

This Page


This document describes how to install the FunkLoad tool.

Debian and Ubuntu quick installation

With Debian Lenny or Ubuntu 8.10, 9.04, 10.04 ..., you can install the latest snapshot this way

sudo aptitude install python-dev python-setuptools \
     python-webunit python-docutils gnuplot
sudo aptitude install tcpwatch-httpproxy --without-recommends
sudo easy_install -f -U funkload

To install the latest stable release replace the last line with

sudo easy_install -U funkload

If you want to use the distributed mode (since 1.14.0) you need to install paramiko and virtualenv

sudo aptitude install python-paramiko python-virtualenv

That’s all.

Note that Debian Squeeze, includes FunkLoad 0.13.0 package that can be installed this way:

sudo aptitude install python-webunit funkload

CentOS quick installation

As root

yum install python-setuptools python-docutils gnuplot python-devel make
tar xzvf tcpwatch-1.3.tar.gz
cd tcpwatch
python install
easy_install webunit
easy_install -f -U funkload

Windows installation

  • Install Python 2.7

  • Install Gnuplot

  • Install distutils (easy_install)

    easy_install docutils
    easy_install webunit
    # get
    # unzip and run
    python install
    easy_install -f -U funkload

Generic installation (all OS)

Some parts are OS specific:

  • the monitor server works only on Linux
  • the credential server is a unix daemon but can run on windows if launched in debug mode (using startd instead of start)

Under windows there is a trick to install docutils (see below), you may also rename the scripts with a .py extension.

Required packages

  • libexpat1 (should not be required on recent OS)

  • funkload 1.14.0 requires python >= 2.5

  • python 2.4 is required by the test runner only if you want to launch python doctest, other stuff work fine with a python 2.3.5. python >= 2.5 are supported with funkload > 1.6.0

  • python distutils

  • python xml

  • EasyInstall, either use a package or download, and run it:

    cd /tmp
    sudo python

    This will download and install the appropriate setuptools egg for your Python version.

Optional packages

  • To avoid soiling your system’s Python modules and dependencies, it’s a good practice to use a virtualenv to confine what’s needed only for FunkLoad.

    For example for Debian/Ubuntu here is what to do to use virtualenv:

    sudo aptitude install python-virtualenv
  • To produce charts with FunkLoad >= 1.9.0: gnuplot 4.2, either use a package or visit the site.

    gnuplot (or wgnuplot for win) must be in the executable path.

  • The recorder use TCPWatch which is not yet available using easy_install:

    cd /tmp
    tar xzvf tcpwatch-1.3.tar.gz
    cd tcpwatch
    python build
    sudo python install

Different installation flavors

Easy installation

  • Install the latest stable package:

    sudo easy_install -U funkload

    This will install FunkLoad, webunit and docutils eggs.

  • Install the latest snapshot version:

    sudo easy_install -f -U funkload

Installation from source

You can install from source, typically to test/use the development version (which may be unstable).

First to avoid soiling your system’s Python modules and dependencies, it’s a good practice to use a virtualenv to confine what’s needed only for FunkLoad. Especially if you are experimenting and developing.

This approach is also handy if you don’t have sudo power.

So let’s install a virtualenv dedicated to Funkload in, let’s say, ~/opt:

mkdir --parent ~/opt
virtualenv ~/opt/funkload.virtualenv
. ~/opt/funkload.virtualenv/bin/activate

Then you can cleanly build and install Funkload:

git clone git://
cd FunkLoad/
python build
python install

Now everytime you want to use the version of FunkLoad you’ve built, you will have to specify which virtualenv to use:

. ~/opt/funkload.virtualenv/bin/activate
fl-run-test --version

Alternatively it’s possible to do the following to not use a virtualenv (but you’ve been warned):

git clone git://
cd FunkLoad/
python build
sudo python install

Installation with buildout

This approach might be handy if you don’t have sudo power.

Get the FunkLoad package from pypi: or a snapshot from:

Then use the buildout:

tar zxf funkload-1.14.0.tar.gz
cd funkload-1.14.0

Then your executable are ready on the bin directory.

Installation without network access

Transfer all the archives from in a directory:

mkdir -p /tmp/fl
cd /tmp/fl
wget -r -l1 -nd

Transfer the latest FunkLoad package

# get setuptools package and untar
python install

easy_install docutils*
easy_install tcpwatch*
easy_install webunit*
easy_install funkload*

Test it

Install the FunkLoad examples:


Go to the demo/xmlrpc folder then:

cd funkload-demo/xmlrpc/
make test

To test benching and report building just:

make bench

See funkload-demo/README for others examples.

Problems ?

  • got a

    error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

    Install python2.4-dev package.

  • easy_install complains about conflict:

    Note: you can attempt this installation again with EasyInstall, and use
    either the --delete-conflicting (-D) option or the
    --ignore-conflicts-at-my-risk option, to either delete the above files
    and directories, or to ignore the conflicts, respectively.  Note that if
    you ignore the conflicts, the installed package(s) may not work.
    error: Installation aborted due to conflicts

    If FunkLoad, webunit or docutils were previously installed without using EasyInstall. You need to reinstall the package that raises the conflict with the --delete-conflicting option, see easy_install documentation.

  • If you still have conflict try to remove FunkLoad from your system:

    easy_install -m funkload
    rm -rf /usr/lib/python2.3/site-packages/funkload*
    rm -rf /usr/local/funkload/
    rm /usr/local/bin/fl-*
    rm /usr/bin/fl-*

    then reinstall

  • easy_install ends with:

    error: Unexpected HTML page found at

    Source Forge has changed their donwload page you need to update your setuptools:

    sudo easy_install -U setuptools
  • Failed to install docutils 0.4 with easy_install 0.6a9 getting a:

    Best match: docutils 0.4
    Requesting redirect to (randomly selected) 'mesh' mirror
    error: No META HTTP-EQUIV="refresh" found in Sourceforge page at

It looks like sourceforge change their download page again :(

  • When testing make test return

    ### credentialctl: Stopping credential server.
    python: can't open file '/usr/lib/python2.4/site-packages/funkload-1.2.0-py2.4.egg/funkload/': [Errno 20] Not a directory

    Starting with FunkLoad 1.2.0 scripts are installed in /usr/bin, previously they were in /usr/local/bin, you need to remove them:

    sudo rm /usr/local/bin/fl-*
  • While runing a test you got

    Traceback (most recent call last):
    File "/usr/local/bin/fl-run-test", line 8, in <module>
      load_entry_point('funkload==1.11.0', 'console_scripts', 'fl-run-test')()
    File "build/bdist.linux-i686/egg/funkload/", line 478, in main
    File "build/bdist.linux-i686/egg/funkload/", line 337, in __init__
    File "build/bdist.linux-i686/egg/funkload/", line 347, in loadTests
    File "/usr/lib/python2.6/", line 2412, in DocFileSuite
      suite.addTest(DocFileTest(path, **kw))
    File "/usr/lib/python2.6/", line 2331, in DocFileTest
      doc, path = _load_testfile(path, package, module_relative)
    File "/usr/lib/python2.6/", line 219, in _load_testfile
      return open(filename).read(), filename
    IOError: [Errno 2] No such file or directory: 'path/to/your/testcase'

    This means that your test file can not be loaded as a python module, (may be due to import error) FunkLoad then badly report it as an invalid doc test file.

    To view the original error just run the testcase using python instead of fl-run-test (python

    This is fixed since 1.14.