Already reported by me and Fixed by Andreas Tille in the Debian-Med team.
Python3 syntax is used in _metaphlan2.py, but "pycompile" run by the "postinst" script only supports Python2. Fixed by adding "print()" and removing function annotations:
/usr/share/metaphlan2# diff -Naur _metaphlan2.py.dist _metaphlan2.py
--- _metaphlan2.py.dist 2018-02-07 10:43:00.000000000 +0000
+++ _metaphlan2.py 2018-06-15 16:09:30.056981110 +0100
@@ -3,7 +3,7 @@
# This module defines the functions which run MetaPhlAn2 on
# single and paired fastq data.
-
+from __future__ import print_function
import subprocess as sb
from q2_types.per_sample_sequences import SingleLanePerSampleSingleEndFastqDirFmt
from q2_types.per_sample_sequences import SingleLanePerSamplePairedEndFastqDirFmt
@@ -24,8 +24,7 @@
sb.run(cmd, check=True)
Already reported by me and Fixed by Andreas Tille in the Debian-Med team.
Python3 syntax is used in _metaphlan2.py, but "pycompile" run by the "postinst" script only supports Python2. Fixed by adding "print()" and removing function annotations:
/usr/share/ metaphlan2# diff -Naur _metaphlan2.py.dist _metaphlan2.py
--- _metaphlan2.py.dist 2018-02-07 10:43:00.000000000 +0000
+++ _metaphlan2.py 2018-06-15 16:09:30.056981110 +0100
@@ -3,7 +3,7 @@
# This module defines the functions which run MetaPhlAn2 on
# single and paired fastq data.
- per_sample_ sequences import SingleLanePerSa mpleSingleEndFa stqDirFmt per_sample_ sequences import SingleLanePerSa mplePairedEndFa stqDirFmt
+from __future__ import print_function
import subprocess as sb
from q2_types.
from q2_types.
@@ -24,8 +24,7 @@
sb.run(cmd, check=True)
-def profile_ single_ fastq(raw_ data: SingleLanePerSa mpleSingleEndFa stqDirFmt, single_ fastq(raw_ data, nproc=1):
- nproc: int=1) -> biom.Table:
+def profile_
output_biom = None
with tempfile. TemporaryDirect ory() as tmp_dir:
@@ -36,8 +35,7 @@
return output_biom
-def profile_ paired_ fastq(raw_ data: SingleLanePerSa mplePairedEndFa stqDirFmt, paired_ fastq(raw_ data, nproc=1):
- nproc: int=1) -> biom.Table:
+def profile_
output_biom = None
with tempfile. TemporaryDirect ory() as tmp_dir:
ProblemType: Package metaphlan2/ _metaphlan2. py] ature: Ubuntu 4.15.0- 23.25-generic 4.15.18 dules: zfs zunicode zavl icp zcommon znvpair ture: all ersions: metaphlan2/ _metaphlan2. py] failed to install/upgrade: installed metaphlan2 package post-installation script subprocess returned error exit status 101
DistroRelease: Ubuntu 18.04
Package: metaphlan2 2.7.5-1 [modified: usr/share/
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Fri Jun 15 15:07:54 2018
ErrorMessage: installed metaphlan2 package post-installation script subprocess returned error exit status 101
PackageArchitec
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.1
SourcePackage: metaphlan2
Title: package metaphlan2 2.7.5-1 [modified: usr/share/
UpgradeStatus: No upgrade log present (probably fresh install)