Gajim - 2017-03-20


  1. Ge0rG lovetox> i send a message to my other resource, and get a carbon copy aswell? sending a message to yourself causes two carbon events: one is a 'sent' carbon to all but your sending client, and one is a 'received' carbon to all but your receiving client(s)
  2. potito www.techfacile.it
  3. lovetox_ Ge0rG, yeah i figured this out now
  4. lovetox_ i thought there is maybe a exception made for when you send yourself something
  5. lovetox_ that also the sending client is excluded from the received cc
  6. lovetox_ but it seems there is none such exception made
  7. lovetox_ which leads me to the akward situation that when i write to my own bareJID
  8. lovetox_ the server chooses the most active resource (?!) which is the resource from which is send the message
  9. lovetox_ so i get a message from my own
  10. lovetox_ and a received carbon copy
  11. lovetox_ which i must both drop
  12. lovetox_ hm prosody doesnt send me the received cc correctly
  13. lovetox_ but ejabbered does
  14. potito italians here?
  15. lovetox_ hm no my fault, ejabbered does it also right
  16. lovetox_ it seems hard to get gajim to sent to a barejid, it just randomly selects a resource sometimes
  17. Ge0rG lovetox_: why do you need to drop the copy?
  18. Ge0rG lovetox_: if you write to yourself, you can just show the message to yourself followed by the message by yourself:
  19. Ge0rG Ge0rG> hi Ge0rG! Ge0rG> hi Ge0rG!
  20. lovetox_ no i dont want that
  21. lovetox_ it should only show once
  22. Ge0rG of course one could change XMPP to filter messages-to-self from your own device.
  23. lovetox_ people want to use it like a cloud message store kind of thing
  24. Ge0rG I kind of like how slack is doing it. Message to self = personal scratchpad
  25. lovetox_ but i think everything is alright, its just that i got confused, because sometimes gajim randomly selects a resource to send the message to, which triggeres other reactions from the server for carbons etc then when i send to barejid
  26. lovetox_ is there a reason that gajim should select a resource automatically?
  27. lovetox_ or is this from the old days, and today we should let the server handle that?
  28. Ge0rG lovetox_: +1 for server-side handling. Just send everything to the bare JID, except for OTR
  29. Ge0rG IQs have to go to a full JID as well, obviously.
  30. lovetox_ yeah i thought so
  31. Flow IQs to a bare JID are also common
  32. Ge0rG Flow: to the account, not to a client
  33. Flow Ge0rG: lovetox: isn't that a topic for the carbons last call, i.e. messages to self?
  34. Flow Ge0rG: right
  35. Ge0rG Flow: see xsf@ muc right now
  36. Flow lovetox: is it really "randomly" or just resource locking?
  37. Flow Ge0rG: uh, ok :)
  38. Ge0rG Flow: feel free to add your remarks there.
  39. lovetox_ no its not random, i meant i dont understand the logic, because i didnt look into it, its probably the one with highest priority
  40. lovetox_ first i thought there is a corner case not touched by the xep
  41. lovetox_ but now i think its ok, i mean you could tell the server to not send yourself the message, like if you are the only device online, but i guess there will be people who find use cases for that
  42. lovetox_ also its quite expected behaviour
  43. lovetox_ like if you email yourself, you have the same behaviour
  44. lovetox_ the only thing that could be done i think is
  45. lovetox_ when there are more than one resource online
  46. lovetox_ ah no forget it
  47. lovetox_ i think its ok like it is
  48. lovetox_ Ge0rG, is the xsf room protected somehow?
  49. lovetox_ i cant join it, it says im banned
  50. Ge0rG lovetox_: no. xsf@muc.xmpp.org
  51. lovetox_ ah ok
  52. lovetox_ sorry wrong jid
  53. johannes lovetox, what is the correct plugin manager for the current git-master?
  54. johannes I've just given a blank copy of the master a go, it looks fine, (aside from non-mac-y key-bindings) however I'd be interested to see how it behaves when confronted with plugins
  55. lovetox_ https://ftp.gajim.org/plugins_1/plugin_installer.zip
  56. lovetox_ or you clone gtk3 branch of the plugins repo
  57. lovetox_ omemo and httpupload plugin are upto date
  58. lovetox_ OTR does not work, and i probably will not port it
  59. lovetox_ other plugins may work but are of an older revision
  60. lovetox_ also johannes, google mac gtk theme, and maybe install one to get a more macy look
  61. johannes lovetox, the look would not be the first issue, the feel and consistency with mac concepts is more important, at least for me
  62. johannes that did not turn too happy...
  63. lovetox_ so shortcuts?
  64. johannes lovetox: have a look here: https://paste.gajim.org/view/605db83c
  65. johannes shortcuts, consistency with expected behaviour et al. (see the apple hci guideline)
  66. johannes app package
  67. lovetox_ em
  68. lovetox_ what is this
  69. lovetox_ it seems you downloaded the wrong branch of plugins
  70. lovetox_ 0.15.9 this is years old
  71. lovetox_ its better not to download plugins from git
  72. johannes ~/.local/share/gajim/plugins.git [gtk3 {origin/gtk3}
  73. lovetox_ just installk that plugin installer and install plugins from there
  74. johannes 26f393e8a211d7deed5270e02d4a8809d7574f32
  75. lovetox_ yeah ok but please delete the plugins you dont use
  76. lovetox_ you loaded 20 plugins
  77. lovetox_ dont know if this causes problems or not
  78. johannes it should suffice to deactivate them - is there a way to deactivate them without the gui?
  79. johannes some settingsfile?
  80. lovetox_ they are deactivated
  81. lovetox_ but deactivated does not mean gajim doesnt scan them
  82. lovetox_ because to know that a plugin is deactivated we have to load the code to see what plugin this is then query setting to see if we activate it
  83. lovetox_ please delete the chatstate plugin
  84. lovetox_ it seems to cause problems
  85. johannes if it is known to create problems with gtk3 why is it not deleted from the gtk3 branch
  86. lovetox_ i didnt know it, and maybe i have other things to do?
  87. lovetox_ are you thinking this is my fulltime job here?
  88. johannes actually i was suggesting a way that might save you some work in terms of people asking for stuff that they would not ask for if it were removed due to being a known defect. no reason to get all worked up here
  89. johannes as for the plugins: omemo (which is likely to be the main goal since gajim is more or less the only omemo-capable xmpp client for osx atm) still throws this weird sql error message, httpupload appears to upload stuff but then errors out displaying the result to the muc
  90. johannes 20.03.2017 17:14:19 (E) gajim.c.ged Error while running an even handler: <bound method OmemoPlugin.handle_outgoing_event of <omemo.omemoplugin.OmemoPlugin object at 0x11a8ce828>> Traceback (most recent call last): File "/Users/user/Downloads/gajim-git/src/common/ged.py", line 93, in raise_event if handler(*args, **kwargs): File "/Users/user/Downloads/gajim-git/src/plugins/helpers.py", line 107, in wrapper result = f(*args, **kwargs) File "/Users/user/.local/share/gajim/plugins/omemo/omemoplugin.py", line 598, in handle_outgoing_event state = self.get_omemo_state(account) File "/Users/user/Downloads/gajim-git/src/plugins/helpers.py", line 107, in wrapper result = f(*args, **kwargs) File "/Users/user/.local/share/gajim/plugins/omemo/omemoplugin.py", line 169, in get_omemo_state self.plugin) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/state.py", line 65, in __init__ self.store = LiteAxolotlStore(connection) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/liteaxolotlstore.py", line 48, in __init__ self.sql = SQLDatabase(connection) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/sql.py", line 39, in __init__ self.dbConn.commit() sqlite3.OperationalError: cannot commit transaction - SQL statements in progress 20.03.2017 17:14:19 (E) gajim.c.ged Error while running an even handler: <bound method OmemoPlugin.handle_outgoing_event of <omemo.omemoplugin.OmemoPlugin object at 0x11a8ce828>> Traceback (most recent call last): File "/Users/user/Downloads/gajim-git/src/common/ged.py", line 93, in raise_event if handler(*args, **kwargs): File "/Users/user/Downloads/gajim-git/src/plugins/helpers.py", line 107, in wrapper result = f(*args, **kwargs) File "/Users/user/.local/share/gajim/plugins/omemo/omemoplugin.py", line 598, in handle_outgoing_event state = self.get_omemo_state(account) File "/Users/user/Downloads/gajim-git/src/plugins/helpers.py", line 107, in wrapper result = f(*args, **kwargs) File "/Users/user/.local/share/gajim/plugins/omemo/omemoplugin.py", line 169, in get_omemo_state self.plugin) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/state.py", line 65, in __init__ self.store = LiteAxolotlStore(connection) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/liteaxolotlstore.py", line 48, in __init__ self.sql = SQLDatabase(connection) File "/Users/user/.local/share/gajim/plugins/omemo/omemo/sql.py", line 39, in __init__ self.dbConn.commit() sqlite3.OperationalError: cannot commit transaction - SQL statements in progress
  91. johannes here's the errormessage for httpupload: Encodings: d:utf-8, fs:utf-8, p:UTF-8 D-Bus python bindings are missing in this computer D-Bus capabilities of Gajim cannot be used (gajim:41371): Gdk-WARNING **: GdkQuartzDisplay does not implement the monitor vfuncs 20.03.2017 17:19:23 (E) gajim.plugin_system.omemo Error: Traceback (most recent call last): File "/Users/user/.local/share/gajim/plugins/omemo/ui.py", line 40, in <module> import qrcode ModuleNotFoundError: No module named 'qrcode' 20.03.2017 17:19:23 (E) gajim.plugin_system.omemo python-qrcode or dependencies of it, are not available (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node separator owner GtkPaned) (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook) (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook) (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook) (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook) 20.03.2017 17:19:53 (W) gajim.plugin_system.plugin_installer Plugin is missing mandatory fields in manifest.ini. Plugin not loaded. Exception in thread Thread-2: Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/Users/user/.local/share/gajim/plugins/httpupload/httpupload.py", line 313, in upload_file GLib.idle_add(self.on_upload_error, file, error_msg) UnboundLocalError: local variable 'error_msg' referenced before assignment (gajim:41371): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook)
  92. johannes also I wonder which package this qrcode thing appears to reference, pip knows no such package
  93. lovetox_ https://pypi.python.org/pypi/qrcode
  94. lovetox_ hm about the sql error, hard to debug, probably delete the omemo db and see if that works
  95. lovetox_ you are not using a second gajim instance on the same db?
  96. johannes nope, one gajim instance only running here
  97. bot Philipp Hörist pushed 1 commit to branch _refs/heads/gtk3_ of _gajim-plugins_ <https://dev.gajim.org/gajim/gajim-plugins>: *65e2f437* <https://dev.gajim.org/gajim/gajim-plugins/commit/65e2f437a5c7d0296ccf4422d03d6e3c84741a5a> [httpupload] Catch URLError error message
  98. lovetox_ you can update httpupload plugin
  99. johannes which one would the omemo db be - also, I get this error frequently even with fresh instances, must be something in the code
  100. anotheragency Im installing thunderbird + enigmail on normie windows machines, will see what happens
  101. lovetox_ should catch that error you are getting now
  102. johannes plugin manager does not yet recognize an update for the httpupload plugin
  103. lovetox_ download it anyway
  104. lovetox_ i didnt upgrade the version because maybe i need to change more things :)
  105. lovetox_ no this will not work
  106. lovetox_ server didnt update the zip package..
  107. lovetox_ it does it only once per day
  108. lovetox_ hm, pull it from git?
  109. johannes that's why i wanted to use the git-folder for starters...
  110. lovetox_ you can just not in the plugins folder
  111. lovetox_ clone it to somewhere else
  112. lovetox_ then link the plugins you want to use to the plugin folder
  113. johannes urllib.error.URLError: <urlopen error [Errno 32] Broken pipe>
  114. johannes works from conversations though
  115. lovetox_ hm never seen this let me google it
  116. lovetox_ hm interesting
  117. lovetox_ could you comment out with a # line 296 in httpupload.py
  118. lovetox_ file.stream.close()
  119. lovetox_ and see if that solves the problem
  120. johannes is there a way to hot reload plugin code?
  121. johannes currently it's a continuous restarting of gajim
  122. lovetox_ try to activate and deactivate
  123. lovetox_ the plugin
  124. johannes now it's just a bad request
  125. johannes urllib.error.HTTPError: HTTP Error 400: Bad Request line 295
  126. johannes line 295, in upload_file transfer = urlopen(request, timeout=30)
  127. lovetox_ em yeah so why is your server returning 400?
  128. lovetox_ can you look at the stanza
  129. lovetox_ when you try to upload something
  130. lovetox_ or better start with -l gajim.plugin_system.httpupload=DEBUG
  131. lovetox_ to see all URLs we get from the server
  132. lovetox_ maybe its invalid somehow
  133. johannes 20.03.2017 18:06:05 (I) gajim.plugin_system.httpupload OMEMO not found, encryption disabled 20.03.2017 18:06:05 (I) gajim.plugin_system.httpupload Detected MIME type of file: image/png 20.03.2017 18:06:05 (I) gajim.plugin_system.httpupload Sending request for slot 20.03.2017 18:06:06 (I) gajim.plugin_system.httpupload Received slot 20.03.2017 18:06:06 (I) gajim.plugin_system.httpupload Uploading file to https://example.org/upload/hash/filename.png 20.03.2017 18:06:06 (I) gajim.plugin_system.httpupload Please download from https://example.org/upload/hash/filename.png 20.03.2017 18:06:06 (I) gajim.plugin_system.httpupload Opening Urllib upload request... 20.03.2017 18:06:06 (E) gajim.plugin_system.httpupload URLError
  134. johannes also should gajim display the image inline or is it supposed to display a url?
  135. johannes also this came around here: 20.03.2017 18:10:46 (E) gajim.htmlview Error loading image local variable 'alt' referenced before assignment
  136. lovetox_ i dont know the state of url_image_preview in gtk3
  137. lovetox_ it probably will display only unencrypted lins
  138. lovetox_ links
  139. lovetox_ you probably didnt activate omemo for that contact
  140. lovetox_ where you uploaded
  141. lovetox_ so httpupload showed you that info message
  142. lovetox_ i dont see what i can do about the URLError
  143. lovetox_ your server returning 400 this can maybe be solved with server logs