Snapcraft deb does not work on KDE Neon. snap does.

Bug #1682822 reported by Artur Frącek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

artur@desktop:~$ snapcraft --version
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 28, in <module>
    import snapcraft.main
  File "/usr/lib/python3/dist-packages/snapcraft/__init__.py", line 359, in <module>
    from snapcraft._baseplugin import BasePlugin # noqa
  File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 21, in <module>
    from snapcraft.internal import common
  File "/usr/lib/python3/dist-packages/snapcraft/internal/__init__.py", line 20, in <module>
    from snapcraft.internal.project_loader import load_config # noqa
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader.py", line 29, in <module>
    from snapcraft.internal import (
  File "/usr/lib/python3/dist-packages/snapcraft/internal/parts.py", line 29, in <module>
    from snapcraft.internal import (
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 40, in <module>
    from snapcraft.internal import (
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/__init__.py", line 26, in <module>
    Repo = _get_repo_for_platform()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_platform.py", line 37, in _get_repo_for_platform
    'snapcraft is not supported on this operating system')
RuntimeError: snapcraft is not supported on this operating system

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Confirmed.

One workaround you might want to try is using the snap of snapcraft rather than the deb. Only the deb has this issue.

sudo apt remove snapcraft
sudo snap install snapcraft --edge --classic

This worked for me on KDE Neon.

Changed in snapcraft:
status: New → Confirmed
summary: - Snapcraft does not work on KDE Neon
+ Snapcraft deb does not work on KDE Neon. snap does.
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.