Charmcraft Cache
raw JSON → 0.8.5 verified Sat May 09 auth: no python
Fast first-time builds for charmcraft. Version 0.8.5. Active development with frequent patches.
pip install charmcraftcache Common errors
error ModuleNotFoundError: No module named 'charmcraftcache' ↓
cause Library not installed or installed in wrong Python environment.
fix
Install with: pip install charmcraftcache
error ImportError: cannot import name 'CharmcraftCache' from 'charmcraftcache' ↓
cause Incorrect import path, possibly using a very old version that had a different API.
fix
Use: from charmcraftcache import CharmcraftCache. If using v0.6.x or earlier, upgrade to latest version.
Warnings
breaking Breaking change in v0.8.0: Charmcraft 4 support. If you are on charmcraft 3, do not upgrade. ↓
fix Use charmcraftcache v0.7.x for charmcraft 3 compatibility.
deprecated SyntaxWarning: invalid escape sequence '\[' in v0.8.3, fixed in v0.8.4. ↓
fix Upgrade to v0.8.4 or later.
gotcha Rich dependency added in v0.8.3; ensure your environment has rich installed if using older versions. ↓
fix Install rich: pip install rich or upgrade charmcraftcache to 0.8.3+.
Imports
- CharmcraftCache
from charmcraftcache import CharmcraftCache
Quickstart
from charmcraftcache import CharmcraftCache
cache = CharmcraftCache()
cache.run()