[Blink] run_in_thread() got an unexpected keyword argument 'scheduled'
dan at ag-projects.com
Fri Jun 9 00:19:36 CEST 2017
Blink 3.0.3 depends on python-sipsimple >= 3.1.0
To see all the required dependencies you can consult debian/control in the source. It lists all the dependencies as well as the minimum version for each dependency (if there is such a constraint). Look for the Depends key under the blink package as well as the Build-Depends key under the Source section.
You should do the same for python-sipsimple when you build it as well as any of their dependencies.
The package names might be different from Gentoo, but you should be able to figure out the equivalences.
As a rule of thumb, use the latest version for the packages we provide (blink, python-sipsimple, python-application, python-gnutls, python-msrplib, python-xcaplib, python-otr) and check their minimum version requirements for the external libraries they use.
On 8 Jun 2017, at 22:05, José Ramón Muñoz Pekkarinen wrote:
> After building successfully blink-3.0.3 against sipsimple 3.0.0, I found the following,
> $ 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:
> def run_in_thread(thread_id):
> def thread_decorator(function):
> def wrapper(*args, **kw):
> thread_manager = ThreadManager()
> thread = thread_manager.get_thread(thread_id)
> if thread is current_thread():
> function(*args, **kw)
> thread.put(CallFunctionEvent(function, args, kw))
> return wrapper
> return thread_decorator
> Is this some kind of leftover? Is there any possible workaround?
> Blink mailing list
> Blink at lists.ag-projects.com
More information about the Blink