preparecampaign psycopg2.IntegrityError: null value in column "id" violates not-null constraint
Bug #396985 reported by
Daniel Bültmann
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openWNS Wrowser |
Triaged
|
High
|
Unassigned |
Bug Description
There is a problem with the preparecampaign plugin for playground.py. Both questions below describe the problem.
https:/
https:/
Here at ComNets we were not able to directly reproduce the error. We must check if it is a problem with the database creation as Maciej suggested. If it is the case we need to join the database creation with the preparesimcampaign plugin and provide much better error handling and reporting.
I filed these problems as a bug because (at least) the reporting is much to cryptic and does not give any hint on the "real" source of the problem.
description: | updated |
To post a comment you must log in.
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.) docs.openwns. org/gettingStar ted/wrowser. html), there is a wrowser missing! inPaths] , an additional "wrowser" has to be added to the pythonpath (at least on my machine...)
There is a bug in the docu:
When installing the wrowser, section "Adding the wrowser-plugin into playground.py" (http://
Assuming the [path to the wrowser] is the same as above in [AdditionalPlug
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.) uration. py" in the folder "myOpenWNS/ tests/system/ wifimac- tests/PyConfig/ experiment1" . docs.openwns. org/usersGuide/ modules/ dll/wifimac/ experiment1. html) this file needs to be copied into the simulations directory "myFirstCampaig n/experiment1" (ot whatever you have called your campaign). Parameters import Parameters, Bool, Int, Float, String" - this is the root of all evil :-)
There is a major bug in "campaignConfig
According to the UserGuide (http://
Line 50 says "from pywns.simdb.
Change this line to "from wrowser. simdb.Parameter s 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...