charmcraft build failed on ubuntu focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-cloudstats |
Fix Released
|
High
|
Xav Paice |
Bug Description
I am using snap for charmcraft.
Also, I added a charmcraft yaml file as prompted:
cat charmcraft.yaml
type: charm
bases:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64"]
charmcraft clean && charmcraft build -t
```
from .environment import Environment as Environment
File "/tmp/pip-
from markupsafe import Markup
ModuleNotFoundE
```
Even though I modified requirements.txt to be like this:
```
cat requirements.txt
wheel
markupsafe # markupsafe is added for above error
charmhelpers
ops
```
But error is same.
full output: https:/
Related branches
- BootStack Reviewers: Pending requested
-
Diff: 63 lines (+20/-1)4 files modifiedcharmcraft.yaml (+14/-0)
requirements.txt (+1/-0)
src/charm.py (+4/-0)
tests/unit/test_charm.py (+1/-1)
Changed in charm-cloudstats: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-cloudstats: | |
assignee: | nobody → Xav Paice (xavpaice) |
Changed in charm-cloudstats: | |
status: | Fix Committed → Fix Released |
xav's patch is merged into master. main changes:
1. add charmcraft.yaml with `python3-marksafe`:
``` markupsafe, bash]
> $ cat charmcraft.yaml
type: charm
parts:
charm:
build-packages: [python3-
```
2. limit Jinjia2 version:
```
cat requirements.txt
Jinja2<3
```
I have verified `charmcraft build` is working on my machine (focal).