You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clear environment variables when running apt (#641)
* Clear environment variables when running apt
When running 'apt' within the snap the environment variables set will
make it run with the python version embedded in the snap instead of the
system's tools, this will make the package installation fail with the
following error:
Setting up python3-pkg-resources (45.2.0-1) ...
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
File "/snap/charm/677/usr/lib/python3.10/io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)
dpkg: error processing package python3-pkg-resources (--configure):
installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Test case:
git clone https://opendev.org/openstack/charm-octavia-dashboard.git
cd charm-octavia-dashboard
git checkout e1f50a2
tox -e build # use charmcraft 1.5
* Fix typo
Add workaround for missing build packages (#639)
The bare minimum of build packages may be missing following
commit 2482f0f and commit 725d2cb.
While the resolution may belong in charmcraft, we need a
workaround.
Fixes #638