XSF Discussion - 2013-04-11


  1. Jef has left

  2. Jef has joined

  3. Jef has left

  4. Jef has joined

  5. Lance has left

  6. Jef has left

  7. Jef has joined

  8. Lance has left

  9. Jef has left

  10. Jef has joined

  11. Jef has left

  12. Jef has joined

  13. Jef has left

  14. Jef has joined

  15. Jef has left

  16. Jef has joined

  17. Jef has left

  18. Lance has joined

  19. Lance has left

  20. Lance has joined

  21. Neustradamus has left

  22. jabberjocke has left

  23. Neustradamus has joined

  24. Neustradamus has left

  25. Neustradamus has joined

  26. kevin has joined

  27. kevin has left

  28. kevin has joined

  29. Alex has joined

  30. jabberjocke has joined

  31. kevin has left

  32. kevin has joined

  33. kevin has left

  34. kevin has joined

  35. Lance

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

  36. Alex

    currently its writing the output to an xml file

  37. Alex

    I can send you such an file

  38. Lance

    thanks!

  39. 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

  40. Lance

    right

  41. Lance

    is the ballot data an xml file as well?

  42. Kev

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

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

  44. Lance

    kevin which part shocked you?

  45. bear

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

  46. kevin

    they too use XMPP. :-s

  47. Alex

    Lance you have email

  48. Lance

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

  49. Alex

    I will checkout the new code this evening and make tests

  50. Alex

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

  51. Alex

    sent

  52. Lance

    got it. thanks again

  53. Alex

    thanks to you, for hacking on this stuff

  54. bear

    ugh - 0400

  55. bear

    time for me to turn into a pumpkin

  56. Alex

    ;-)

  57. bear

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

  58. Lance

    bear basically, install redis

  59. kevin has left

  60. bear

    pfft - I think I can handle that :)

  61. 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

  62. Alex

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

  63. bear

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

  64. bear

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

  65. Lance

    thanks bear

  66. Lance

    now go to bed

  67. Lance

    :p

  68. bear

    :)

  69. Neustradamus has left

  70. Alex has left

  71. Alex has joined

  72. Neustradamus has joined

  73. Neustradamus has left

  74. Neustradamus has joined

  75. Neustradamus has left

  76. Neustradamus has joined

  77. Lance

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

  78. Lance

    should be ready to roll out tomorrow

  79. Alex

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

  80. 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

  81. Lance

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

  82. Alex

    ok thanks

  83. Alex

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

  84. Alex has left

  85. Alex has joined

  86. Nÿco has joined

  87. Lance has left

  88. bear

    alex - I installed redis earlier on athena

  89. kevin has joined

  90. kevin has left

  91. Alex

    ok

  92. jabberjocke has left

  93. Alex has left

  94. Alex has joined

  95. Alex has left

  96. Alex has joined

  97. Alex has left

  98. Alex has joined

  99. ralphm has left

  100. Alex has left

  101. Alex has joined

  102. Ashley has joined

  103. Ashley has left

  104. Ashley has joined

  105. Ashley has left

  106. jabberjocke has joined

  107. Neustradamus has left

  108. Neustradamus has joined

  109. Alex has left

  110. Alex has joined

  111. Ashley has joined

  112. Alex has left

  113. Ashley has left

  114. Neustradamus has left

  115. Neustradamus has joined

  116. Ashley has joined

  117. Ashley has left

  118. jabberjocke has left

  119. Ashley has joined

  120. Ashley has left

  121. Ashley has joined

  122. jabberjocke has joined

  123. Lance has joined

  124. jabberjocke has left

  125. Ashley has left

  126. Ashley has joined

  127. Ashley has left

  128. Ashley has joined

  129. Alex has joined

  130. Lance has left

  131. kevin has joined

  132. Alex

    Lance: I don't get the bot running

  133. Lance

    any errors?

  134. Alex

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

  135. Alex

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

  136. Lance

    ok, then that should be good

  137. Alex

    sleekxmpp must be in a subdir?

  138. Lance

    no, just python setup.py install

  139. Lance

    also pip install redis

  140. Lance

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

  141. Lance

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

  142. Lance

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

  143. Alex

    ok, lemme try

  144. 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

  145. Alex

    looks like redis is missing

  146. Alex

    but bear said he installed it on athena

  147. Lance

    you still need the python redis module

  148. Lance

    easy_install redis or pip install redis

  149. kevin has left

  150. 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...

  151. Alex

    but still same error message

  152. Kev

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

  153. Ashley has left

  154. Kev

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

  155. Alex

    yup there is

  156. Kev has left

  157. Alex has left

  158. Ashley has joined

  159. jabberjocke has joined

  160. Ashley has left

  161. Ashley has joined

  162. Ashley has left

  163. Nÿco has left

  164. Jef has joined

  165. Jef has left

  166. Jef has joined

  167. Ashley has joined

  168. Ashley has left

  169. Ashley has joined

  170. Ashley has left

  171. Ashley has joined

  172. Ashley has left

  173. Ashley has joined