[SIP Beyond VoIP] on debuild, test step fails with "SyntaxError: invalid syntax" in application/python/decorator.py

Eugene Crosser crosser at average.org
Thu Mar 9 18:05:58 CET 2023


Hi!

On 09/03/2023 17:55, Tijmen de Mes wrote:
> Hi Eugene,
> 
> I pushed a patch to python3-application and this error should be fixed now.
> 
> If you fetch the latest (3.0.6) (4dead9d) it should be working.

I confirm that I can build the package, and install it.
Thank you very much!

A little note: ./makedeb.sh was rebulding the _previous_ version until I
removed everything from the `dist` directory by hand.

Regads,

Eugene

>> I can confirm the problem. I will check if I can find a solution for this.
>>
>> Best regards,
>>
>> Tijmen de Mes
>>>> AG Projects
>>
>>> Op 9 mrt. 2023, om 16:44 heeft Eugene Crosser <crosser at average.org
>>> <mailto:crosser at average.org>> het volgende geschreven:
>>>
>>> Hello,
>>>
>>> On 09/03/2023 09:24, Tijmen de Mes wrote:
>>>
>>>> You seem to have an old version of python3-application. You need
>>>> 3.0.5 for python > 3.10.
>>>
>>> It's from github HEAD (commit a90678fbf36a6c877b223738161691b6fa97dbf4
>>> (HEAD -> master, tag: release-3.0.5, origin/master, origin/HEAD)).
>>> Should I rather pull from darcs?
>>>
>>> Python is 3.10.6, if it matters.
>>>
>>> It looks to me as if sipsimple.core._primitives.Message lacks `__repr__`
>>> maybe, or something like that?
>>>
>>> Regards,
>>>
>>> Eugene
>>>
>>>>> 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
>>>>> <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
>>>>> <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
>>>>> <mailto:SIPBeyondVoIP at lists.ag-projects.com>
>>>>> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
>>>>
>>>> _______________________________________________
>>>> SIPBeyondVoIP mailing list
>>>> SIPBeyondVoIP at lists.ag-projects.com
>>>> <mailto:SIPBeyondVoIP at lists.ag-projects.com>
>>>> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
>>> _______________________________________________
>>> SIPBeyondVoIP mailing list
>>> SIPBeyondVoIP at lists.ag-projects.com
>>> <mailto:SIPBeyondVoIP at lists.ag-projects.com>
>>> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
>>
>> _______________________________________________
>> SIPBeyondVoIP mailing list
>> SIPBeyondVoIP at lists.ag-projects.com
>> <mailto:SIPBeyondVoIP at lists.ag-projects.com>
>> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
> 
> 
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20230309/b4a7b1f5/attachment.sig>


More information about the SIPBeyondVoIP mailing list