<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have a software-properties SRU [1] in bionic that has phasing stopped due to an error [2].</div><div><br></div><div>The stack trace is showing the following (new) code is failing:</div><div><br></div><div>    di = distro_info.UbuntuDistroInfo()<br>    releases = di.get_all(result="object")</div><div><br></div><div>with the error:</div><div><br></div><div>    AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'</div><div><br></div><div>This is very confusing, since the code from this (from the distro-info library) is essentially:</div><div><br></div><div>    class DistroInfo:</div><div>        def get_all(self, result="codename"):</div><div>            ...</div><div><br></div><div>    class UbuntuDistroInfo(DistroInfo):<br>        def __init__(self):<br>            super().__init__("Ubuntu")<br></div><div><br></div><div>i.e. I can't see any reason why the `di` object would not have a get_all() method. Running software-properties and various test scripts on a bionic VM I haven't been able to reproduce any such issues.<br></div><div><br></div><div>Theories that have been proposed:</div><div>- The user is actually running an older version of disto-info that was from before this method was added (in distro-info 0.15).</div><div>  - Seems unlikely since there are error cases in which the install was done with a bionic image.</div><div>- The user has a locally installed version of distro-info.</div><div>  - Stacktraces shows the system installed version, the appropriate version of the binary installed, no PYTHONPATH set.</div><div>- A .pyc is being used that doesn't match the source.</div><div>  - Since installs have been from bionic media, it seems impossible that an older .pyc could be created.</div><div><div>- Other code has removed this method.</div><div>  - Method is being accessed immediately, no other code seen in source that could do this.</div></div><div>- Memory corruption.</div><div> - Too many cases for error to be random, not seeing other similar issues.<br></div><div><br></div><div>Does anyone have any ideas about what might be going on?<br></div><div><br></div><div>--Robert<br></div><div><br></div><div>[1] <a href="https://launchpad.net/ubuntu/+source/software-properties/0.96.24.32.18">https://launchpad.net/ubuntu/+source/software-properties/0.96.24.32.18</a></div><div>[2] <a href="https://errors.ubuntu.com/problem/477791e8cc662f8dca46050bb638e273028a522f">https://errors.ubuntu.com/problem/477791e8cc662f8dca46050bb638e273028a522f</a></div></div>