Snapcraft is failing with “IndentationError: expected an indented block”

Bug #1832858 reported by Antenore Gatta on 2019-06-14
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Undecided
Unassigned

Bug Description

Since a couple of days, without any (I hope so!) modifications on our side, the snapcraft build of Remmina is failing, and I don’t know how to debug this issue.

Here the error:

$ snapcraft --destructive-mode
Traceback (most recent call last):
  File "/snap/snapcraft/current/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==3.5.1', 'console_scripts', 'snapcraft')()
  File "/snap/snapcraft/current/lib/python3.5/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/snap/snapcraft/current/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/snap/snapcraft/current/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/snap/snapcraft/current/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/__main__.py", line 23, in <module>
    from ._runner import run
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_runner.py", line 30, in <module>
    from .lifecycle import lifecyclecli
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 32, in <module>
    from snapcraft.internal import (
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/__init__.py", line 19, in <module>
    from ._runner import execute # noqa: F401
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 22, in <module>
    from snapcraft.internal import (
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/meta/__init__.py", line 17, in <module>
    from snapcraft.internal.meta._snap_packaging import create_snap_packaging # noqa
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/meta/_snap_packaging.py", line 34, in <module>
    from snapcraft.internal.project_loader import _config
  File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/project_loader/_config.py", line 233
    (project.info.base)
    ^
IndentationError: expected an indented block

Can I please have some help to debug this?

Sergio Schvezov (sergiusens) wrote :

What build system is this?

Changed in snapd:
status: New → Incomplete
Antenore Gatta (antenore) wrote :

Gitlab-ci Sergio.

Antenore Gatta (antenore) wrote :

Sergio, gitlab-ci, do you need specific details? What exactly?

Changed in snapd:
status: Incomplete → New
Ken VanDine (ken-vandine) wrote :

I've been seeing the same failure in GNOME's gitlab as well. These are using the gnome-3-28-1804 docker image, which was built last week pulling snapcraft from candidate.

Antenore Gatta (antenore) wrote :

The problem has been fixed, thanks Ken.

Changed in snapd:
status: New → Fix Released
Sergio Schvezov (sergiusens) wrote :

This is not realy fixed released, this was not a snapcraft problem to begin with so I will mark it appropriately

Changed in snapd:
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers