[Blink] 'ContactURI' object has no attribute 'object' / no _sha1 / no _rfb

Casey Jones blink at doctorcolossus.e4ward.com
Wed Feb 10 19:02:56 CET 2016


On Arch Linux, after compiling the latest Blink from the darcs 
repository it crashes on start with:

    Traceback (most recent call last):
       File "/usr/bin/blink", line 30, in <module>
         from blink import Blink
       File "/usr/lib/python2.7/site-packages/blink/__init__.py", line
    34, in <module>
       File
    "/usr/lib/python2.7/site-packages/sipsimple/account/__init__.py",
    line 26, in <module>
         from sipsimple.account.publication import PresencePublisher,
    DialogPublisher
       File
    "/usr/lib/python2.7/site-packages/sipsimple/account/publication.py",
    line 24, in <module>
         from sipsimple.payloads.dialoginfo import DialogInfoDocument
       File
    "/usr/lib/python2.7/site-packages/sipsimple/payloads/__init__.py",
    line 63, in <module>
         from sipsimple.payloads.datatypes import Boolean, Byte,
    UnsignedByte, Short, UnsignedShort, Int, UnsignedInt, Long, UnsignedLong
       File
    "/usr/lib/python2.7/site-packages/sipsimple/payloads/datatypes.py",
    line 16, in <module>
         from sipsimple.util import ISOTimestamp
       File
    "/usr/lib/python2.7/site-packages/sipsimple/util/__init__.py", line
    21, in <module>
         from sipsimple.util._sha1 import sha1
    ImportError: No module named _sha1

I tried installing the sha1 module with pip, but that didn't help. It 
looks like this module is missing from sipsimple, which is strange, 
because I'm pretty sure I had previously compiled sipsimple from the 
same 2.6.0 tarball as I just did... but there is some difference between 
the two resulting packages, because if I revert to the one I rolled 
earlier, I get the following error instead:

    Traceback (most recent call last):
       File "/usr/bin/blink", line 30, in <module>
         from blink import Blink
       File "/usr/lib/python2.7/site-packages/blink/__init__.py", line
    47, in <module>
       File "/usr/lib/python2.7/site-packages/blink/chatwindow.py", line
    40, in <module>
       File "/usr/lib/python2.7/site-packages/blink/contacts.py", line
    47, in <module>
       File "/usr/lib/python2.7/site-packages/blink/sessions.py", line
    48, in <module>
       File
    "/usr/lib/python2.7/site-packages/blink/screensharing/__init__.py",
    line 6, in <module>
       File
    "/usr/lib/python2.7/site-packages/blink/screensharing/vncclient.py",
    line 15, in <module>
    ImportError: No module named _rfb

I had previously compiled Blink and all its dependencies and everything 
had been working fine for quite a while, but I think my attempts to run 
a newer version somehow screwed up my config file, because I started 
having trouble making calls and adding contacts, and now when I try to 
use my old config, Blink just hammers my CPU and segfaults at start. I 
tried starting fresh by deleting my ~/.blink directory and downgrading 
back to the previously working packages, but this still doesn't seem to 
properly regenerate a new address book, since I get this error shortly 
after starting:

    Traceback (most recent call last):
       File "/usr/lib/python2.7/site-packages/blink/__init__.py", line
    278, in _EH_CallFunctionEvent
         event.function(*event.args, **event.kw)
       File "/usr/lib/python2.7/site-packages/blink/contacts.py", line
    2393, in handle_notification
         handler(notification)
       File "/usr/lib/python2.7/site-packages/blink/contacts.py", line
    2401, in _NH_SIPApplicationWillStart
         test_group.name = 'Test'
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 94, in __set__
         self.dirty[obj] = value != self.oldvalues[obj]
       File
    "/usr/lib/python2.7/site-packages/application/python/weakref.py",
    line 60, in __getitem__
         return self.__missing__(key)
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 58, in __missing__
         return self.setdefault(key.object, self.default_factory())
    AttributeError: 'Group' object has no attribute 'object'
    error: Exception occured while calling <function
    _NH_XCAPManagerDidReloadData at 0x7fc5831d3050> in the 'file-io' thread
    Traceback (most recent call last):
       File
    "/usr/lib/python2.7/site-packages/sipsimple/threading/__init__.py",
    line 39, in _EH_CallFunctionEvent
         event.function(*event.args, **event.kw)
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 1270, in _NH_XCAPManagerDidReloadData
         contact.name = xcap_contact.name
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 94, in __set__
         self.dirty[obj] = value != self.oldvalues[obj]
       File
    "/usr/lib/python2.7/site-packages/application/python/weakref.py",
    line 60, in __getitem__
         return self.__missing__(key)
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 58, in __missing__
         return self.setdefault(key.object, self.default_factory())
    AttributeError: 'Contact' object has no attribute 'object'
    Traceback (most recent call last):
       File "/usr/lib/python2.7/site-packages/blink/contacts.py", line
    4416, in _SH_Accepted
         contact_uri.uri = item.uri
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 94, in __set__
         self.dirty[obj] = value != self.oldvalues[obj]
       File
    "/usr/lib/python2.7/site-packages/application/python/weakref.py",
    line 60, in __getitem__
         return self.__missing__(key)
       File "/usr/lib/python2.7/site-packages/sipsimple/addressbook.py",
    line 58, in __missing__
         return self.setdefault(key.object, self.default_factory())
    AttributeError: 'ContactURI' object has no attribute 'object'

Any ideas about what to try next? For now I've had to switch to LinPhone.

Thanks for any help,
Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/blink/attachments/20160210/310b8ec1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4248 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.ag-projects.com/pipermail/blink/attachments/20160210/310b8ec1/attachment.bin>


More information about the Blink mailing list