Changes between Version 60 and Version 61 of WikiStart


Ignore:
Timestamp:
12/13/21 11:16:40 (2 years ago)
Author:
Wouter Pasman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v60 v61  
    211211* Ensure you pip-installed the geniuswebcore (2.0.1 or higher)
    212212* The parties you want to run must be python-based (using GeniusWebPython, not GeniusWeb) and in your pythonpath. Typically by adding them to your PYTHONPATH environment variable.
    213 * The profiles you want to provide to the parties (alternatively you can refer to a profile on a running profile server)
    214 * You have a settings.json file containing the [source:geniuswebcore/geniusweb/protocol/session SessionSettings] eg SAOP Settings. [source:geniuswebcore/test/resources/settings.json view example file]. Easiest to get these files is probably to do {{{svn co https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWebPython/geniuswebcore/test/resources}}}
    215 * You have profiles for each party, eg jobs1.json and jobs2.json.
     213* The profiles and settings you want. To get them, you can do this:
     214 * do {{{svn co https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWebPython/geniuswebcore/test/resources}}}
     215 * Copy the profiles (eg the entire jobs directory) you want to use to your project
     216 * Copy a settings.json to your project.
     217* Edit the settings.json file:
     218 * Change the parties to your local party as needed
     219 * Change the profiles as needed
     220 * Change other settings as needed
    216221* Run {{{python -m geniusweb.simplerunner.NegoRunner settings.json}}}
    217222* The log will be written to stdout by default.
    218 * Extract the data from the line {{{INFO:protocol ended..:}}}. It's a json structure with the final state of the session.
    219 
    220 
     223* Extract the data from the line {{{INFO:protocol ended..:}}}. It's a json structure with the final state of the session. You can easily parse it to a python dict using pyson.
    221224
    222225