Can't get libjuju to work, help

I’m trying to use libjuju, but I can’t get the basic instructions to work out for me. Probably I’m just not using it right?

Does someone have experience using libjuju to share with me?

Here is the path I’m taking filed as a bug: https://github.com/juju/python-libjuju/issues/440

Similarly to Chris’ comment on the bug, I’m able to follow the steps that you outlined successfully:

python3 -m venv test-libjuju
source ./test-libjuju/bin/activate
pip install juju
python3
>>> from juju.model import Model

I’m running Python 3.8.2, and I did a which pip before running pip install to verify that I was getting the pip from my venv, and not a system wide pip.

You might take a look at the site-packages within your venv to verify that juju successfully installed.