Closed jneo8 closed 10 months ago
(by vultaire) If this is a charmcraft-built charm, this is easy to fix. I've done this for a few charms already.
See here: https://discourse.charmhub.io/t/install-or-update-python-packages-before-packing-a-charm/5158
(by raychan96) For which release are you seeing this problem? I saw bionic is having similar problem: missing rustc.
(by valexby) Hi Ray,
The series are Bionic, duplicity is of version 0.7.17-0ubuntu1.1 and the charm is revision 12.
Hope that helps.
(by rgildein)
Hi Paul (@vultaire) we could not use charm-python-packages
, since this is reactive charm
and we are using reactive plugin.
However we potentially could use build-packages
and define fabric
(cryptography
) in
wheelhouse.txt instead of installing in with layers. However I could not make it work, so for
now I proposed only add pkg-config
and disabling include_system_packages
.
The
install
hook fails due to an old version ofpip
.When installing "fabric" via pip, the dependency "cryptography" fails with a message stating the version of pip is too old and a traceback as follows: 0
Traceback (most recent call last): File "", line 1, in
File "/var/lib/pip/pip-build-y4ldt5j2/cryptography/setup.py", line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
The
install
hook succeeds when the modification for bug 1968366 is applied alongside an upgrade of pip as follows: $ python -m pip install --upgrade pipIf possible, the charm needs to ensure the supported version of pip is available for the dependencies it intends to install during the
install
hook.Imported from Launchpad using lp2gh.
date created: 2022-04-08T18:08:52Z
owner: jplettman
assignee: rgildein
the launchpad url