I an facing same issue with `strict` confinement. Ubuntu 16.04 snapcraft 2.28. My current snapcraft.yaml file:
name: alfanous
version: "0.7.29"
summary: Alfanous
description: GNU hello prints a friendly greeting.
This is part of the snapcraft tour at http://snapcraft.io/create/
confinement: strict
File "/snap/alfanous/x7/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1972, in find_on_path
for entry in os.listdir(path_item):
OSError: [Errno 13] Permission denied: '/home/sneetsher/Desktop/sandbox/alfanous-snap'
I an facing same issue with `strict` confinement. Ubuntu 16.04 snapcraft 2.28. My current snapcraft.yaml file:
name: alfanous snapcraft. io/create/
version: "0.7.29"
summary: Alfanous
description: GNU hello prints a friendly greeting.
This is part of the snapcraft tour at http://
confinement: strict
apps: alfanous- desktop bin:$SNAP/ bin/:$PATH lib/python2. 7/site- packages: $SNAP/usr/ lib/python2. 7/dist- packages: $PYTHONPATH applications/ my-app. desktop alfanous- console bin:$SNAP/ bin/:$PATH lib/python2. 7/site- packages: $SNAP/usr/ lib/python2. 7/dist- packages: $PYTHONPATH /github. com/Alfanous- team/alfanous/ archive/ 0.7.8.tar. gz /github. com/Alfanous- team/alfanous. git $SNAPCRAFT_ PART_INSTALL $SNAPCRAFT_ PART_INSTALL packages:
alfanous-gui:
command: usr/bin/
environment:
PATH: $SNAP/usr/
PYTHONPATH: $SNAP/usr/
#desktop: usr/share/
alfanous-cli:
command: usr/bin/
environment:
PATH: $SNAP/usr/
PYTHONPATH: $SNAP/usr/
parts:
alfanous-git:
build-packages:
#- python
- sqlite3
- pyside-tools
- qt4-linguist-tools
- python-babel
- qt4-qmake
- python-setuptools
#- python-pyparsing
#- perl
#plugin: make
plugin: python
python-version: python2
#source: https:/
source: https:/
source-type: git
source-depth: 1
#source-tag: 0.7.8
build: |
make build
install: |
#make install_api
make install_api DESTDIR=
make install_desktop DESTDIR=
stage-packages:
- python-pyparsing
- python-pyside
#- epydoc
#- sphinx
- python-babel
- python-setuptools
#python-
# - pyparsing
# - pyside
# - babel
Now, i get additional dir in the path: '/home/ sneetsher/ Desktop/ sandbox/ alfanous- snap'
Full sys.path:
['/snap/ alfanous/ x7/usr/ bin', alfanous/ x7/usr/ lib/python2. 7/site- packages' , alfanous/ x7/usr/ lib/python2. 7/dist- packages' , lib/python2. 7/site- packages' , lib/python2. 7/dist- packages' , sneetsher/ Desktop/ sandbox/ alfanous- snap', alfanous/ x7/usr/ lib/python2. 7', alfanous/ x7/usr/ lib/python2. 7/plat- x86_64- linux-gnu' , alfanous/ x7/usr/ lib/python2. 7/lib-tk' , alfanous/ x7/usr/ lib/python2. 7/lib-old' , alfanous/ x7/usr/ lib/python2. 7/lib-dynload' ]
'/snap/
'/snap/
'/usr/
'/usr/
'/home/
'/snap/
'/snap/
'/snap/
'/snap/
'/snap/
When I run my app, I get this error message:
File "/snap/ alfanous/ x7/usr/ lib/python2. 7/dist- packages/ pkg_resources/ __init_ _.py", line 1972, in find_on_path path_item) : sneetsher/ Desktop/ sandbox/ alfanous- snap'
for entry in os.listdir(
OSError: [Errno 13] Permission denied: '/home/