Get this repository:
git clone https://git.not.enabled/snappy-debug
Members of The snappy-debug snap developers can upload to this repository. Log in for directions.

See all merge proposals.

Branches

Name Last Modified Last Commit
main 2023-05-16 06:46:26 UTC
snapcraft.yaml: stage python3 packages

Author: Alex Murray
Author Date: 2023-05-16 06:46:26 UTC

snapcraft.yaml: stage python3 packages

Otherwise the full environment is not available to snappy-debug at runtime and
so it fails to find python3-apparmor:

Traceback (most recent call last):
  File "/snap/snappy-debug/688/bin/snappy-security-scanlog", line 16, in <module>
    import LibAppArmor
ModuleNotFoundError: No module named 'LibAppArmor'
amurray@graphene:/home/amurray$ PYTHONPATH=/lib/python3/dist-packages/:$SNAP/usr/lib/python3/dist-packages/ $SNAP/bin/snappy-security-scanlog
Traceback (most recent call last):
  File "/snap/snappy-debug/688/usr/lib/python3/dist-packages/LibAppArmor/LibAppArmor.py", line 14, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'LibAppArmor._LibAppArmor'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/snappy-debug/688/bin/snappy-security-scanlog", line 16, in <module>
    import LibAppArmor
  File "/snap/snappy-debug/688/usr/lib/python3/dist-packages/LibAppArmor/__init__.py", line 4, in <module>
    from LibAppArmor.LibAppArmor import *
  File "/snap/snappy-debug/688/usr/lib/python3/dist-packages/LibAppArmor/LibAppArmor.py", line 17, in <module>
    _LibAppArmor = swig_import_helper()
  File "/snap/snappy-debug/688/usr/lib/python3/dist-packages/LibAppArmor/LibAppArmor.py", line 16, in swig_import_helper
    return importlib.import_module('_LibAppArmor')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_LibAppArmor'

Signed-off-by: Alex Murray <alex.murray@canonical.com>

11 of 1 result

Other repositories

Name Last Modified
lp:snappy-debug 2023-05-16
lp:~alexmurray/snappy-debug 2023-05-11
lp:~merlijn-sebrechts/snappy-debug 2023-01-14
13 of 3 results
You can't create new repositories for Snappy Debug.