Comment 1 for bug 1907063

Revision history for this message
Tom Haddon (mthaddon) wrote :

This has been added, but we've introduced a problem as follows:

application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password Traceback (most recent call last):
application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password File "./src/charm.py", line 13, in <module>
application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password from leadership import LeadershipSettings
application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password File "/var/lib/juju/agents/unit-wordpress-0/charm/src/leadership.py", line 20, in <module>
application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password from typing import Any, Iterable, Dict, MutableMapping, Protocol
application-wordpress: 10:53:01 WARNING unit.wordpress/0.get-initial-password ImportError: cannot import name 'Protocol'

The workload pod is on bionic, which doesn't support "Protocol". Need to confirm if it's possible to simply switch the image to focal, or whether we need to update the leadership library to deal with older versions of "typing".