[Blink] run_in_thread() got an unexpected keyword argument 'scheduled'

José Ramón Muñoz Pekkarinen koalinux at gmail.com
Thu Jun 8 21:05:16 CEST 2017


    Hi,

    After building successfully blink-3.0.3 against sipsimple 3.0.0, I
found the following,
backtrace:

$ blink
Traceback (most recent call last):
  File "/usr/bin/blink", line 67, in <module>
    from blink import Blink
  File "/usr/lib64/python2.7/site-packages/blink/__init__.py", line 31, in
<module>
    from blink.chatwindow import ChatWindow
  File "/usr/lib64/python2.7/site-packages/blink/chatwindow.py", line 39,
in <module>
    from blink.contacts import URIUtils
  File "/usr/lib64/python2.7/site-packages/blink/contacts.py", line 780, in
<module>
    class GoogleContactsManager(object):
  File "/usr/lib64/python2.7/site-packages/blink/contacts.py", line 845, in
GoogleContactsManager
    @run_in_thread('network-io', scheduled=True)
TypeError: run_in_thread() got an unexpected keyword argument 'scheduled'

    Taking a look to the definition of the decorator it actually doesn't
have any parameter
like this:

@decorator
def run_in_thread(thread_id):
    def thread_decorator(function):
        @preserve_signature(function)
        def wrapper(*args, **kw):
            thread_manager = ThreadManager()
            thread = thread_manager.get_thread(thread_id)
            if thread is current_thread():
                function(*args, **kw)
            else:
                thread.put(CallFunctionEvent(function, args, kw))
        return wrapper
    return thread_decorator

    Is this some kind of leftover? Is there any possible workaround?

    Thanks!

    José
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/blink/attachments/20170608/1dd2a5ef/attachment.html>


More information about the Blink mailing list