Currently facing a problem with dh_auto_test: while running test w/ avocado-framework.
Avocado is not packaged in Ubuntu/Debian, and requires to be installed via 'pip3 install avocado-framework' which doesn't seem to be accepted by the builder.
but got the following error at build time from my PPA:
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pip3 install avocado-framework
WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4cd153d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4cc68cd0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4cc680a0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4cc685b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/avocado-framework/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4cc68760>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/avocado-framework/
ERROR: Could not find a version that satisfies the requirement avocado-framework
ERROR: No matching distribution found for avocado-framework
Still under investigation.
I might have no other option but to package avocado-framework and add it as a Build-Depends, as I'm not a fan of disabling dh_auto_test: .
# Note
Currently facing a problem with dh_auto_test: while running test w/ avocado-framework.
Avocado is not packaged in Ubuntu/Debian, and requires to be installed via 'pip3 install avocado-framework' which doesn't seem to be accepted by the builder.
Tried severals scenarios such as:
# d/rules: dh_auto_ test: cleaner, collect, report, vendor} _tests
override_
pip3 install avocado-framework
export PYTHONPATH=tests/
avocado run -t stageone tests/{
but got the following error at build time from my PPA:
debian/rules override_ dh_auto_ test nonexistent/ .cache/ pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. rror('< urllib3. connection. HTTPSConnection object at 0x7f5a4cd153d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/ avocado- framework/ rror('< urllib3. connection. HTTPSConnection object at 0x7f5a4cc68cd0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/ avocado- framework/ rror('< urllib3. connection. HTTPSConnection object at 0x7f5a4cc680a0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/ avocado- framework/ rror('< urllib3. connection. HTTPSConnection object at 0x7f5a4cc685b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/ avocado- framework/ rror('< urllib3. connection. HTTPSConnection object at 0x7f5a4cc68760>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/ avocado- framework/
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pip3 install avocado-framework
WARNING: The directory '/sbuild-
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
ERROR: Could not find a version that satisfies the requirement avocado-framework
ERROR: No matching distribution found for avocado-framework
Still under investigation.
I might have no other option but to package avocado-framework and add it as a Build-Depends, as I'm not a fan of disabling dh_auto_test: .
- Eric