Gajim - 2017-04-27

  1. mrDoctorWho how about not copying html tags and escaped literals of corrected messages on ctrl+c?
  2. Marzanna Why can't I send formatted message to an offline contact?
  3. Marzanna Formatting button is greyed out
  4. mrDoctorWho that's because gajim is unable to determine xhtml im support
  5. SaltyBones So I have cloned and installed with sudo python install
  6. SaltyBones but the git version still doesn't run
  7. SaltyBones ah...still have another version installed
  8. SaltyBones no, I have at least two other versions installed
  9. SaltyBones hm...but how x)
  10. ok89 hello guys, I'm sadly having issues with the OMEMO plugin. I followed this guide and I'm getting the "You are missing the setuptools package" error. I sense permissions weren't set up correctly for my python. For example, I can't install anything using "pip" unless I sudo it I should also add that I copu/pasted all the config files from my previous installation which worked correctly on Linux Mint 18.1 Cinnamon, now I shifted to XFCE
  11. ok89 oops
  12. SaltyBones Have you tried installing it with the plugin-manager?
  13. ok89 I haven't, would that clear my fingerprints?
  14. ok89 restarting
  15. ok89 same issue
  16. SaltyBones well what s the issue?
  17. ok89 Setuptools package flags as missing
  18. ok89 "Warning: You are missing the Setuptools package. "
  19. ok89 I fear something went wrong during the dependencies installation
  20. SaltyBones but you have setuptools?
  21. ok89 I do
  22. ok89 "python-setuptools is already the newest version (20.7.0-1)."
  23. SaltyBones do you have python2 or 3 or both installed?
  24. ok89 yes, python executes 2.7.12 while python3 executes version 3.5.2
  25. SaltyBones so try launching both
  26. SaltyBones and type import setuptools
  27. SaltyBones just so we can be sure you have it installed for both
  28. ok89 okay, python3 can't find it
  29. SaltyBones so check if your gajim is using py3
  30. SaltyBones if so you need all the crap you installed for python3 instead
  31. ok89 and python2 says the permission id denied
  32. SaltyBones permission for what?
  33. ok89 "/usr/local/lib/python2.7/dist-packages/protobuf-3.2.0-py2.7.egg/EGG-INFO/namespace_packages.txt"
  34. ok89 I'm not sure how to check which Python version Gajim is using
  35. SaltyBones can you post the complete error?
  36. SaltyBones it should be using python 2
  37. SaltyBones you can run which gajim
  38. SaltyBones edit that file
  39. SaltyBones and see which python it is using
  40. ok89 Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import setuptools Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/setuptools/", line 11, in <module> from setuptools.extern.six.moves import filterfalse, map File "/usr/lib/python2.7/dist-packages/setuptools/extern/", line 1, in <module> from pkg_resources.extern import VendorImporter File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2927, in <module> @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2952, in _initialize_master_working_set add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 956, in subscribe callback(dist) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2952, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2513, in activate for pkg in self._get_metadata('namespace_packages.txt'): File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 2503, in _get_metadata for line in self.get_metadata_lines(name): File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 1477, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 1469, in get_metadata return self._get(self._fn(self.egg_info, name)) File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 1580, in _get with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.2.0-py2.7.egg/EGG-INFO/namespace_packages.txt'
  41. SaltyBones how did you install setuptools? it looks like it might be only accessible for root
  42. SaltyBones which would be really weird :)
  43. ok89 I used sudo apt-get install python-setuptools
  44. SaltyBones wtf
  45. ok89 following this guide
  46. SaltyBones what does ls -lah /usr/local/lib/python2.7/dist-packages/protobuf-3.2.0-py2.7.egg/EGG-INFO/namespace_packages.txt say?
  47. SaltyBones and maybe just try removing and reinstalling... this makes no sense to me :)
  48. ok89 -rw-r----- 1 root staff 7 apr 27 11:16 /usr/local/lib/python2.7/dist-packages/protobuf-3.2.0-py2.7.egg/EGG-INFO/namespace_packages.txt
  49. SaltyBones what does id say?
  50. ok89 I don't know what that "staff" stands for
  51. SaltyBones that's the group
  52. SaltyBones files are owned by a user and a group...the permissions say the user can read and write, the group can only read and other people can do nothing
  53. SaltyBones so if you are not in the staff group you have no access
  54. SaltyBones id will tell you what groups you are in
  55. SaltyBones but that doesn't explain why it is set this way :)
  56. ok89 id shows my username as part of a group called like the username
  57. SaltyBones yeah, that's normal
  58. SaltyBones try uninstalling and reinstalling setuptools
  59. SaltyBones you're on ubuntu?
  60. ok89 Only OMEMO has problems
  61. ok89 yes, Mint
  62. SaltyBones that's not ubuntu but yeah, it's similar ;)
  63. ok89 okay
  64. ok89 removed and re-installed, no luck
  65. ok89 I copied the OMEMO config folder from my previous system, would that matter?
  66. ok89 I did that before and nothing bad occurred
  67. ok89 going to retry
  68. SaltyBones well, I don't know why it happens but you can probably fix it by giving yourself access to those files
  69. Link Mauve SaltyBones, they installed it using sudo install at some point, and it installed a stale copy in /usr/local which is tried before the one in /usr.
  70. Link Mauve People running commands they don’t understand…
  71. Link Mauve I generally recommend nuking /usr/local, and never using it again.
  72. Link Mauve At least, not until they understand how it works.
  73. SaltyBones Link Mauve, ah, I hadn't noticed
  74. SaltyBones I only checked the other paths in the stacktrace
  75. SaltyBones which of course is just the local python and makes no sense
  76. SaltyBones should have paid more attention :p
  77. Nothing4You is it possible to automatically open the chat window when receiving a chat message instead of having to click the tray icon?
  78. ok89 Link Mauve, I'm the person who runs commands they don't understand
  79. Link Mauve ok89, yup. ^^
  80. ok89 I followed a guide that I linked to, nobody was complaining about it. Yes, I'm no expert
  81. Link Mauve In general, when you run a distribution, avoid anything installing stuff in /usr/local.
  82. ok89 thanks, now I know and the guide's author should be informed so that nobody else will make the same mistake as me. I hoped I could fix this. I gave myself permission to the file namespace_packages.txt in /usr/local . Then I could import setuptools succesfully in both python2 and 3. Now OMEMO gives me a new error, i.e. "No module named message"
  83. Link Mauve ok89, my advice would be to remove it entirely from /usr/local, and to rely on your distribution instead.
  84. Link Mauve I don’t know if it will fix your issue, though.
  85. ok89 you mean python-axolotl, which I installed using "sudo install" ?
  86. ok89 Link Mauve ^
  87. Link Mauve Yeah, remove any and all Python modules you installed in /usr/local.
  88. ok89 should I delete both the /usr/local/lib/python* folders?
  89. pep. What do you have in there?
  90. pep. I mean in these python folders
  91. ok89 pip, pip-9, protobuff-3.2.0, python_axolotl_curve(long name ending with .egg), setuptols.pth
  92. ok89 that is for python2.7
  93. ok89 and only and empty "dist-packages" in python3.5
  94. Link Mauve ok89, then you should remove all of that, yeah.
  95. ok89 all fixed, OMEMO is back
  96. Link Mauve Great. :)
  97. ok89 I made a mistake reading that guide, I must have added "sudo" where it said that I should cd to the axolotl download folder and do "python2 install"
  98. ok89 as for /usr/local/bin. Does pip belong there instead?
  99. ok89 inside the respective python folders for both its versions
  100. Link Mauve No, it should be there either.
  101. ok89 I fear that's where they went again
  102. frat3rius guys with latest gajim and packages at archlinux I'm getting: Unexpected fingerprint collision error when I try to use OpenPGP or change contact key, any idea what's the problem and how to solve it?
  103. frat3rius the fingerprint which is causing colission isn't even in my keyring so have no idea what's causing it
  104. Link Mauve No, it shouldn’t be there either.
  105. Link Mauve frat3rius, IIRC someone else had that issue, maybe ask lovetox when he’ll be back.
  106. frat3rius Link Mauve: I'll try contact him
  107. Link Mauve He’ll probably be here later, just wait for him. :)
  108. frat3rius I've found issue that's exactly as mine
  109. frat3rius
  110. frat3rius maybe not exactly cause my fingerprint is not known to me at all
  111. Nothing4You is it possible to automatically open the chat window when receiving a chat message instead of having to click the tray icon?
  112. frat3rius ok guys it looks that my pubring.gpg is corrupted ;)
  113. frat3rius nvm thx for help
  114. lovetox Link Mauve: just because you seem to be often here and answering questions, that fingerprint collision is python-gnupg telling the user that when it uses gpg --list-keys , to get all keys, there were duplicates in there
  115. lovetox but i will write that into the issue also now
  116. Link Mauve lovetox, ok.
  117. lovetox Nothing4You, yes that option is available
  118. frat3rius lovetox: in my case there where some subs which where ghosts, when I deleted one key it jumped one level up, propably corrupted file or so
  119. frat3rius I've just recreated my keyring
  120. Nothing4You lovetox, where do i find that?
  121. frat3rius other apps simple didn't cared about this
  122. lovetox Under Preference -> Notification tab
  123. lovetox first option
  124. Nothing4You ah thanks
  125. lovetox frat3rius, yes, its python-gnupg the gnupg bindings we use that cares
  126. lovetox thanks for the info about recreating, i will suggest that to other people with the same problem
  127. frat3rius hello guys is there some way to use gajim with gpg4win, right now I'm getting "there is no OpenPGP agent running or it returned a wrong passphrase" agent is running gpg is availbe in PATH and I'm entering correct password for the key (the pinentry does show up)
  128. frat3rius when I disable use gpg-agent, I'm getting wrong password error when the password is right for sure
  129. frat3rius I've tried portable and installed versions of gajim both has the same problem
  130. frat3rius I can crypt/decrypt files with gpg4win with no problem
  131. frat3rius I've just created new key with gpg4win cause one I've been using was imported (I thougt that it might be the issue), but with simple test key it also fails, any help would be much apriciated thx
  132. lovetox hm
  133. lovetox i use gpg4win also and it works ..
  134. lovetox so did you select the correct key in the accounts settings?
  135. lovetox frat3rius,
  136. frat3rius lovetox: yes
  137. frat3rius lovetox: I've got only one so there's no place for mistake ;)
  138. frat3rius I can see gpg-agent in my process list
  139. lovetox can you please try with gajim-nightly
  140. frat3rius yup one sec
  141. frat3rius lovetox: it does work ;)
  142. lovetox nice :)
  143. Nothing4You lovetox, have you used weechat and the smart filter before?
  144. lovetox no, but i know what you mean
  145. Nothing4You ok
  146. lovetox just hide join/leaves for people that havent spoken for X time
  147. Nothing4You did you see my most recent reply?
  148. Nothing4You sent like 1 min before yours
  149. Nothing4You to me it doesn't sound like it'd be as easy to implement as you described because it should be able to unhide them aswell
  150. Nothing4You i have no idea about gajim internals but your message seemed to only be about hiding them, not unhiding
  151. Nothing4You lovetox, do you have an answer for that? just hoping for one before i go to bed
  152. lovetox you can save join/parts already to history
  153. lovetox so if we hide join/parts from the window, you could always unhide them when looking into the history
  154. Nothing4You with a smart filter it would insert them back into the chat window
  155. Nothing4You for people who speak
  156. lovetox yeah there it gets much work :)
  157. Nothing4You so if you start speaking after joining i can see the join message
  158. Nothing4You that's what i was assuming, i don't mind if that isn't added right away
  159. lovetox but why would it matter that you see someone joined, when he starts to speak
  160. Nothing4You i just want to have that as a feature request
  161. Nothing4You for one part for completeness
  162. Nothing4You but also e.g. to see when he joined
  163. Nothing4You e.g. if a muc has no history i'd be able to see what he saw
  164. lovetox yeah everything regarding chat manipulation is hard, because its only a big textfield
  165. Nothing4You e.g. imagine he's asking about x, which was discussed 2 min ago but he joined 1 min ago
  166. lovetox but maybe if we revamp it, it should get easier
  167. Nothing4You as i said, i don't mind waiting, i'm aware you don't get paid for this and do it on your free time
  168. lovetox =)
  169. Nothing4You i just want to describe my feature request as good as possible
  170. Nothing4You and while at it, thanks for all the work you're doing on gajim :)
  171. lovetox yeah sadly i have a fulltime job that has nothing to do with coding :/
  172. lovetox only a few hours left per week for the hobby
  173. Nothing4You btw i just found a typo on the dev.php page
  174. Nothing4You Here is the place where developpement occures
  175. lovetox thanks
  176. bot Philipp Hörist pushed 1 commit to branch _refs/heads/master_ of _website_ <>: *d66c3565* <> Fix typo in dev.php
  177. Nothing4You it's still wrong
  178. Nothing4You it's development
  179. bot Philipp Hörist pushed 1 commit to branch _refs/heads/master_ of _website_ <>: *92cd41fd* <> Fix typo again in dev.php
  180. Nothing4You well
  181. Nothing4You there's more
  182. Nothing4You occures should be occurres
  183. Nothing4You but i don't want to be responsible for commit spam
  184. Nothing4You i'm just gonna go to bed now
  185. Nothing4You maybe if i remember it tomorrow i might look at it and collect some typos for a commit that is more than 1 character each
  186. lovetox haha yeah would be great, its no problem its just the website
  187. lovetox its not a application project or anything :)
  188. Nothing4You actually not occurres
  189. Nothing4You just occurs it seems
  190. Nothing4You i'm not a native english speaker either
  191. lovetox yeah me too
  192. lovetox im going also, have a good night
  193. Nothing4You good night