Comment 10 for bug 1930121

Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Thank you for the additional information fagner128!

The error you posted here is actually slightly different in the details. The python error is "ImportError: cannot import name 'Type'".

And it looks like you have a non standard python install in /usr/local/bin/python3 that is taking precedence over the system /usr/bin/python3.

My guess is that the specific version installed at /usr/local/bin/python3 is older than 3.5.2 which is when typing.Type was introduced. Can you confirm by running `/usr/local/bin/python3 --version`?

This should be fixed when ubuntu-advantage-tools 27.4 is released, which is being tracked in bug 1949634 and is expected to be out by the end of November.

In the mean time try the following:
env PATH=/usr/bin:$PATH apt upgrade

Hopefully that will cause the ubuntu-advantage-tools install to use /usr/bin/python3.