The autopkgtest failures [1] on this seem unrelated as they are failing to importoslo.versionedobjects and there is no oslo found. This same failure occurs on python-oslo.versionedobjects without using the new python-oslo.messaging from proposed and a later (Groovy) version of python-oslo.versionedobjects has updated debian/tests/python-import to handle the import differently; specifically, the Bionic version is:
set -e
for py in $(py3versions -r 2>/dev/null) ; do
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -c "import oslo.versionedobjects; print(oslo.versionedobjects)"
done
and the Groovy version is:
#!/bin/sh
set -e
MODULE_NAME=$(python3 setup.py --name | sed 's/\./_/g')
for py in $(py3versions -r 2>/dev/null) ; do
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -c "import $MODULE_NAME; print($MODULE_NAME)"
done
The big difference to call out is that the groovy version replaces the dot ('.') after oslo with an underscore for the module import.
The autopkgtest failures [1] on this seem unrelated as they are failing to importoslo. versionedobject s and there is no oslo found. This same failure occurs on python- oslo.versionedo bjects without using the new python- oslo.messaging from proposed and a later (Groovy) version of python- oslo.versionedo bjects has updated debian/ tests/python- import to handle the import differently; specifically, the Bionic version is:
set -e
for py in $(py3versions -r 2>/dev/null) ; do bjects; print(oslo. versionedobject s)"
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -c "import oslo.versionedo
done
and the Groovy version is:
#!/bin/sh
set -e
MODULE_ NAME=$( python3 setup.py --name | sed 's/\./_/g')
for py in $(py3versions -r 2>/dev/null) ; do MODULE_ NAME)"
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -c "import $MODULE_NAME; print($
done
The big difference to call out is that the groovy version replaces the dot ('.') after oslo with an underscore for the module import.
[1]: https:/ /people. canonical. com/~ubuntu- archive/ proposed- migration/ bionic/ update_ excuses. html#python- oslo.messaging