When installing the charm from latest/edge on lunar we see the following error on unit-vault-X.log
###
2023-07-04 16:05:22 ERROR unit.vault/0.juju-log server.go:316 Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.11/site-packages/charms/reactive/__init__.py", line 71, in main
bus.discover()
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.11/site-packages/charms/reactive/bus.py", line 426, in discover
_register_handlers_from_file(search_path, filepath)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.11/site-packages/charms/reactive/bus.py", line 466, in _register_handlers_from_file
_load_module(root, filepath)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.11/site-packages/charms/reactive/bus.py", line 444, in _load_module
return importlib.import_module(package + module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/var/lib/juju/agents/unit-vault-0/charm/reactive/vault_handlers.py", line 3, in <module>
import psycopg2
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.11/site-packages/psycopg2/__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
###
This is due to psycopg2 being pinned to 2.8.6
Unpinning the package and installing latest 2.9.6 works fine.
When installing the charm from latest/edge on lunar we see the following error on unit-vault-X.log
###
2023-07-04 16:05:22 ERROR unit.vault/ 0.juju- log server.go:316 Hook error: juju/agents/ unit-vault- 0/.venv/ lib/python3. 11/site- packages/ charms/ reactive/ __init_ _.py", line 71, in main juju/agents/ unit-vault- 0/.venv/ lib/python3. 11/site- packages/ charms/ reactive/ bus.py" , line 426, in discover handlers_ from_file( search_ path, filepath) juju/agents/ unit-vault- 0/.venv/ lib/python3. 11/site- packages/ charms/ reactive/ bus.py" , line 466, in _register_ handlers_ from_file module( root, filepath) juju/agents/ unit-vault- 0/.venv/ lib/python3. 11/site- packages/ charms/ reactive/ bus.py" , line 444, in _load_module import_ module( package + module)
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ python3. 11/importlib/ __init_ _.py", line 126, in import_module _gcd_import( name[level: ], package, level)
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ _bootstrap> ", line 1206, in _gcd_import _bootstrap> ", line 1178, in _find_and_load _bootstrap> ", line 1149, in _find_and_ load_unlocked _bootstrap> ", line 690, in _load_unlocked _bootstrap_ external> ", line 940, in exec_module _bootstrap> ", line 241, in _call_with_ frames_ removed juju/agents/ unit-vault- 0/charm/ reactive/ vault_handlers. py", line 3, in <module> juju/agents/ unit-vault- 0/.venv/ lib/python3. 11/site- packages/ psycopg2/ __init_ _.py", line 51, in <module>
Traceback (most recent call last):
File "/var/lib/
bus.discover()
File "/var/lib/
_register_
File "/var/lib/
_load_
File "/var/lib/
return importlib.
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/var/lib/
import psycopg2
File "/var/lib/
from psycopg2._psycopg import ( # noqa
###
This is due to psycopg2 being pinned to 2.8.6
Unpinning the package and installing latest 2.9.6 works fine.