Closed kileyhykawy closed 2 years ago
Should mention that this happened with surl help
fyi Kiley, I separately noticed this this morning, and filed this bug (against store server ; ). Up to those folks which issue/bug to track this with. https://bugs.launchpad.net/snapstore-server/+bug/1948462
$ ldd /snap/surl/398/lib/python3.5/site-packages/nacl/_sodium.abi3.so
linux-vdso.so.1 (0x0000ffffa13b8000)
libsodium.so.18 => not found
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffffa1331000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffa11d8000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffa138c000)
For some reason libsodium was not included in the snap for these architectures.
Maybe add python3-nacl as a stage-package: https://packages.ubuntu.com/focal/armhf/python3-nacl/filelist
I don't think that's needed, pynacl is an indirect dependency through pymacaroons (PyNaCl>=1.1.2,<2.0) and is already installed, with the Python file raising the problem being part of it: /snap/surl/399/lib/python3.5/site-packages/nacl/bindings/crypto_aead.py
I'll check why libsodium is not installed on arm architectures, it could be unavailable or something similar.
libsodium is installed with the snap on armhf: ubuntu@ubuntu:/snap/surl/current$ find -name sodium ./lib/python3.5/site-packages/nacl/_sodium.abi3.so ./lib/python3.5/site-packages/nacl/bindings/sodium_core.py ./usr/include/sodium ./usr/include/sodium.h ./usr/lib/arm-linux-gnueabihf/libsodium.a ./usr/lib/arm-linux-gnueabihf/libsodium.so ./usr/lib/arm-linux-gnueabihf/libsodium.so.18 ./usr/lib/arm-linux-gnueabihf/libsodium.so.18.0.1 ./usr/lib/arm-linux-gnueabihf/pkgconfig/libsodium.pc ./usr/share/doc/libsodium-dev ./usr/share/doc/libsodium18
Hello - Can I trouble you both @knitzsche @kileyhykawy to try the version of surl that's available on edge
?
snap refresh --channel=edge surl
That version is based on core20 and worked fine in my tests on an arm64-based system (on which I was able to reproduce your problem with the old core-based version of surl).
If this works well I'll probably promote the edge revision to stable.
Hi - I just succeeded with rev 413 on uc20/pi3b+ and on server on pi4. Thanks
I've published surl 0.8.0 to the stable
channel, @kileyhykawy this should take care of your issue as well.
After installing surl (version 0.7.3, revision 399) on Ubuntu Server 20.04 and trying to run it, I get a Python import error:
Is the snap broken on
armhf
or am I missing something?