snapcraft fails install using virtualenv instructions
Metadata
Current evaluation
Virtualenv installation instructions for snapcraft were reported as broken due to missing libsodium and Python dependencies. The issue was closed without resolution or comments, likely superseded by updated installation methods.
Suggested action: —
No scores available.
Issue body
Reading the Hacking Guide tells me to:
---
Installing in a virtualenv
Install the needed dependencies.
sudo apt install build-essential python3-dev libapt-pkg-dev
Install snapcraft.
./setup.py install
--
While this process does complete "successfully" - the output of running snapcraft directly thereafter yields a broken snapcraft install.
it initially complains about missing 'YAML', then once installed manually via pip3 install pyyaml, it complains about missing jsonschema. pip3 install jsonschema.
I double backed and ran pip3 install -r requirements.txt
and there's where things got interesting and fully blocked me with libsalt. The output is as follows:
site-packages (from -r requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): pyxdg==0.25 in /tmp/venv3/lib/python3.5/site-packages (from -r requirements.txt (line 8))
Collecting requests==2.9.1 (from -r requirements.txt (line 9))
Using cached requests-2.9.1-py2.py3-none-any.whl
Collecting requests-oauthlib==0.4.0 (from -r requirements.txt (line 12))
Using cached requests-oauthlib-0.4.0.tar.gz
Collecting requests-toolbelt==0.6.0 (from -r requirements.txt (line 13))
Using cached requests_toolbelt-0.6.0-py2.py3-none-any.whl
Collecting responses==0.5.1 (from -r requirements.txt (line 14))
Using cached responses-0.5.1-py2.py3-none-any.whl
Collecting petname==1.12 (from -r requirements.txt (line 15))
Using cached petname-1.12.tar.gz
Collecting pymacaroons==0.9.2 (from -r requirements.txt (line 16))
Using cached pymacaroons-0.9.2-py2.py3-none-any.whl
Collecting pymacaroons-pynacl==0.9.3 (from -r requirements.txt (line 17))
Using cached pymacaroons_pynacl-0.9.3-py2.py3-none-any.whl
Collecting simplejson==3.8.2 (from -r requirements.txt (line 18))
Using cached simplejson-3.8.2.tar.gz
Collecting tabulate==0.7.5 (from -r requirements.txt (line 19))
Using cached tabulate-0.7.5.tar.gz
Collecting cookies (from responses==0.5.1->-r requirements.txt (line 14))
Using cached cookies-2.2.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six in /tmp/venv3/lib/python3.5/site-packages (from responses==0.5.1->-r requirements.txt (line 14))
Collecting libnacl<1.4,>=1.3.6 (from pymacaroons==0.9.2->-r requirements.txt (line 16))
Using cached libnacl-1.3.6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "/tmp/pip-build-qb46781k/libnacl/libnacl/__init__.py", line 62, in _get_nacl
return ctypes.cdll.LoadLibrary('tweetnacl.so')
File "/usr/lib/python3.5/ctypes/__init__.py", line 425, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.5/ctypes/__init__.py", line 347, 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 "<string>", line 1, in <module>
File "/tmp/pip-build-qb46781k/libnacl/setup.py", line 7, in <module>
from libnacl.version import __version__
File "/tmp/pip-build-qb46781k/libnacl/libnacl/__init__.py", line 70, in <module>
nacl = _get_nacl()
File "/tmp/pip-build-qb46781k/libnacl/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
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qb46781k/libnacl/
Can someone verify the virtualenv install instructions, and perhaps submit an update to whats really needed to get snapcraft working from a venv?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Virtualenv installation instructions for snapcraft were reported as broken due to missing libsodium and Python dependencies. The issue was closed without resolution or comments, likely superseded by updated installation methods. | |
| qwen/qwen3.6-35b-a3b | — | — | Virtualenv installation instructions were abandoned due to missing dependencies and libnacl build failures. The issue closed without resolution, superseded by modern packaging methods. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The virtualenv installation failure caused by missing system dependencies was likely abandoned or superseded by updated packaging methods. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1733922 “snapcraft init” crashes on 32-bit Ubuntu | snapcraft (launchpad) | closed | Abandoned due to age and lack of activity. The crash stems from libnacl failing to locate libsodium on 32-bit Ubuntu. 32-bit support was likely superseded or dropped in later snapcraft releases. |