snapcraft 2.42 not working in trusty armhf

Bug #1769551 reported by Marc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
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/__init__.py", 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/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/__init__.py", line 386, in <module>
    from snapcraft._store import ( # noqa
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/_store.py", line 37, in <module>
    from snapcraft import storeapi
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/snapcraft/storeapi/__init__.py", line 19, in <module>
    import pymacaroons
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/__init__.py", line 2, in <module>
    from .macaroon import Macaroon
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/macaroon.py", line 13, in <module>
    from pymacaroons.caveat_delegates import (
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/caveat_delegates/__init__.py", line 4, in <module>
    from .encrypted_first_party import (
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/caveat_delegates/encrypted_first_party.py", line 5, in <module>
    from pymacaroons.field_encryptors import SecretBoxEncryptor
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/field_encryptors/__init__.py", line 2, in <module>
    from .secret_box_encryptor import SecretBoxEncryptor
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/pymacaroons/field_encryptors/secret_box_encryptor.py", line 3, in <module>
    from libnacl.secret import SecretBox
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/libnacl/__init__.py", line 70, in <module>
    nacl = _get_nacl()
  File "/snap/snapcraft/1503/lib/python3.5/site-packages/libnacl/__init__.py", line 51, in _get_nacl
    return ctypes.cdll.LoadLibrary('libsodium.so')
  File "/snap/snapcraft/1503/usr/lib/python3.5/ctypes/__init__.py", line 451, in LoadLibrary
    return self._dlltype(name)
  File "/snap/snapcraft/1503/usr/lib/python3.5/ctypes/__init__.py", line 362, in __init__
    name)
  File "/snap/snapcraft/1503/usr/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/snap/snapcraft/1503/usr/lib/python3.5/genericpath.py", 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.