I independently found the same issue as Joe - that things work with system packages because the Ubuntu-packaged lib has patches applied. (Specifically: https://pastebin.ubuntu.com/p/tdf5kXc26Z/)
I agree that either modifying the where() would work, or modifying the get() or the Session() to take a verify flag.
Probably the easiest one to implement is adding the verify flag at Session instantiation, so as to avoid the need to modify pip-installed packages - but frankly, I think any of these approaches would work for how the charm is presently implemented.
I hit this today as well.
I independently found the same issue as Joe - that things work with system packages because the Ubuntu-packaged lib has patches applied. (Specifically: https:/ /pastebin. ubuntu. com/p/tdf5kXc26 Z/)
I agree that either modifying the where() would work, or modifying the get() or the Session() to take a verify flag.
Probably the easiest one to implement is adding the verify flag at Session instantiation, so as to avoid the need to modify pip-installed packages - but frankly, I think any of these approaches would work for how the charm is presently implemented.