snapcraft 2.42 not working in trusty armhf

Bug #1769551 reported by Marc
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Sergio Schvezov

Bug Description

After getting the snapcraft snap automatically refreshed to the 1503 revision (2.42) I am having this problem when trying to execute "snapcraft", "snapcraft clean" or just "snapcraft --version":

Traceback (most recent call last):
  File "/snap/snapcraft/1503/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==2.42', 'console_scripts', 'snapcraft')()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/", line 2693, in load_entry_point
    return ep.load()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/", line 2324, in load
    return self.resolve()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/", line 386, in <module>
    from snapcraft._store import ( # noqa
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/", line 37, in <module>
    from snapcraft import storeapi
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/storeapi/", line 19, in <module>
    import pymacaroons
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/", line 2, in <module>
    from .macaroon import Macaroon
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/", line 13, in <module>
    from pymacaroons.caveat_delegates import (
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/caveat_delegates/", line 4, in <module>
    from .encrypted_first_party import (
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/caveat_delegates/", line 5, in <module>
    from pymacaroons.field_encryptors import SecretBoxEncryptor
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/field_encryptors/", line 2, in <module>
    from .secret_box_encryptor import SecretBoxEncryptor
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/field_encryptors/", line 3, in <module>
    from libnacl.secret import SecretBox
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/libnacl/", line 70, in <module>
    nacl = _get_nacl()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/libnacl/", line 51, in _get_nacl
    return ctypes.cdll.LoadLibrary('')
  File "/snap/snapcraft/1503/usr/lib/python3.5/ctypes/", line 451, in LoadLibrary
    return self._dlltype(name)
  File "/snap/snapcraft/1503/usr/lib/python3.5/ctypes/", line 362, in __init__
  File "/snap/snapcraft/1503/usr/lib/python3.5/", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/snap/snapcraft/1503/usr/lib/python3.5/", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'

I'm trying to do it in an armhf using Trusty. I reverted to the previous version (2.41 - rev 1427) and everything works as usual.

Kyle Fazzari (kyrofa)
Changed in snapcraft:
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I have almost complete certainty that this is related to a missing armhf key in our library searcher for ctypes.

Changed in snapcraft:
status: New → In Progress
Changed in snapcraft:
milestone: none → 2.43
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
importance: Undecided → High
Revision history for this message
Marc (mbeneto) wrote :

I've downloaded snapcraft from the --edge channel (2.42+git15.1462351 / rev 1561) and it works, thank you!

Changed in snapcraft:
status: Fix Committed → Fix Released
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.