Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12383 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2020-03-25 20:40 +0100 |
| Last post | 2020-03-26 12:50 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.debian.maint.python
Python help needed for test suite in multiqc Andreas Tille <andreas@an3as.eu> - 2020-03-25 20:40 +0100
Re: Python help needed for test suite in multiqc Andrey Rahmatullin <wrar@debian.org> - 2020-03-25 20:40 +0100
Re: Python help needed for test suite in multiqc Andreas Tille <tille@debian.org> - 2020-03-26 08:10 +0100
Re: Python help needed for test suite in multiqc Scott Kitterman <debian@kitterman.com> - 2020-03-26 12:50 +0100
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2020-03-25 20:40 +0100 |
| Subject | Python help needed for test suite in multiqc |
| Message-ID | <zOk2B-7jS-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Andrey Rahmatullin <wrar@debian.org> |
|---|---|
| Date | 2020-03-25 20:40 +0100 |
| Message-ID | <zOk2B-7jS-5@gated-at.bofh.it> |
| In reply to | #12383 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <tille@debian.org> |
|---|---|
| Date | 2020-03-26 08:10 +0100 |
| Message-ID | <zOuOl-5FY-5@gated-at.bofh.it> |
| In reply to | #12384 |
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
[toc] | [prev] | [next] | [standalone]
| From | Scott Kitterman <debian@kitterman.com> |
|---|---|
| Date | 2020-03-26 12:50 +0100 |
| Message-ID | <zOzbk-8aA-11@gated-at.bofh.it> |
| In reply to | #12385 |
On March 26, 2020 7:02:20 AM UTC, Andreas Tille <tille@debian.org> 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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web