I generated a snap of my application and installed from a folder and it works fine as below :
but if i move the snap to another folder or other machine and re-install it. I get the below error.
Here it looks for a Hello.py file. and i have placed it in path /home/boschrexroth/pythonfiles. And it gets internally called from my dotnet application. It works fine in the first instance and gives file missing error in the 2nd instance. why is this happening ?
The snapcraft.yaml is as below :
name: processorsnap2
version: '0.1'
summary: A simple example snap for dotnet in snaps
description: A simple example snap for dotnet in snaps
grade: devel
confinement: strict
base: core
apps:
processorsnap2:
command: IoT_AnalyticsProcessor.Service
environment:
PYTHONPATH: $SNAP/lib/x86_64-linux-gnu/:$SNAP/usr/lib/python3.5/:/$SNAP/usr/lib/python3.5/plat-x86_64-linux-gnu/:/$SNAP/lib/referencer/:$PYTHONPATH
PYTHONHOME: $SNAP/lib/x86_64-linux-gnu/:$SNAP/usr/lib/python3.5/:/$SNAP/usr/lib/python3.5/plat-x86_64-linux-gnu/:/$SNAP/lib/referencer/:$PYTHONHOME
layout:
/usr/bin/python3.5:
bind-file: $SNAP/usr/bin/python3.5
parts:
processorsnap2:
source: .
plugin: dump
stage-packages:
- libasn1-8-heimdal
- libcurl3
- libgssapi3-heimdal
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libkrb5-26-heimdal
- libldap-2.4-2
- liblttng-ust0
- libroken18-heimdal
- librtmp1
- libsasl2-2
- libunwind8
- liburcu4
- libwind0-heimdal
- icu-devtools
- wget
- zlib1g
- python3.5
- python2.7
- python