"NameError: global name 'sys' is not defined" when receiving file
Bug description
I get an error when I try to receive file from Gajim 0.12.5 (Windows) on my Gajim 0.12.1 (Gentoo Linux). Works fine if file is sent by PSI or any other client, so it's look like file sending is broken only between two Gajims. Also when I send file from my Gajim to Gajim/Windows, everything works fine.
Traceback (most recent call last): File "gajim.py", line 449, in _process_events return self.process_events(fd, flags) File "/usr/lib/python2.6/site-packages/gajim/common/xmpp/idlequeue.py", line 132, in process_events obj.pollin() File "/usr/lib/python2.6/site-packages/gajim/common/xmpp/transports_nb.py", line 352, in pollin self._do_receive() File "/usr/lib/python2.6/site-packages/gajim/common/xmpp/transports_nb.py", line 502, in _do_receive self.on_receive(received) File "/usr/lib/python2.6/site-packages/gajim/common/xmpp/dispatcher_nb.py", line 359, in dispatch handler'func' File "/usr/lib/python2.6/site-packages/gajim/common/connection_handlers.py", line 432, in _bytestreamSetCB self.send_success_connect_reply, self._connect_error) File "/usr/lib/python2.6/site-packages/gajim/common/socks5.py", line 119, in connect_to_hosts self.add_receiver(account, receiver) File "/usr/lib/python2.6/site-packages/gajim/common/socks5.py", line 197, in add_receiver result = sock5_receiver.connect() File "/usr/lib/python2.6/site-packages/gajim/common/socks5.py", line 912, in connect if sys.exc_value[0] == errno.EINPROGRESS: NameError: global name 'sys' is not defined
ps. Do something with that terrible captcha. This is my 10th try to add ticket, and everytime I mistyped the word I lost all my description. That's extremally unusable :(
Steps to reproduce
-
Install Gajim on Gentoo and wait for file receive request from Gajim/Windows.
-
Accept request and "save" file on disk.
-
Wait for an error.
-
The file transfer is not cancelled and it's stuck on 0% on both computers. No error appears on the Windows machine.
Software versions
OS version: Well, gentoo is up to date. Windows Vista Ultimate SP1
GTK version: 2.16.6 on Linux and 2.14.3 on Windows
PyGTK version: 2.14.1 on Linux and 2.12.1 on Windows