Questions tagged [snapcraft]

Snapcraft is a build and packaging tool developed by Canonical which allows packaging the software in an entity called snap.

174 questions
1
vote
0 answers

Console log doesn't work in candidate channel of Snapcraft (nodejs plugin)

Recently I am studying ubuntu core. So I made a simple snap using snap to print message in console. It is really simple, just print a message, or input-param + message. My question is, I have no idea why the snap work in dev mode, but not working in…
Hubert Wang
  • 502
  • 5
  • 17
1
vote
1 answer

How to package Qt5 application with snapcraft

I'm trying to create snap package of a Qt/QML application, the application is packaged well, when I try to run it I get /snap/swipe-app/x2/bin/qt5-launch: 74: exec: application: not found error. here's my snapcraft.yaml file name: swipe-app # you…
Junius L
  • 15,881
  • 6
  • 52
  • 96
1
vote
2 answers

Numpy build failure on Ubuntu Core (with snapcraft)

Finally I got my application snapped on Ubuntu 16.04 and 17.10 but now I try to snap it on Ubuntu Core (with my raspberry) and my python part (which depends on numpy) runs into following problem when building: Running setup.py bdist_wheel for numpy…
getty23
  • 93
  • 1
  • 8
1
vote
0 answers

Error when executing snapcraft cleanbuild /snap/snapcraft/794/bin/snapcraft-classic: 5: exec: /snap/snapcraft/794/usr/bin/python3: not found

I am trying to make my first snap with snapcraft, and i finished the actual app, but when I ran 'snapcraft build', I got this error /snap/snapcraft/794/bin/snapcraft-classic: 5: exec: /snap/snapcraft/794/usr>/bin/python3: not found I then checked…
1
vote
1 answer

How to create a Snap package?

I am trying to create a snap package of a Python app (trespass). I have uploaded it to pypi and it pip installs on Arch and Ubuntu, oddly to /usr/bin/trespass on Arch and to /usr/local/bin/trespass on Ubuntu. When I try to build the snap it fails.…
user192749
  • 247
  • 1
  • 3
  • 11
1
vote
0 answers

Snap NodeJS pugin returns error: Command '['/bin/sh', '/tmp/tmp4fqy7jgb', 'npm', '--cache-min=Infinity', 'install']' returned non-zero exit status 2

I'm trying to snap YakYak, the popular cross-platform Google Hangouts client, because the devs haven't bothered to package it and I thought it could benefit from having a Snap. Because it's mostly written in CoffeeScript/NodeJS,I thought it had…
FirePenguin
  • 169
  • 5
1
vote
1 answer

Ubuntu snap plugin 'autotools' default 'make install' to be skipped while building with snapcraft

I am building a snap package for my project, I have a library which I want to only compile. ie only /configure && make not : /configure && make && make install As I had searched for the doc for it in Ubuntu snap, I found :…
ninja.stop
  • 410
  • 1
  • 10
  • 24
1
vote
1 answer

snapcraft with python plugin: returned non-zero exit status 2

I am playing a little bit with snapcraft and everything worked fine but now I get following error - I have no clue what causes the error: Successfully installed appdirs packaging pip-8.1.2 pyparsing-2.1.8 setuptools-26.1.1 six-1.10.0 wheel-0.29.0 …
jokober
  • 694
  • 1
  • 5
  • 18
1
vote
1 answer

`sudo docker build .` fails from Docker snap package

I run Ubuntu 16.04 and I have installed docker via a snap package. docker build is unable to access my Dockerfile, which sets in a sub-directory of ~. The snap interface appears to be properly connected... $ snap interfaces Slot Plug ... :home …
Zak
  • 12,213
  • 21
  • 59
  • 105
1
vote
1 answer

How to include plugins into a SNAP for a QT5 desktop app?

I have got a desktop application for Linux written with QT5 and I want to deploy it as a SNAP package. The build and install works but the app is not executable and gives the following error: This application failed to start because it could not…
Olaf Japp
  • 480
  • 5
  • 19
1
vote
1 answer

How can I resolve relative paths from within a snap package?

name: my-lib apps: library-sample: command: library_sample $SNAP/arg_file.json parts: library: source: https://github.com/the/sample.git plugin: cmake install: | cp -r samples/library_sample $SNAPCRAFT_PART_INSTALL/ …
Zak
  • 12,213
  • 21
  • 59
  • 105
1
vote
1 answer

How to make the output of a snap "parts:" available to "apps:"?

apps: library-sample: command: library_sample parts: library: source: https://github.com/the/sample.git plugin: cmake When snapcraft runs the cmake install, "library" will be installed on the system (as I would expect). Also, cmake…
Zak
  • 12,213
  • 21
  • 59
  • 105
1
vote
1 answer

How do you remove undesired snap packages from myapps.developer.ubuntu.com?

I went through the tutorial and it was great. However, it has you register a name and publish your newly minted snap to your online account. How do I unregister the name and remove the snap from my account? I found the settings to "unpublish" and…
Zak
  • 12,213
  • 21
  • 59
  • 105
1
vote
1 answer

Snapcraft python only packages dependencies, not app?

I have a pretty standard python application, including setup.py and requirements.txt, which installs fine with pip: $ pip install . $ tree -L 1 env/lib/python3.5/site-packages/ env2/lib/python3.5/site-packages/ ├── myAPP ├──…
Geotob
  • 2,847
  • 1
  • 16
  • 26
1
vote
0 answers

How do you pull library dependencies of binary you want to package using snapcraft

I am trying out the new linux packaging tool http://snapcraft.io/create/ It does have some documentation but it's not very mature and doesn't contain everything. What I am trying to do is to generate a package for my binary that is compiled using Qt…
Petr
  • 13,747
  • 20
  • 89
  • 144