lovetoxi can reproduce it on every login on 3.18.9
lovetoxi can never reproduce it on 3.20.9
Link MauveBut yeah, an assert should never be triggered.
Link MauveUnder any condition.
lovetoxim experiencing another problem under 3.18.9
lovetoxif the contact list is over 15
lovetoxGlib.io_watch never pulls any data from the socket
lovetoxit just doesnt connect and dies
lovetoxif i minimize the group so i dont see a contact
lovetoxit immediatly starts to pull data
lovetoxi stepped through the whole process with the debugger, but on python level i cant debug this, the debugger just ends after a time because no code is executed anymore
lovetoxbut maybe i should forget 3.18.9
Link MauveYeah, it’s obsolete.
lovetoxcan i easily install 3.22 on the newest ubuntu?
lovetoxor do i have to install a system that brings that with
Link MauveI don’t know, I haven’t used Ubuntu in years.
lovetoxah i can get it it seems :)
lovetoxhm
lovetoxinstalled 3.22.5
lovetoxbut have no problems with it
lovetoxsame accoutn that exploded in 3.18.9
lovetoxto be honest i love it :D
lovetoxdoes it make sense to channel stdout and stderr to different log files?
zakMorning. I hate when devs do that.
zakIf those messages are distinguishable within a single file, I don't see a reason for that.
zakSometimes it is good to see info messages next to error messages.
zakBut that is my opinion of course.
zakBut I must admit in the end it depends on the message output of both channels. If they differ in their type, it might make sense to split them in two files.
linusNah, put them in one. Losing the time relationship between the messages is a pain
linusI mean, ideally just leave them alone so the os or shell can redirect them as the user wishes
linusAlthough on windows who knows
lovetoxyeah exactly what i thought
lovetoxwithout the context of the log message, i dont know when the error happend and around what activity
lovetoxand yeah this is for windows
Asterixboyska: Hi, Thanks for yout merge request. except tests and code review, is there still something missing before merge?
lovetoxalso it has merge conflicts
lovetoxas i had to update the installer_plugin to fix a bug
lovetoxplease rebase onto master
jerelovetox: Hi, do you want some feedback of gajim snap 0.16.6 29-12-2016 for windows ?
lovetoxyeah of course
jere#1 The Plugin Installer within Gajim is outdated (0.12.0 -> 0.12.1)
jere#2 After updating the Plugin Installer, I see 2 of them in the list of "Installed" plugins (the old and the new). I need to close the Plugin Installer and open it again in order to see only the current (0.12.1)
jere#3 Related to #2, After installing plugins I don't see them in the list of "Installed" plugins. I need to close Gajim and open it again in order to see them. But now it says the last version of the Plugin Installer is 0.12.0.
lovetoxhmm thanks i will investigate whats happening here
lovetoxcould you look in the install dir, under Gajim/plugins what version of plugin_installer is there
lovetoxyou can see it in the manifest.ini
lovetoxi dont mean the app dir in the Users dir
lovetoxi mean the gajim install directory
lovetoxthere is also a plugin floder
lovetoxor no it seems the script on the server did not update to the newest version
lovetoxAsterix could you have a look at it please
jereIn the user, 0.12.0 In the install directory 0.12.1
lovetoxdo you have problems with zeroconf with this version?
boyskaAsterix, nothing else, except that I am expecting the UI-related code to be bad, idk but it just seems wrong to me
boyskaalso, I haven't checked if gajim has some form of unit tests or similar stuff I could use to have some more QA
Asterixlovetox: ftp updated
lovetoxthx
Asterix(even if it's not ftp now :) )
lovetox:D
lovetoxboyska could you please rebase your MR, so we can check it out with the current version of the plugin
jerelovetox: Lan chat between windows is ok.
jereI am trying ti compile the snap gajim on linux.
jereI have python 2.7.13 pygtk 2.24.0 on Arch Linux. I compiled the last nbxmpp snap. This is the output of make check of Gajim:
lovetoxyou could also just add the gajim repo deb ftp://ftp.gajim.org/debian unstable main
jerethe default "python" command is 3
lovetoxand install gajim-nightly
jereI am in Arch
lovetoxyeah gajim is a python2 application
lovetoxso start with python2 :)
jereI need sudo only with make install?
lovetoxdont know, not really a linux guy :)
lovetoxyou could also just clone the git repo and start gajim.py
lovetoxthen you are always on the latest version
lovetoxno need for make and install :)
lovetoxbut you have to clone the gajim_0.16 branch
lovetoxnot master
jereok
jerelovetox: I tried one more time changing python to python2 in 5 files of gajim and 1 file of nbxmpp. Same result. I don't think it is a problem of python version.
lovetoxjere
lovetoxcode is written in python2 or it is written in python3
lovetoxgajim is written in python2
lovetoxyou cant change it to python3
lovetoxyou have to execute the code with python2
jereyes I did that
lovetoxif gajim is correctly installed, you just have to type "gajim" into the console at least on debian
lovetoxif you didnt correctly install it as the errors above you posted suggest
lovetoxthen i would clone with git the repo, and start "python2 gajim.py"
lovetoxalso nbxmpp has to be installed into the python2 path
jereI mean, it was a problem of python versions, but not now. And I am seeing the same error. Ok I will try cloning
lovetoxbut clone the gajim_0.16 branch
lovetoxonly that will work
lovetoxSyntaxError: invalid token -> this error is definitly python2 code run with python3 :)
lovetoxalso for your information you dont have to build nbxmpp by yourself
jereI installed python2-nbxmpp. Now the Lan chat works well, but with the first messages I saw this:
jere30/12/16 13:22:00 (E) gajim.c.ged Error while running an even handler: <bound method ConnectionZeroconf._nec_message_outgoing of <common.zeroconf.connection_zeroconf.ConnectionZeroconf object at 0x7f083bf88950>>
Traceback (most recent call last):
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/ged.py", line 93, in raise_event
if handler(*args, **kwargs):
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/connection_zeroconf.py", line 382, in _nec_message_outgoing
delayed=obj.delayed, attention=obj.attention, callback=cb)
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/connection.py", line 376, in _prepare_message
attention, correction_msg, callback)
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/connection.py", line 532, in _on_continue_message
subject, type_, msg_iq, xhtml)
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/connection_zeroconf.py", line 368, in cb
on_not_ok=on_send_not_ok)
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 777, in send
if conn.add_stanza(stanza, is_message):
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 206, in add_stanza
id_ = self.Dispatcher.getAnID()
AttributeError: P2PClient instance has no attribute 'Dispatcher'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nbxmpp/idlequeue.py", line 549, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python2.7/site-packages/nbxmpp/idlequeue.py", line 413, in _process_events
obj.pollout()
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 502, in pollout
self._do_send()
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 591, in _do_send
self._on_send()
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 622, in _on_send
self._owner.on_message_sent(self.fd)
File "/home/jere/Portables/gajim-gajim_0.16-cb9ec89e5a9c8986143e3c3c94a00776b20631f9/src/common/zeroconf/client_zeroconf.py", line 218, in on_message_sent
self.conn_holder.ids_of_awaiting_messages[connection_id].pop(0)
jereAnother thing: I could not connect to my account, I saw this error: sh: nslookup: command not found
jereBut I solved installing bind-tools
lovetoxyeah gajim has some dependencys nslookup is used to resolve the server adress
lovetoxhm and does that error happen again if you send a message?
lovetoxor does the message not reach its target?
jereI don't see the error anymore
jereAll the messages reach their target.
lovetoxhm k, hard to debug from this message alone, if this comes up regulary please tell me
lovetoxLink Mauve
lovetoxthe absence of examples around GTK3 is staggering
Link Mauvelovetox, ja?
Link MauveOh?
Link MauveI generally just read other random programs.
lovetoxthere is a single example of a GTK3 GApplication
lovetoxand its from the wiki of gnome
lovetoxfor example i was wondering
Link MauveIn glib too.
Link MauveWhat’s the most interesting in GtkApplication is GApplication anyway.
lovetoxbut i dont find any documentation about this, why its necessary
lovetoxit would make more sense for me, that we return 0 or -1
botlovetox: You can't change karma in outdoor conference!
lovetoxand then GTK goes further or exits
lovetoxsometimes i wish there would be a xmpp muc with GTK devs :D
lovetoxwhere i could nerv them with questions :D
Link Mauvelovetox, that’s IRC, sorry.
lovetoxIRC?
lovetoxyeah no problem with that too :)
lovetoxwhere are they hanging out?
Link Mauvelovetox, #gtk+ at gimpnet.
lovetoxthx
CigaesHi. Would here be the proper place to ask for help using python-nbxmpp?
Link MauveCigaes, here. :)
CigaesLink Mauve: thanks. The bot I am trying to write gets disconnected whenever a non-ASCII character is sent to it. Gajim itself does not have the problem, of course, so there is something missing in my code.
CigaesAdding sys.setdefaultencoding("utf8") fixes it, but it seems discouraged and Gajjim does not do it.
CigaesDoes that ring a bell?
Link MauveSorry, I never used it.
Link MauveSince you have encoding issues I guess you are using python2, maybe try python3 instead.
CigaesIt works, indeed, thanks for the tip. Still, the Gajim I use runs on python 2.7, so there must be a way; I might need to run the bot on an older system.
Link Mauvepython3 should run on even older systems, imo you shouldn’t use a dead language nowadays.
CigaesI cannot install many things on this system. Also, intellectually, I would like to understand what I am doing wrong, since Gajim works.
lovetoxCigaes, can you provide a traceback
Cigaeslovetox: there is not really one, the exception is caught and causes a disconnect. There is some debug context, still:
lovetoxis the data you get sent utf-8 encoded?
CigaesYes, it is correct (sent using gajim-remote from an UTF-8 xterm). I get this debug:
Cigaesraising event from transport: :::::DATA RECEIVED::::
CigaesValueError: 'ascii' codec can't encode character u'\xe9' in position 131: ordinal not in range(128)
CigaesI also get a warning a little before that, that disappears with the setdefaultencoding:
Cigaes /usr/lib/python2.7/dist-packages/nbxmpp/transports_nb.py:618: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if received == '':
CigaesAnd I found the exception (not the warning) happens when XMPPDispatcher.ProcessNonBlocking calls self.Stream.Parse()
lovetoxcan you test it not from gajim-remote?
lovetoxlike could i send you a message?
Cigaeslovetox: I just tested from Gajim's GUI (I think I already did that earlier) and from Conversations, same result.
CigaesIn the meantime, I managed to get the python3 version running on the older system, so the question is just a matter of intellectual satisfaction.
CigaesIf I forget to say it later: thanks both for your help.
lovetoxthe warning suggest
lovetoxthat we do not compare unicode objects
lovetoxa print statement around if received == '': something like type(received) would be interesting
lovetoxprint(type(received))
lovetoxare you using the latest nbxmpp version?
lovetox5.4?
CigaesWith python3 (working), received is bytes and data is str; with python2 (warning and disconnects), received is str and data is unicode
Cigaesreceived is what causes the warning, data is what causes the exception.
CigaesYes, it is version 5.4.
lovetoxah fuck sorry no idea
lovetoxthe whole str unicode buisness in python2/3 is a nightmare
lovetoxweird issue, i guess it must have to do with some system settings
lovetoxbut its also weird that nbxmpp would depend on encoding settings taken from the system
Cigaeslovetox: no problem, since following Link Mauve's advice I managed to get it working with python3, what was left was a matter of curiosity.
lovetoxi think the guy who wrote most of nbxmpp is not aroung anymore
CigaesThanks for your time.
lovetox=)
ftw91how to import pgpkey in gajim not from gui?
lovetoxi guess they are in some folder
lovetoximport one over the ui and look where it gets placed
lovetoxhm na i have no idea, Asterix can help
lovetoxhm if i look at the code, the keys are queryd from your gpg agent
lovetoxso i dont think you have to import them
lovetoxyou just have to chose one i believe
Asterixyes, we just call gpg --list-secret-keys to look in the user keyring.
zakHi there. Just got an error from the OMEMO plugin after activating a previously disabled account (which did not support PEP in the past but does now):
Traceback (most recent call last):
File "/home/stefan/.local/share/gajim/plugins/omemo/ui.py", line 397, in account_combobox_changed_cb
self.update_context_list()
File "/home/stefan/.local/share/gajim/plugins/omemo/ui.py", line 590, in update_context_list
deviceid = state.own_device_id
AttributeError: 'NoneType' object has no attribute 'own_device_id'
lovetoxso if you open the plugin config window again
lovetoxdoes the same error happen again?
lovetoxi think this is nothing serious
zakyes
lovetoxreally?
lovetoxhm
zakI think there is no key for this account
lovetoxafter restart gajim also?
zakWhen I select this account in "Own Fingerprints", the error appears, but the barcode stays the same as the previously selected account.
lovetoxmaybe something went wrong at creating the db
lovetoxdelete omemo_jid.db
lovetoxand restart gajim
lovetoxshould work afterwards
zakI restart Gajim first, without deleting anything... BRB
zakOkay, it works now. No error anymore.
zakThe account now appears as first one. Are they sorted alphanumerically?
zakNo... R before j is not right.
zakBut nevermind.
lovetoxthey are sorted
lovetoxlike you added them in gajim
lovetoxlike they are sorted in gajim account window
zakAh, if I disable and enable it again, it appears as last one again.
zakMaybe the error above could still be fixed easy?
lovetoxyeah but thats only temporary i think until you close and reopen the window
lovetoxeverything can be fixed if its reproduceable
lovetoxcan you reproduce it?
zakNot now anymore, because there is a OMEMO key now for the account.
zakAs I said, the account previously did not support PEP, so I disabled it for OMEMO.
zakNow the server has been upgraded, and I reactivated OMEMO for this account.
zakAfter that, the error appeared.
lovetoxaccount has always a key, its generated on adding the account to gajim
zakThat was reproducible until I restarted Gajim.
lovetoxit couldnt be displayed for some reason
zakHmm.
lovetoxmaybe it has to do something with activating disabling accounts
lovetoxits a feature not many people use
zakI have another problem: The 5 users are not visible in my contact list. It only says "(0/5)" in the header line, but there is nothing shown below.
lovetoxdid you activate to see offline contacts?
zakIf I connect with Conversations, the five users are shown there.
zakOffline contacts are shown for other accounts, so yes.
lovetoxis the account connected?
zakyes
lovetoxdouble click on the account row does nothing?
zakyes. nothing happens.
lovetoxdid you maybe check "merge accounts" in the account window?
zakNo, I have three accounts, and they are all listed separately.
lovetoxclick on the account row, go offline and online again