Can't rebuild just subiquity

Bug #1779939 reported by Seth Fitzsimmons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Confirmed
Low
Unassigned

Bug Description

I can build a snap using `snapcraft snap`. However, when I want to rebuild the `subiquity` part after cleaning (`snapcraft clean subiquity`), I get the following error:

```
Skipping pull probert (already ran)
Skipping build probert (already ran)
Skipping stage probert (already ran)
Skipping prime probert (already ran)
Skipping pull font (already ran)
Skipping build font (already ran)
Skipping stage font (already ran)
Skipping prime font (already ran)
Skipping pull kbdnames (already ran)
Skipping build kbdnames (already ran)
Skipping stage kbdnames (already ran)
Skipping prime kbdnames (already ran)
Skipping pull users-and-groups (already ran)
Skipping build users-and-groups (already ran)
Skipping stage users-and-groups (already ran)
Skipping prime users-and-groups (already ran)
Preparing to pull subiquity
Hit https://download.docker.com/linux/ubuntu bionic InRelease
Hit http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 247 kB in 0s (0 B/s)
Pulling subiquity
Cloning into '/home/seth/src/canonicalltd/subiquity/parts/subiquity/src'...
done.
Traceback (most recent call last):
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/__main__.py", line 19, in <module>
    sys.exit(_main())
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/__init__.py", line 246, in main
    return command.main(cmd_args)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 264, in main
    timeout=min(5, options.timeout)) as session:
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 81, in _build_session
    insecure_hosts=options.trusted_hosts,
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/download.py", line 338, in __init__
    self.headers["User-Agent"] = user_agent()
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/download.py", line 101, in user_agent
    zip(["name", "version", "id"], distro.linux_distribution()),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 120, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 634, in linux_distribution
    self.version(),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 688, in version
    self.lsb_release_attr('release'),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 836, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 522, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 933, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/__main__.py", line 19, in <module>
    sys.exit(_main())
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/__init__.py", line 246, in main
    return command.main(cmd_args)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 264, in main
    timeout=min(5, options.timeout)) as session:
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 81, in _build_session
    insecure_hosts=options.trusted_hosts,
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/download.py", line 338, in __init__
    self.headers["User-Agent"] = user_agent()
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_internal/download.py", line 101, in user_agent
    zip(["name", "version", "id"], distro.linux_distribution()),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 120, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 634, in linux_distribution
    self.version(),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 688, in version
    self.lsb_release_attr('release'),
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 836, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 522, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/home/seth/src/canonicalltd/subiquity/stage/lib/python3.6/site-packages/pip/_vendor/distro.py", line 933, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/home/seth/src/canonicalltd/subiquity/stage/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Failed to run '/home/seth/src/canonicalltd/subiquity/stage/usr/bin/python3 -m pip list': Exited with code 1.
```

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Do you have any idea what subiquity is doing to cause this? It could just as easily be a snapcraft bug as far as I can tell.

Revision history for this message
Seth Fitzsimmons (mojodna) wrote :

It seems to be the structure of snapcraft.yaml in subiquity that triggers it (though it might be a snapcraft bug). My suspicion is that the subiquity part has an implicit dependency on something (or an initialization step) provided by one of the other parts. This is my first exposure to snapcraft, so I'm afraid I'm not much use.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: [Bug 1779939] Re: Can't rebuild just subiquity

I must admit I always run "snapcraft clean; snapcraft snap" :(

On Tue, 17 Jul 2018 at 05:01, Seth Fitzsimmons <email address hidden>
wrote:

> It seems to be the structure of snapcraft.yaml in subiquity that
> triggers it (though it might be a snapcraft bug). My suspicion is that
> the subiquity part has an implicit dependency on something (or an
> initialization step) provided by one of the other parts. This is my
> first exposure to snapcraft, so I'm afraid I'm not much use.
>
> --
> You received this bug notification because you are subscribed to
> subiquity.
> https://bugs.launchpad.net/bugs/1779939
>
> Title:
> Can't rebuild just subiquity
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subiquity/+bug/1779939/+subscriptions
>

Changed in subiquity:
status: New → Confirmed
importance: Undecided → Low
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.