User1: has anyone done django on snappy ubuntu? I have a little problem in getting it to work. it seems that the urls is not working though it works well on the desktop environment. thanks
User1: does anyone know what "build-packages: [libssl-dev]" means in the snapcraft.yaml syntax?
User2: good morning
User3: morning dholbach
User2: hi svij
User1: dholbach, ping
User2: User1 pong
User1: dholbach, I just found the example snapcraft.yaml at the link https://github.com/ubuntu-core/snapcraft/blob/master/examples/downloader-with-wiki-parts/snapcraft.yaml, what is the use of the "build-package"?
User1: dholbach, it looks like that it installs the package for the project. However, if I remove it, the project still can be successfully compiled
User2: User1 it's there, so somebody who tries to use your snapcraft.yaml locally has the required packages installed for the build
User1: dholbach, oh right, it is used use to install to the host computer, right? then can we do the same for "curl" in the example?
User2: yes, it should work for everything
User1: dholbach, you are right. I previously installed the package for "libssl-dev", so now I do not need it, and I can still successfully compile it.
User2: :)
User1: dholbach, by the way, I have used your stage-packages method to install the django stuff, and I successfully compiled them into the project. However, the project does not run in the KVM. the project works well on desktop.
User2: User1 did you find out why?
User2: it would be really nice if you could write up your story and send it to timothyroach@example.org
User2: others could start helping with your project
User2: and learn from it
User2: there is a lot to be learnt from your experience
User1: dholbach, I do not know why it happens to be like that. the app is started, but the ulrs are not routed, so still something is wrong about it..
User2: ah... do you redirect the ports when using kvm?
User1: dholbach, yes, I will do that for sure. yes, I redirect it to the port 8090
User2: ok
User1: dholbach, this is a little bit frustrating since the debugging on snappy is limited, and sometimes is not so easy to spot the problems
User1: dholbach, I have never received emails from timothyroach@example.org?
User2: User1 are you signed up for it? https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
User1: dholbach, where to subscribe the mailing listï¼I only receive emails from timothyroach@example.org, are they the same?
User2: snappy-app-devel-request is no mailing list - it's just the email you interact with to (un)subscribe
User1: dholbach, ok. I got it. sorry for the confusion!
User2: no worries
User4: Good morning all; happy Friday, and happy birthday to UNICEF! ð
User1: dholbach, I am now trying to use timothyroach@example.org, but it complains that it it not recognized.
User2: did you expand u.c to ubuntu.com?
User2: sorry, I was just using a shortened version
User1: dholbach, No, I did not, sorry
User1: dholbach, I just sent one email for it.
User2: ok cool
User1: dholbach, yesterday, I sent one email, but I used the wrong email address :) I sent it to timothyroach@example.org
User2: I'm glad we fixed this issue now too :-D
User1: dholbach, yeah, it is true. I am going to have my dinner. Have a great weekend!
User2: you too! have a good one! :)
User1: dholbach, thanks! :)
User5: GRRRR
User5: why has apt suddenly a system user ?
User6: "security"
 * ogra_ goes and fixes livecd-rootfs to respect that ...
