/srv/irclogs.ubuntu.com/2016/05/30/#snappy.txt

=== JanC is now known as Guest41566
=== JanC_ is now known as JanC
=== Aria22 is now known as Aria22|away
hathor008so wtf is this supposed to mean? 'NoneType' object has no attribute 'lstrip'03:21
sethjhi hathor008. I see you are having no more luck than I am lol03:42
hathor008https://gist.github.com/anonymous/0cb3931924b497dad9c73d597716bd7403:43
hathor008yeah i mean this process is really confusing03:43
hathor008http://askubuntu.com/questions/779315/how-do-i-create-a-snap-for-a-monogame-application03:47
sethjI'll take a look at your case tomorrow if I can find some time.04:07
hathor008thanks04:07
=== Aria22|away is now known as Aria
=== Aria is now known as Aria|away
tptrhi, I'd like to ask a question about publishing. If I build a snap package but I cannot make it public is there a way, like a private repo, to publish it only in my team or for my IoT devices?06:51
zygao/08:48
hathor008hi08:50
=== dpm is now known as dpm-afk
pedronistptr: yes, there's a concept of private snaps (that can be shared with a selected group)09:15
tptrpedronis: ok thanks, I will keep digging then.09:20
AndroUserWhoami10:39
AndroUserhttp://askubuntu.com/questions/779267/snapcraft-snap-failing-because-python-modules-are-missing?noredirect=1#comment1165744_77926710:40
AndroUserHey people, could someone take a look here?10:40
ogra_heh ... fun that people always start packaging with the hardest tasks :)10:41
AndroUserYeah, I thought that too10:41
ogra_looks like you want some additional python packages there10:42
AndroUserBut I just couldn't reproduce the error that OP filled in to10:42
ogra_pythoon-apport comes to mind seeing the error10:42
ogra_or rather python3-apport ... (not sure if that one is still needed though, py3 should be the default)10:43
AndroUserI don't know too10:43
ogra_same goes for python-dbus ...10:43
AndroUserWhy is that dependencies listed by setup.py are not getting installed and require being listed apart in the yaml file?10:44
ogra_thats a question for sergiusens :)10:45
AndroUserI am not Seth, just was very curious. If you happen to try anything, please answer in this thread ok?10:45
ogra_what i see is that the OP is using python3-* packages everywhere ... could well be that in 16.04 these are just empty transitional packages ...10:46
AndroUserI tried a lot of different stuff last night with Seth and we couldn't trace back the cause of errors10:46
ogra_and python-apport is clearly missing10:46
AndroUserUhm, that's a great idea, I didn't checked to see what python3 packages were indeed installing10:46
ogra_even if you get it packaged though ... you will need a lot of interface work still ... we dont have a way yet to attach to the system fonts ot themes from a snap ... you will only be able to run it in devmode for now10:47
AndroUserI went to the ubuntuforums.org and couldn't find a topic for discussion on Snaps, where can I suggest a dedicated forum there?10:48
AndroUserI see, so it wouldn't be able to change themes and unity options like usual?10:48
ogra_well, you can suggest the snapcraft mailing list (at https://lists.ubuntu.com/mailman/listinfo/snapcraft )10:56
ogra_and this IRC channel here10:56
ogra_i dont think any developer actually monitors forums much10:57
AndroUserThanks. I will enter the mailing list :)11:11
=== Aria|away is now known as Aria
=== Aria is now known as Aria22
=== Aria22 is now known as Aria22|away
sergiusensogra_ I don't see AndroUser on anymore nor did I see a mailinglist question so if he comes by, tell him that install_requires in setup.py is automatically taken care of.13:05
ogra_sergiusens, well, the askubuntu thing seems to not find some deps (python-dbus, python-apport namely)13:06
ogra_http://askubuntu.com/questions/779267/snapcraft-snap-failing-because-python-modules-are-missing?noredirect=1#comment1165744_77926713:06
sergiusensogra_ I bet python-apport is not on pypi or has a different name there13:12
ogra_yeah13:13
sergiusensit has already sort of been answered13:13
=== Aria22|away is now known as Aria
=== dpm-afk is now known as dpm
=== Aria is now known as Aria|away
=== chihchun is now known as chihchun_afk
sborovkovHi. I have a python code running on snappy. It basically just accesses SNAP_USER_DATA. And some networking stuff. But I get a lot of apparmor warnings - any ideas what could be wrong? https://paste.kde.org/pawrdt7xc16:59
sergiusenssborovkov seems you installed with devmode17:23
sergiusensNot much of a problem if so. It all says ALLOWED17:23
sborovkovsergiusens: yeah, I did. Thought that what's allowed in devmode would be forbidden without it :-)17:25
sborovkovis that not the case?17:26
sabdflsborovkov, if you don't specify --devmode then the snap runs confined17:51
sabdflonce your confinement description is correct, then you can drop the --devmode17:51
sabdflwhich is a good thing :)17:51
sabdflthe point of --devmode is that it is sometimes hard to get the confinement description complete up front17:53
sabdflso --devmode lets you put things into "log only" mode (well, mostly, some things still shoot you in --devmode :))17:53
sabdflsergiusens, around?17:54
sergiusenssabdfl yes I am17:59
sergiusenssborovkov let me open your paste again18:00
sergiusenssborovkov was mislead by the mention of "warnings"18:00
sergiusenssborovkov is ldconfig run by the snap by any chance?18:01
sabdflsergiusens, would this work:18:04
sabdflah18:04
sborovkovsergiusens: sabdfl: I understand that devmode allows everything. But I thought any apparmor "allowed" message mean that it would not work without devmode.18:56
sborovkovsergiusens: >is ldconfig run by the snap by any chance - that's relatively simple python program. So I don't understand where ldconfig is coming from at the moment. Thought that may be python is running it...18:58
sergiusenssborovkov line 3 indicates this, not sure what your simple program is (or maybe a wrapper script you have going around)19:01
tyhickssborovkov, sergiusens: ldconfig is being ran and that is the cause of nearly all the AppArmor denials19:05
sergiusenstyhicks it seems so from line 3. Trying to find out where :-)19:06
sergiusensthe /proc/.../mounts one isn't much of a problem19:06
tyhickssergiusens: the mount-observe interface allows reading /proc/PID/mounts19:06
sergiusenstyhicks but do we need it? I was thinking of it as a harmless error19:07
sergiusensfor the python runtime case19:07
sborovkovsergiusens: tyhicks: I have custom ld.so file. exec "$VIEWER_APP_PATH/lib/ld-linux-armhf.so.3" --inhibit-cache $@ This is how another part of snap is run... But this messages come from python part which is run as usual19:08
sborovkovif this is relevant...19:08
tyhickssergiusens: I'm not sure if python will croak if it can't read /proc/PID/mounts - I'd be surprised if it was treated as a fatal error but I'm just not 100% sure19:08
sborovkovsergiusens: tyhicks: also do you know if snap installed in --devmode can drop devmode somehow without manual interaction on snap upgrade let's say?19:10
sergiusenstyhicks it has been fine so far19:10
tyhickssborovkov: I don't believe we have defined a way for a snap to automatically promote itself from devmode to non-devmode on an upgrade19:14
sborovkovtyhicks: understood, thanks. Would using custom ld.so cause any apparmor issues? I have my application built in buildroot and for some reason it does not work without it.19:16
sergiusenstyhicks we discussed this with nessita and niemeyer. IIRC going from "production" to devmode would trigger an alert. The other way around wasn't covered but it should be sort of fine, right?19:16
tyhickssergiusens: It should be fine as long as the user is using the snap as it was intended to be used by the snap packager19:18
tyhickssergiusens: it would have the potential to break the user if, for example, he/she is specifying file paths that don't jive with confinement19:19
tyhicksthat's not really something that we can protect against19:19
sergiusenstyhicks right, the "product" would need to be solid to move from devmode to production mode for starters19:19
nessitasergiusens, correct, the transition from strict to devmode is not automatic but devmode to strict is19:20
tyhicksoh, cool19:21
tyhickssborovkov: regarding a custom ld.so> I think you should be able to get away with doing that within confinement since you're using --inhibit-cache19:22
sborovkovwait, so how does automatic transition from from devmode to strict can be triggered?19:22
sborovkovtyhicks: ok, thanks.19:23
sborovkovnessita: do you know how that automatic transition could be triggered?19:28
nessitasborovkov, when running snap refresh, if the store reports a newer revision, the snap will upgrade19:29
nessitaand the newer revision can be strict (even if the reported revision is devmode)19:29
sborovkovnessita: thanks.19:30
nessitasborovkov, you are welcome! I hope my answer made sense19:31
sborovkovnessita: yes. I was just wondering because the application we are developing has some blockers on snappy side (/dev/vchiq inaccessible is the main thing). So was thinking if it would be possible to make images with snap installed in --devmode for alpha version and then later upgrade to proper mode without having people reflash the SD cards19:33
nessitasborovkov, right, in that scenario you would push a new revision of your snap without devmode, and you need to make sure you publish that snap in the alpha channel19:34
nessitasborovkov, then all your clients will get that revision on manuel or automatic "snap refresh"19:34
sborovkovnessita: so it's a flag in the store then? whether it's devmode or not?19:37
nessitasborovkov, nopes, is a flag inside each snap binary, so basically when you want to leave devmode and migrate to strict confinementn you need to do a new build and push to the store19:41
nessitasborovkov, and release that new build in the same channel as the one that had the devmode revision published19:41
nessitadoes that make sense?19:41
sborovkovYeah, I just did not know about the flag (or how to set it when building the snap) . Since I though that it's enabled when installing using `--devmode`.19:42
nessitasborovkov, ah, right. So latest snapcraft allows you to define a confinement: devmode in your snapcraft.yaml that will make the confinement checks be treated as INFO instead of erroing19:45
sborovkovnessita: thanks again. Now everything's clear :-)19:46
nessitagreat!19:47
sborovkovAre config interfaces still gone?19:54
qenghoThis might be a 2.0.3->2.0.5 xenial-proposed regression. Not sure. https://bugs.launchpad.net/snappy/+bug/158717520:23
ubottuLaunchpad bug 1587175 in Snappy "snapd "cannot find mounted snap" error in 2.0.5" [Undecided,New]20:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!