XSF Discussion - 2013-04-11


  1. Lance

    Alex what's your preferred way to input ballot data and get the results?

  2. Alex

    currently its writing the output to an xml file

  3. Alex

    I can send you such an file

  4. Lance

    thanks!

  5. Alex

    I have written some own tools which parse this files, so it would be great when we can use this format for now, and then maybe later add some admin commands to the bot which replaces this tools and displays the results

  6. Lance

    right

  7. Lance

    is the ballot data an xml file as well?

  8. Kev

    I don't have strong opinions on (1) or (2) BTW, whichever's best for the people all around.

  9. kevin is shocked after reading about the facebook chat feature http://developers.facebook.com/docs/chat/

  10. Lance

    kevin which part shocked you?

  11. bear

    we should be able to get the bot running - if not we can always punt

  12. kevin

    they too use XMPP. :-s

  13. Alex

    Lance you have email

  14. Lance

    Alex thanks! do you have a ballot items xml file as well?

  15. Alex

    I will checkout the new code this evening and make tests

  16. Alex

    yes, forgot to send the input file, but I am flexible on this format

  17. Alex

    sent

  18. Lance

    got it. thanks again

  19. Alex

    thanks to you, for hacking on this stuff

  20. bear

    ugh - 0400

  21. bear

    time for me to turn into a pumpkin

  22. Alex

    ;-)

  23. bear

    lance - let me know what is needed and I'll work on that tomorrow (or whenever your ready)

  24. Lance

    bear basically, install redis

  25. bear

    pfft - I think I can handle that :)

  26. Alex

    Requirements of the bot are: 1) talk only to subscribed users /members, or a list of members from a file, what ever is easier for you. 2) read the questions from a configuration file, send then to the voter 3) write a result file when the voting is done

  27. Alex

    council voting is more complicated, but we don't need this now

  28. bear

    ouch - redis 1.2 - I think I'll install from tarball

  29. bear

    lance - redis 2.6 is running, localhost only, 2 db's defined, port 6379

  30. Lance

    thanks bear

  31. Lance

    now go to bed

  32. Lance

    :p

  33. bear

    :)

  34. Lance

    Alex: updated my memberbot to use a custom input file, and use the existing output file format

  35. Lance

    should be ready to roll out tomorrow

  36. Alex

    great stuff, let me know when there is a version for testing, Then I'll try to run and test it on athena

  37. Lance

    it should be ready for testing now if you pull master. just need to: 1) change JID/password in memberbot.py to whatever you need, 2) update data/xsf_roster.txt to include a jid you want to test with

  38. Lance

    and now it's late and i need to head to bed. night

  39. Alex

    ok thanks

  40. Alex

    I don't think redis is installed on athena, so I have to poke and admin

  41. bear

    alex - I installed redis earlier on athena

  42. Alex

    ok

  43. Alex

    Lance: I don't get the bot running

  44. Lance

    any errors?

  45. Alex

    what files must I copy to athena to get it running?

  46. Alex

    I checked out your github sources and copied them to athena, and checked out a sleekxmpp version

  47. Lance

    ok, then that should be good

  48. Alex

    sleekxmpp must be in a subdir?

  49. Lance

    no, just python setup.py install

  50. Lance

    also pip install redis

  51. Lance

    then in memberbot source: cd memberbot; python memberbot.py

  52. Lance

    and you can edit memberbot.py to use the proper jid/password

  53. Lance

    and edit data/xsf_roster.txt to include your own jid that you want to test voting with

  54. Alex

    ok, lemme try

  55. Alex

    gnauck@athena:/var/xsf/voting$ cd new_memberbot/ gnauck@athena:/var/xsf/voting/new_memberbot$ python memberbot.py Traceback (most recent call last): File "memberbot.py", line 11, in <module> import voting File "/var/xsf/voting/new_memberbot/voting.py", line 2, in <module> import redis ImportError: No module named redis

  56. Alex

    looks like redis is missing

  57. Alex

    but bear said he installed it on athena

  58. Lance

    you still need the python redis module

  59. Lance

    easy_install redis or pip install redis

  60. Alex

    Downloading/unpacking redis Downloading redis-2.7.2.tar.gz (50Kb): 50Kb downloaded Running setup.py egg_info for package redis Installing collected packages: redis Running setup.py install for redis Successfully installed redis Cleaning up...

  61. Alex

    but still same error message

  62. Kev

    Just whatever you do be careful where you start installing packages.

  63. Kev

    I believe we have virtualenv on athena, pointing at stuff in /usr/local/virtualenv

  64. Alex

    yup there is