Python 3 bytecode problems
The current gnome runtime has stale or missing Python bytecode:
python3 -v -c "from gi.repository import Gtk; import cairo; import libxml2" 2>&1 | grep "could not create"
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/__init__.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_error.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_compat.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/cairo/__pycache__/__init__.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/repository/__pycache__/__init__.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/importer.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/module.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/types.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_constants.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/docstring.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_propertyhelper.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_signalhelper.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/__init__.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/GLib.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_ossighelper.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_option.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/GObject.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/Pango.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/Gio.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/GdkPixbuf.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/Gdk.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/overrides/__pycache__/Gtk.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/gi/__pycache__/_gtktemplate.cpython-37.pyc': OSError(30, 'Read-only file system')
# could not create '/usr/lib/python3.7/site-packages/__pycache__/libxml2.cpython-37.pyc': OSError(30, 'Read-only file system')
Summary:
- pygobject bytecode is stale
- pycairo bytecode is stale
- libxml2 bytecode is missing
This results in applications taking longer to start.
Edited by Christoph Reiter