Wont build snaps !

Bug #2027888 reported by Sameer Sharma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Invalid
Undecided
Unassigned

Bug Description

Building snaps with breezy aka bazaar always fails with following error.
I hope this gets fixed, this happens even if the snap builds fine with git.

```
snapcraft 7.4.3 from Canonical** installed
Running repo phase...
brz: ERROR: AttributeError: can't set attribute 'selector'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1017, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1206, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 757, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 782, in run
    return class_run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/builtins.py", line 1473, in run
    accelerator_tree, br_from = controldir.ControlDir.open_tree_or_branch(
  File "/usr/lib/python3/dist-packages/breezy/controldir.py", line 817, in open_tree_or_branch
    controldir = klass.open(location)
  File "/usr/lib/python3/dist-packages/breezy/controldir.py", line 723, in open
    t = _mod_transport.get_transport(base, possible_transports)
  File "/usr/lib/python3/dist-packages/breezy/transport/__init__.py", line 1573, in get_transport
    location_to_url(base, purpose=purpose),
  File "/usr/lib/python3/dist-packages/breezy/location.py", line 136, in location_to_url
    location = directories.dereference(location, purpose)
  File "/usr/lib/python3/dist-packages/breezy/directory_service.py", line 87, in dereference
    return directory.look_up(name, url, purpose=purpose)
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 114, in look_up
    return self._resolve(url)
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 170, in _resolve
    result = self._resolve_via_xmlrpc(path, url, _request_factory)
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 146, in _resolve_via_xmlrpc
    result = resolve.submit(service)
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 231, in submit
    return service.send_request(self._methodname, self._request_params())
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 160, in send_request
    result = method(*method_params)
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
  File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 87, in request
    response = transport.request("POST", url, body=request_body, headers={
  File "/usr/lib/python3/dist-packages/breezy/transport/http/urllib.py", line 1851, in request
    response = self._opener.open(request)
  File "/usr/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3/dist-packages/breezy/transport/http/urllib.py", line 817, in https_open
    connect = _ConnectRequest(request)
  File "/usr/lib/python3/dist-packages/breezy/transport/http/urllib.py", line 468, in __init__
    Request.__init__(self, 'CONNECT', request.get_full_url(),
  File "/usr/lib/python3/dist-packages/breezy/transport/http/urllib.py", line 417, in __init__
    urllib_request.Request.__init__(
  File "/usr/lib/python3.10/urllib/request.py", line 322, in __init__
    self.full_url = url
  File "/usr/lib/python3.10/urllib/request.py", line 348, in full_url
    self._parse()
  File "/usr/lib/python3.10/urllib/request.py", line 378, in _parse
    self.host, self.selector = _splithost(rest)
AttributeError: can't set attribute 'selector'

brz 3.2.1 on python 3.10.6 (Linux-5.4.0-153-generic-x86_64-with-glibc2.35)
arguments: ['/usr/bin/bzr', 'branch', 'lp:xdm', 'xdman']
plugins: bash_completion[3.2.1], changelog_merge[3.2.1],
    commitfromnews[3.2.1], cvs[3.2.1], darcs[3.2.1], email[3.2.1],
    fastimport[3.2.1], flake8[unknown], fossil[3.2.1], github[3.2.1],
    gitlab[3.2.1], hg[3.2.1], launchpad[3.2.1], mtn[3.2.1],
    netrc_credential_store[3.2.1], news_merge[3.2.1], po_merge[3.2.1],
    propose[3.2.1], pypi[3.2.1], quilt[unknown], repodebug[3.2.1],
    rewrite[unknown], stats[3.2.1], svn[3.2.1], upload[3.2.1],
    weave_fmt[3.2.1], zsh_completion[3.2.1]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'C.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/brz/+filebug
    including this traceback and a description of the problem.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 264, in run
    self.repo()
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 181, in repo
    self.vcs_fetch(self.args.name, cwd="/build", env=env)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/vcs.py", line 86, in vcs_fetch
    self.backend.run(cmd, cwd=cwd, env=full_env)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 716, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-jammy-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/lpbuildd-git-proxy', '--env', 'SNAPPY_STORE_NO_CDN=1', '--', '/bin/sh', '-c', 'cd /build && linux64 bzr branch lp:xdm xdman']' returned non-zero exit status 4.
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=jammy --arch=amd64 SNAPBUILD-2169985
Scanning for processes to kill in build SNAPBUILD-2169985
```

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

You're running an old version of Breezy; this is fixed in the 3.3 series.

Changed in brz:
status: New → Fix Released
Jelmer Vernooij (jelmer)
Changed in brz:
status: Fix Released → Invalid
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.