Comment 1 for bug 396985

Revision history for this message
Hendrik (mostricht) wrote :

Hi everybody,
i am pretty sure, the bug/problem as described in the two links above is solved by now!

But first things first...

1.)
There is a bug in the docu:
When installing the wrowser, section "Adding the wrowser-plugin into playground.py" (http://docs.openwns.org/gettingStarted/wrowser.html), there is a wrowser missing!
Assuming the [path to the wrowser] is the same as above in [AdditionalPluginPaths], an additional "wrowser" has to be added to the pythonpath (at least on my machine...)

export PYTHONPATH=${PYTHONPATH}:[path to the wrowser]/wrowser

2.)
Postgresql version <= 8.2.11 works fine, whereas version 8.3.xx doesn't.
Downgrading helps!

3.)
There is a major bug in "campaignConfiguration.py" in the folder "myOpenWNS/tests/system/wifimac-tests/PyConfig/experiment1".
According to the UserGuide (http://docs.openwns.org/usersGuide/modules/dll/wifimac/experiment1.html) this file needs to be copied into the simulations directory "myFirstCampaign/experiment1" (ot whatever you have called your campaign).
Line 50 says "from pywns.simdb.Parameters import Parameters, Bool, Int, Float, String" - this is the root of all evil :-)

Change this line to "from wrowser.simdb.Parameters import Parameters, Bool, Int, Float, String" or just pywns to wrowser everything is fine!

Don't know if the other experiment files exhibit this bug too...

4.)
And now for something completely different...
You could add a little hint in the docu, section "Adding a database user, 5" when executing the "./createUser.py".
A user is created according to the current user, e.g. if you are logged in as root, a user named root is created. To create a user named postgres, you have to be logged in as postgres by tipping "su postgres". According to the docu, after having typed "exit" in section 4, you are back to the roots...