[SIP Beyond VoIP] on debuild, test step fails with "ImportError: Failed to import test module: sylk.configuration"

Eugene Crosser crosser at average.org
Wed Mar 8 22:16:39 CET 2023


On 08/03/2023 16:08, Tijmen de Mes wrote:
> Hi,
> 
> You need to install python3-application: 
> https://github.com/AGProjects/python3-application 
> <https://github.com/AGProjects/python3-application>.

Thank you for the tip!

Having done that, I discovered that it pulls after it a whole bunch of other 
private packages (sipsimple -> eventlib, gnutls, msrplib...), none of which is 
listed as build dependency in the package that uses them. I suppose that they 
should be? Maybe it would also help to have a list of all private dependencies 
somewhere in the build instructions.

As it is, sipsimple takes a looooong time to build, and after everything is 
done, fails on test with "ModuleNotFoundError", making you to find and build the 
next dependency.

(Also some of the builds, instead of using standard "Build-Depends", pull things 
from the Internet. I understand that it makes it impossible to build them in a 
CI system isolated from the Internet.)

(And one more note: "Distribution: unstable" is an invalid distribution for 
lintian when it is run on Ubuntu without LINTIAN_PROFILE: 
https://bugs.launchpad.net/ubuntu/+source/lintian/+bug/1303603)

Thanks,

Eugene

>> Op 8 mrt. 2023, om 15:09 heeft Eugene Crosser <crosser at average.org 
>> <mailto:crosser at average.org>> het volgende geschreven:
>>
>> Hello,
>>
>> with sip client removed from recent Android version, I am looking for a way to 
>> continue to use a couple of SIP accounts that I have with commercial 
>> providers. Because I already run asterisk and ejabberd, and jingle works 
>> perfectly inside xmpp system, I started to look for a bridge between SIP and 
>> Jingle. And because the repo on ag-projects does not support recent Ubuntu 
>> versions, I am trying to build from source.
>>
>> What I did:
>>
>> - Cloned the repo from github (commit 32bf9bb)
>> - Ran `sudo apt build-dep .`
>> - Ran ./makedeb.sh
>>
>> What I got:
>>
>>   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
>> sylk.applications (unittest.loader._FailedTest) ... ERROR
>> sylk.configuration (unittest.loader._FailedTest) ... ERROR
>>
>> ======================================================================
>> ERROR: sylk.applications (unittest.loader._FailedTest)
>> ----------------------------------------------------------------------
>> ImportError: Failed to import test module: sylk.applications
>> 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/__init__.py", line 10, in <module>
>>    from application import log
>> ModuleNotFoundError: No module named 'application'
>>
>>
>> ======================================================================
>> ERROR: sylk.configuration (unittest.loader._FailedTest)
>> ----------------------------------------------------------------------
>>
>> I am at a bit at a loss, I don't see where the module named "application" can 
>> come from, and it is imported from practically everywhere.
>>
>> Any help with this? If it's a wrong place to raise such topics, please point 
>> me to the right one :)

-- 
I have a ~/.plan

-------------- 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/20230308/b3403f11/attachment.sig>


More information about the SIPBeyondVoIP mailing list