charmcraft isn't installed with poetry install --with dev following CONTRIBUTING.md
note: The ERROR No controllers registered. is fine because I did not have a controller previously created.
ubuntu@juju-vm:~/landscape-server-operator$ make BUNDLE_PATH=./bundle-examples/internal-haproxy.bundle.yaml deploy
make[1]: Entering directory '/home/ubuntu/landscape-server-operator'
rm -f landscape-server_ubuntu@24.04-amd64.charm
juju destroy-model --no-prompt landscape-server-operator-build \
--force --no-wait --destroy-storage
ERROR No controllers registered.
Please either create a new controller using "juju bootstrap" or connect to
another controller that you have been given access to using "juju register".
make[1]: [Makefile:96: clean] Error 2 (ignored)
make[1]: Leaving directory '/home/ubuntu/landscape-server-operator'
make[1]: Entering directory '/home/ubuntu/landscape-server-operator'
poetry run ccc pack --platform ubuntu@24.04:amd64
/home/ubuntu/.cache/pypoetry/virtualenvs/landscape-charm-K1sasgI8-py3.12/lib/python3.12/site-packages/charmcraftcache/_main.py:83: SyntaxWarning: invalid escape sequence '\['
log_format = "\[charmcraftcache] {levelname} {message}"
/home/ubuntu/.cache/pypoetry/virtualenvs/landscape-charm-K1sasgI8-py3.12/lib/python3.12/site-packages/charmcraftcache/_main.py:453: SyntaxWarning: invalid escape sequence '\['
description="\[charmcraftcache] Downloading cache",
[charmcraftcache] Update available. Run `pipx upgrade charmcraftcache` (0.8.0 -> 0.8.3)
[charmcraftcache] Searching for this charm's cache
[charmcraftcache] Downloading cache ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
[charmcraftcache] Unpacking download
[charmcraftcache] Packing platform: 'ubuntu@24.04:amd64'
╭────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────╮
│ /home/ubuntu/.cache/pypoetry/virtualenvs/landscape-charm-K1sasgI8-py3.12/lib/python3.12/site-packages/charmcraftcache/_main.py:510 in pack │
│ │
│ 507 │ │
│ 508 │ for platform_ in platforms: │
│ 509 │ │ logger.info(f"Packing platform: {repr(platform_)}") │
│ ❱ 510 │ │ run_charmcraft( │
│ 511 │ │ │ ["pack", "--platform", platform_, *context.args], │
│ 512 │ │ │ charmcraft_cache_dir=charm_cache / platform_, │
│ 513 │ │ ) │
│ │
│ /home/ubuntu/.cache/pypoetry/virtualenvs/landscape-charm-K1sasgI8-py3.12/lib/python3.12/site-packages/charmcraftcache/_main.py:108 in run_charmcraft │
│ │
│ 105 │ except FileNotFoundError: │
│ 106 │ │ version = None │
│ 107 │ if packaging.version.parse(version or "0.0.0") < packaging.version.parse("3.3.0"): │
│ ❱ 108 │ │ raise Exception(f"charmcraft {version or 'not'} installed. charmcraft >=3.3.0 re │
│ 109 │ env = os.environ │
│ 110 │ if charmcraft_cache_dir: │
│ 111 │ │ env["CRAFT_SHARED_CACHE"] = str(charmcraft_cache_dir) │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Exception: charmcraft not installed. charmcraft >=3.3.0 required
make[1]: *** [Makefile:37: build] Error 1
make[1]: Leaving directory '/home/ubuntu/landscape-server-operator'
make: *** [Makefile:41: deploy] Error 2
ubuntu@juju-vm:~/landscape-server-operator$ poetry install --with dev
Installing dependencies from lock file
No dependencies to install or update
charmcraft isn't installed with
poetry install --with devfollowingCONTRIBUTING.mdnote: The
ERROR No controllers registered.is fine because I did not have a controller previously created.