snapcraft snap crashes on elementary loki 0.4

Bug #1678289 reported by Alan Pope 🍺🐧🐱 🦄
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

Maybe related to bug 1678286

alan@elementaryos:~$ snapcraft
Traceback (most recent call last):
  File "/snap/snapcraft/5/lib/python3.6/site-packages/libnacl/__init__.py", line 62, in _get_nacl
    return ctypes.cdll.LoadLibrary('tweetnacl.so')
  File "/snap/snapcraft/5/usr/lib/python3.6/ctypes/__init__.py", line 422, in LoadLibrary
    return self._dlltype(name)
  File "/snap/snapcraft/5/usr/lib/python3.6/ctypes/__init__.py", line 344, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: tweetnacl.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/snapcraft/5/bin/snapcraft", line 28, in <module>
    import snapcraft.main
  File "/snap/snapcraft/5/lib/python3.6/site-packages/snapcraft/__init__.py", line 363, in <module>
    from snapcraft._store import ( # noqa
  File "/snap/snapcraft/5/lib/python3.6/site-packages/snapcraft/_store.py", line 35, in <module>
    from snapcraft import storeapi
  File "/snap/snapcraft/5/lib/python3.6/site-packages/snapcraft/storeapi/__init__.py", line 34, in <module>
    import pymacaroons
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/__init__.py", line 2, in <module>
    from .macaroon import Macaroon
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/macaroon.py", line 13, in <module>
    from pymacaroons.caveat_delegates import (
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/caveat_delegates/__init__.py", line 4, in <module>
    from .encrypted_first_party import (
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/caveat_delegates/encrypted_first_party.py", line 5, in <module>
    from pymacaroons.field_encryptors import SecretBoxEncryptor
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/field_encryptors/__init__.py", line 2, in <module>
    from .secret_box_encryptor import SecretBoxEncryptor
  File "/snap/snapcraft/5/lib/python3.6/site-packages/pymacaroons/field_encryptors/secret_box_encryptor.py", line 3, in <module>
    from libnacl.secret import SecretBox
  File "/snap/snapcraft/5/lib/python3.6/site-packages/libnacl/__init__.py", line 70, in <module>
    nacl = _get_nacl()
  File "/snap/snapcraft/5/lib/python3.6/site-packages/libnacl/__init__.py", line 68, in _get_nacl
    raise OSError(msg)
OSError: Could not locate nacl lib, searched for libsodium.so, libsodium.so.13, libsodium.so.10, libsodium.so.5, libsodium.so.4, and tweetnacl.so

Revision history for this message
Ryan Lee Sipes (ryanleesipes) wrote :

Turns out there is a really simple answer to this, install libsodium-dev. Can that be included in the Snap (the version it actually needs)?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.29
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.