User7: QUESTION: How do I apply patches to pull'ed code before it is built?
User8: hi. is there a snap for unity? If I wanted to install snappy on my laptop but still have a graphical interface?
User9: cyphermox, not yet. We're still working on the graphical snap pieces
User8: User9 ok, thanks
User7: In snapcraft, how does one apply local patches to pull'ed code before building?
User5: MikeB, i dont think there is a way yet despite pushing your while modiied tree to github or so
User5: *whole
User7: ogra_, thanks. I'm surprised there's no such way to do that.
User5: i think it is planned ... sergiuens could tell, but he isnt around
User10: User5 yes, the don't-take-over-networking is landed
User10: User5 all the way to 15.04 even
User10: it's an oem snap option
User5: ah, i'll tell morphis (next week i guess)
User10: User5 something ridonculous like please-dont-use-networking-because-you-suck-ok: false
User10: User5 skip-ifup-provisioning
User5: neat
User10: under oem in the oem snap yaml
User5: k
User11: User9 I almost made it with mailpile, but got stuck on apparmor denials...
User11: http://pastebin.ubuntu.com/13935183/
User9: elopio, those are just the stupid .pyc ones though
User9: elopio, I think you can ignore those
User11: User9 well, the server is not starting. I thought it was because of this.
User9: elopio, I doubt it. Sure there isn't a more meaningful denial in there?
User9: elopio, have you run it with snappy-debug?
User11: that's the only thing I see on dmesg, and on the service log it says it all went fine.
User11: I haven't tried snappy-debug before. /me tries.
User9: elopio, yeah snappy install snappy-debug, then sudo snappy-debug scanlog (IIRC)
User11: User9 yes, just unlink and mknod on pyc files. Lots and lots of them.
User9: elopio, huh... I thought that wasn't a fatal python error?
User9: elopio, I just figure it's unable to save the compiled version so it has to do it everytime. Too bad
User9: elopio, maybe barry knows better?
User9: I wonder if there's a way to redirect where python tries to put those
User11: User9 well, I'm not sure this is the cause. It's just the only output I get.
User9: elopio, good point. It may be the thing simply malfunctioning, external to apparmor all together
User11: or me doing something stupid. That's always an option :)
User11: anyway, context swtich now.
User12: User9 sorry, what's the issue?
User9: barry, when making a python .snap, we always see denials trying to create .pyc files
User12: User9 "denials"?  write errors?
User9: barry, 1: Can that ever be a fatal error? 2: Is there any way to redirect where python tries to put those files? 3: Is there a big benefit to putting them somewhere else?
User9: barry, apparmor denials, although even if apparmor didn't get it the .snap's directory is read-only
User12: User9 technically, pyc files are just a cache of the compilation step.  they aren't *required* but they are a very good idea if you want it to be fast.  -B/PYTHONDONTWRITEBYTECODE=1 can be used to disable writing pyc files, but you can't really put the pyc files in a different place by default (you could in py3 if you wrote a custom import hook).  i don't think there's much benefit to the added complexity of putting them somewhere
User12: else.  this is also somewhat different between py2 and py3 (with the latter using __pycache__ directories next to the .py files)
User9: barry, ah, exactly the information I was looking for, thank you!
User9: elopio, perhaps you could try the above to reduce apparmor noise and see if you have any other errors you're missing?
User12: np!
User11: User9 I'll try that. Also it seems that the command line argument they give to just run the server doesn't work.
User11: and if I don't pass it, the service is not left running either, something kills it.
User13: Does anyone know of any documentation on what all options can go in the snapcraft.yaml file?
User9: elopio, https://github.com/ubuntu-core/snapcraft/pull/163 when you're able
User9: wililupy, sorry, I just saw your question
User9: wililupy, a PR is sitting to add just that-- you can likely learn from it if you like: https://github.com/ubuntu-core/snapcraft/pull/146
User13: User9 excellent thank you. I'll look it over. My snap is "partially working" now, but I keep having permission issues for packet capturing, which I'm hopeing is something I can just add to the binaries: or services: section
User9: wililupy, alright, well come back if you continue to have troubles :)
User9: jdstrand, have we made any more progress on bug #1466234 ?
User14: bug 1466234 in ubuntu-snappy (Ubuntu) "Apparmor denial for access to SNAP_APP_USER_DATA_PATH as root" [Critical,Triaged] https://launchpad.net/bugs/1466234
User9: ogra_, I'm looking for some documentation on port negotiation
User9: ogra_, any pointers?
User5: negotziation ? no
User5: probably Chipaca has an idea
User9: ogra_, oh... the docs say "there is no implementation for this yet" :P
User5: heh, i have never needed it
User9: ogra_, yeah, I was trying to pave the way to having multiple ROS snaps installed
 * ogra_ has the ports in his snaps configurble via snappy config ;)
User5: +a
User9: ogra_, how does that work?
User9: ogra_, perhaps I could make a workaround for now
User9: ogra_, https://developer.ubuntu.com/en/snappy/guides/config-command/ ?
User5: well, i'm pretty non-std and prefer to use shell for such stuff :) but have a look http://bazaar.launchpad.net/~ogra/+junk/packageproxy/files
User5: snapcraft.yaml defines config.sh ... config.sh writes a yaml file as well as the actual confi for the app/service
User5: your config tool can indeed be a python script, go or C ...
User9: ogra_, nice, okay thanks!
snappy
Ubuntu IRC