On 30/01/25 at 17:57 +0000, Colin Watson wrote:
> Control: retitle -1 xphyle: FTBFS: EOFError: gzip process returned non-zero
> exit code 1
>
> On Fri, Jan 24, 2025 at 09:32:45PM +0100, Lucas Nussbaum wrote:
> > Relevant part (hopefully):
> > > debian/rules binary
> > > dh binary --buildsystem=pybuild
> > > dh_update_autotools_config -O--buildsystem=pybuild
> > > dh_autoreconf -O--buildsystem=pybuild
> > > dh_auto_configure -O--buildsystem=pybuild
> > > pybuild --configure -i python{version} -p "3.12 3.13"
> > > dh_auto_build -O--buildsystem=pybuild
> > > pybuild --build -i python{version} -p "3.12 3.13"
> > > I: pybuild plugin_pyproject:129: Building wheel for python3.12 with
> > > "build" module
> > > I: pybuild base:311: python3.12 -m build --skip-dependency-check
> > > --no-isolation --wheel --outdir
> > > /build/reproducible-path/xphyle-4.4.4/.pybuild/cpython3_3.12_xphyle
> > > * Building wheel...
> > > /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261:
> > > UserWarning: Unknown distribution option: 'tests_require'
> > > warnings.warn(msg)
> > > WARNING setuptools_scm.pyproject_reading toml section missing
> > > 'pyproject.toml does not contain a tool.setuptools_scm section'
> > > Traceback (most recent call last):
> > > File
> > > "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
> > > line 36, in read_pyproject
> > > section = defn.get("tool", {})[tool_name]
> > > ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
> > > KeyError: 'setuptools_scm'
>
> This isn't actually the problem, as the build proceeds. The real error
> (which seems unrelated) is a test failure:
>
> > > _________________________ XphyleTests.test_xopen_file
> > > __________________________
> > >
> > > self = <tests.test_xphyle.XphyleTests testMethod=test_xopen_file>
> > >
> > > def test_xopen_file(self):
> > > with self.assertRaises(IOError):
> > > xopen("foobar", "r")
> > > path = self.root.make_file(suffix=".gz")
> > > > with xopen(path, "rU", context_wrapper=True) as i:
> > >
> > > tests/test_xphyle.py:197:
> > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> > > _ _ _
> > > xphyle/__init__.py:191: in __exit__
> > > self.close()
> > > xphyle/__init__.py:241: in close
> > > self._close()
> > > xphyle/__init__.py:248: in _close
> > > self._fileobj.close()
> > > xphyle/formats.py:188: in close
> > > self._raise_if_error()
> > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> > > _ _ _
> > >
> > > self = <xphyle.formats.SystemReader object at 0x7fba91145790>
> > >
> > > def _raise_if_error(self) -> None:
> > > """Raise EOFError if process is not running anymore and the
> > > exit code is nonzero.
> > > """
> > > retcode = self.process.poll()
> > > if retcode is not None and retcode != 0: # pragma: no-cover
> > > > raise EOFError(
> > > f"{self.executable_name} process returned non-zero exit
> > > code "
> > > f"{retcode}. Is the input file truncated or corrupt?"
> > > )
> > > E EOFError: gzip process returned non-zero exit code 1. Is the
> > > input file truncated or corrupt?
> > >
> > > xphyle/formats.py:201: EOFError
> > > ----------------------------- Captured stderr call
> > > -----------------------------
> > >
> > > gzip: /tmp/tmpcozz12na/_xyfblr4.gz: unexpected end of file
>
> However, I tried building this locally and it worked for me. I've
> attached a build log and a diff against yours. Does the failure still
> reproduce on your end?
Hi,
yes, I still reproduce the same failure, sorry.
Lucas