Hi all,
Before digging any deeper I'll ask the list for advice. It's possible someone's bumped into the same error. I've upgraded from Ubuntu 20 LTS with
intelmq-api 3.1.0~rc-1 intelmq-manager 3.2.0-1 intelmq 3.1.0-1 python3.8
to Ubuntu 22 LTS. Now, when trying to build intelmq-3.2.2 + a few of our own bots on this upgraded host with
dpkg-buildpackage -us -us -b
the build fails with:
test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: python3.10 setup.py test dh_auto_test: error: pybuild --test -i python{version} -p 3.10 returned exit code 13 make: *** [debian/rules:24: build] Error 255 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The host has python3-distutils 3.10.8-1~22.04 installed.
Any hints on what lies behind this error?
Br & thanks, Mika
Hi Mika,
On 9/1/23 09:28, Mika Silander wrote:
dpkg-buildpackage -us -us -b
Maybe you meant '-us -uc'?
the build fails with:
test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: python3.10 setup.py test dh_auto_test: error: pybuild --test -i python{version} -p 3.10 returned exit code 13 make: *** [debian/rules:24: build] Error 255 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The host has python3-distutils 3.10.8-1~22.04 installed.
The error message says, that the test command failed. You can find the failing test(s) by scrolling up a bit, probably a missing dependency. If you do not want to execute the tests at build, you can as well deactivate them by setting an environment variable for pybuild (I don't have the name of the variable at hand, I bet you'll find it quickly).
hope that helps Sebastian
Hi Mika&Sebix,
I'd also suggest looking upper in the log – the 'test-bot' entries are unfortunately normal thing generated by tests, but before them (possible – before a big amount of those logs) should be a real error message. This should clarify what's going on.
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/1/23 13:32, Sebix wrote:
Hi Mika,
On 9/1/23 09:28, Mika Silander wrote:
dpkg-buildpackage -us -us -b
Maybe you meant '-us -uc'?
the build fails with:
test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: python3.10 setup.py test dh_auto_test: error: pybuild --test -i python{version} -p 3.10 returned exit code 13 make: *** [debian/rules:24: build] Error 255 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The host has python3-distutils 3.10.8-1~22.04 installed.
The error message says, that the test command failed. You can find the failing test(s) by scrolling up a bit, probably a missing dependency. If you do not want to execute the tests at build, you can as well deactivate them by setting an environment variable for pybuild (I don't have the name of the variable at hand, I bet you'll find it quickly).
hope that helps Sebastian
Hi Sebastian & Kamil,
Looks like it was subtle small changes in conf parameters and then a few failing tests of my own, so I'll get them fixed in due course. Finding that out though meant scrolling kilometers' worth of lines of the build log, something I didn't expect.
The dpkg-buildpackage command was indeed given the options
-us -uc -b
so that was a tyop of mine in my original message.
Thanks for your comments and suggestions, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Sebix" sebix@sebix.at, "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 4 September, 2023 11:06:59 Subject: Re: [IntelMQ-dev] Trouble building deb package for intelmq-3.2.2
Hi Mika&Sebix,
I'd also suggest looking upper in the log – the 'test-bot' entries are unfortunately normal thing generated by tests, but before them (possible – before a big amount of those logs) should be a real error message. This should clarify what's going on.
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/1/23 13:32, Sebix wrote:
Hi Mika,
On 9/1/23 09:28, Mika Silander wrote:
dpkg-buildpackage -us -us -b
Maybe you meant '-us -uc'?
the build fails with:
test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. test-bot: Processed 1 messages since last logging. test-bot: Bot stopped. E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: python3.10 setup.py test dh_auto_test: error: pybuild --test -i python{version} -p 3.10 returned exit code 13 make: *** [debian/rules:24: build] Error 255 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The host has python3-distutils 3.10.8-1~22.04 installed.
The error message says, that the test command failed. You can find the failing test(s) by scrolling up a bit, probably a missing dependency. If you do not want to execute the tests at build, you can as well deactivate them by setting an environment variable for pybuild (I don't have the name of the variable at hand, I bet you'll find it quickly).
hope that helps Sebastian