Python help needed for test suite in multiqc

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Python help needed for test suite in multiqc

Andreas Tille-5
Hi Python folks,

the Debian Med team intends to package multiqc[1].  When running the build
time tests I get:


...
   debian/rules override_dh_auto_test
make[1]: Verzeichnis „/build/multiqc-1.8+dfsg“ wird betreten
cp -a multiqc*.egg-info /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build
PYTHONPATH=/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build dh_auto_test
I: pybuild base:217: cd /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build; python3.7 -m unittest discover -v
multiqc (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: multiqc (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: multiqc
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/__init__.py", line 16, in <module>
    from .multiqc import run
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/multiqc.py", line 38, in <module>
    from .utils import report, plugin_hooks, megaqc, util_functions, lint_helpers, config, log
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/utils/log.py", line 7, in <module>
    import coloredlogs
  File "/usr/lib/python3/dist-packages/coloredlogs/__init__.py", line 192, in <module>
    from humanfriendly.terminal import ANSI_COLOR_CODES, ansi_wrap, terminal_supports_colors
ModuleNotFoundError: No module named 'humanfriendly.terminal'


----------------------------------------------------------------------
Ran 1 test in 0.000s



I'm wondering what else I need to do besides adding
python3-humanfriendly to Build-Depends to let this test pass.

Kind regards

        Andreas.


[1] https://salsa.debian.org/med-team/multiqc

--
http://fam-tille.de

Reply | Threaded
Open this post in threaded view
|

Re: Python help needed for test suite in multiqc

Andrey Rahmatullin-3
On Wed, Mar 25, 2020 at 08:31:10PM +0100, Andreas Tille wrote:

> Hi Python folks,
>
> the Debian Med team intends to package multiqc[1].  When running the build
> time tests I get:
>
>
> ...
>    debian/rules override_dh_auto_test
> make[1]: Verzeichnis „/build/multiqc-1.8+dfsg“ wird betreten
> cp -a multiqc*.egg-info /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build
> PYTHONPATH=/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build dh_auto_test
> I: pybuild base:217: cd /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build; python3.7 -m unittest discover -v
> multiqc (unittest.loader._FailedTest) ... ERROR
>
> ======================================================================
> ERROR: multiqc (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: multiqc
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
>     package = self._get_module_from_name(name)
>   File "/usr/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
>     __import__(name)
>   File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/__init__.py", line 16, in <module>
>     from .multiqc import run
>   File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/multiqc.py", line 38, in <module>
>     from .utils import report, plugin_hooks, megaqc, util_functions, lint_helpers, config, log
>   File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/utils/log.py", line 7, in <module>
>     import coloredlogs
>   File "/usr/lib/python3/dist-packages/coloredlogs/__init__.py", line 192, in <module>
>     from humanfriendly.terminal import ANSI_COLOR_CODES, ansi_wrap, terminal_supports_colors
> ModuleNotFoundError: No module named 'humanfriendly.terminal'
http://bugs.debian.org/954640

--
WBR, wRAR

signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Python help needed for test suite in multiqc

Andreas Tille-2
Hi Andrey,

On Thu, Mar 26, 2020 at 12:34:11AM +0500, Andrey Rahmatullin wrote:
> http://bugs.debian.org/954640

Thanks a lot.  Multiqc builds with humanfriendly from Git.

Kind regards

       Andreas.

--
http://fam-tille.de

Reply | Threaded
Open this post in threaded view
|

Re: Python help needed for test suite in multiqc

Scott Kitterman-5


On March 26, 2020 7:02:20 AM UTC, Andreas Tille <[hidden email]> wrote:

>Hi Andrey,
>
>On Thu, Mar 26, 2020 at 12:34:11AM +0500, Andrey Rahmatullin wrote:
>> http://bugs.debian.org/954640
>
>Thanks a lot.  Multiqc builds with humanfriendly from Git.
>
>Kind regards
>
>       Andreas.

The bug is fixed in Unstable now.

Scott K