[SIP Beyond VoIP] on debuild, test step fails with "SyntaxError: invalid syntax" in application/python/decorator.py
Tijmen de Mes
tijmen at ag-projects.com
Thu Mar 9 09:24:10 CET 2023
Hi,
You seem to have an old version of python3-application. You need 3.0.5 for python > 3.10.
Best regards,
Tijmen de Mes
—
AG Projects
> Op 8 mrt. 2023, om 23:28 heeft Eugene Crosser <crosser at average.org> het volgende geschreven:
>
> Having installed all hidden dependencies, ported two packages from debian to ubuntu (where they were missing) - python3-klein and its dependency python3-tubes, and fixed a bug in ubuntu's python3-wokkel, I am now getting an error in the "applications" package:
>
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:239: cd /opt/src/sylkserver/dist/sylkserver-6.1.0/.pybuild/cpython3_3.10/build; python3.10 -m unittest discover -v
> WARNING [python] /usr/lib/python3/dist-packages/gevent/monkey.py:1046: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See https://github.com/gevent/gevent/issues/1016. Modules that had direct imports (NOT patched): ['urllib3.util (/usr/lib/python3/dist-packages/urllib3/util/__init__.py)', 'urllib3.util.ssl_ (/usr/lib/python3/dist-packages/urllib3/util/ssl_.py)', 'requests.packages.urllib3.contrib.pyopenssl (/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py)'].
> WARNING [python] _queue_warning(
> sylk.applications.webrtcgateway (unittest.loader._FailedTest) ... ERROR
>
> ======================================================================
> ERROR: sylk.applications.webrtcgateway (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: sylk.applications.webrtcgateway
> Traceback (most recent call last):
> File "/usr/lib/python3.10/unittest/loader.py", line 470, in _find_test_path
> package = self._get_module_from_name(name)
> File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
> __import__(name)
> File "/opt/src/sylkserver/dist/sylkserver-6.1.0/.pybuild/cpython3_3.10/build/sylk/applications/webrtcgateway/__init__.py", line 263, in <module>
> class MessageHandler(object):
> File "/opt/src/sylkserver/dist/sylkserver-6.1.0/.pybuild/cpython3_3.10/build/sylk/applications/webrtcgateway/__init__.py", line 553, in MessageHandler
> def _outgoing_message(self, to_uri, from_uri, content, content_type='text/plain', headers=[], route=None, message_type=Message, subscribe=True):
> File "/usr/lib/python3/dist-packages/sipsimple/threading/green.py", line 59, in run_in_green_thread
> def wrapper(*args, **kw):
> File "/usr/lib/python3/dist-packages/application/python/decorator.py", line 24, in fix_signature
> exec("def {0}{1}: return wrapper{2}".format(func.__name__, sig, parameters), {'wrapper': wrapper}, exec_scope) # can't use tuple form here (see https://bugs.python.org/issue21591)
> File "<string>", line 1
> def _outgoing_message(self, to_uri, from_uri, content, content_type='text/plain', headers=[], route=None, message_type=<class 'sipsimple.core._primitives.Message'>, subscribe=True): return wrapper(self, to_uri, from_uri, content, content_type, headers, route, message_type, subscribe)
> ^
> SyntaxError: invalid syntax
>
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
>
> --
> I have a ~/.plan
>
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
More information about the SIPBeyondVoIP
mailing list