IRC logs for #buildstream for Monday, 2017-09-25

*** tristan has joined #buildstream02:15
gitlab-br-botbuildstream: issue #93 ("Creating a child task can fail and raise a stack trace") changed state ("opened") https://gitlab.com/BuildStream/buildstream/issues/9305:30
*** tristan has quit IRC06:01
*** tristan has joined #buildstream06:49
*** ChanServ sets mode: +o tristan06:49
*** anahuelamo has quit IRC07:43
*** anahuelamo has joined #buildstream07:44
*** jonathanmaw has joined #buildstream08:19
*** jude has joined #buildstream08:47
adds68Hi there, i'm trying to install buildstream into a virtualenv, when i pull down buildstream, enable site packages and run pip install, i receive an error:09:10
adds68 BuildStream requires OSTree >= v2017.8 with Python bindings. Install it using your package manager (usually ostree or gir1.2-ostree-1.0).09:10
adds68how do i update OsTree, to this latest version, the OSTree docs lead to a dead github link09:11
gitlab-br-botpush on buildstream@cross_platform (by Tristan Maat): 13 commits (last: utils.py: Fix missing psutil reference) https://gitlab.com/BuildStream/buildstream/commit/d8a77f793fadf6e7678bc09bd84677f67207f68109:27
gitlab-br-botbuildstream: merge request (cross_platform->master: WIP: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8109:27
tristanadds68, sorry have been in a meeting... which will continue in a moment :-/09:32
tristanadds68, https://github.com/ostreedev/ostree should be the right place...09:32
tristanhopefully we're going to improve the docker user story very soon, which would help for the moment while we require such a new version of ostree :-/09:33
adds68Hi tristan, thanks for the link, i'm a little confused by the "recursive git script" section09:33
adds68The "this code" link takes me to a 404 page, so should i just download the project as a zip and try and install it from source?09:34
tristanoh weird, I never used that09:49
tristanjust init and update the submodules and it builds09:49
tristanadds68, ok so, with a docker image that already contains ostree we wont have this building issue, but yes for now I just build it on my host09:50
tristanOne can use an alternative prefix in a home dir, I've added `export GI_TYPELIB_PATH=${prefix}/lib/girepository-1.0` to my .bashrc09:52
adds68tristan, so should i use the docker image or try and install the latest ostree locally?09:55
adds68tristan, I'm not too sure what that command is doing above also^ sorry09:55
tristanwhat is your distro ?09:56
tristanjonathanmaw, do you still use a docker image to build ?09:56
jonathanmawtristan: I'm not using a docker image, no.09:56
tristanhmm :-/09:56
tristanI never use docker and dont know enough to confidently guide someone through it09:57
adds68tristan, i'm running debian stretch09:57
adds68debian 4.9.3009:57
gitlab-br-botbuildstream: Tristan Maat created branch 48-incorrect-pipeline-total-element-count-for-bst-track09:57
tristanMe too :)09:57
adds68If i can compile and install the latest OStree then my python virtualenv should work09:58
adds68I'm just not clear on how to install it from their docs09:58
adds68=/09:58
tristanadds68, Ok that I can help with I think hehe...09:58
tristanSo, with debian I believe /usr/local is clean for the user to play with (except for python which is just, really weird)09:59
tristanSo I personally just super user install into /usr/local (debian installs ostree directly into /usr)10:00
tristanfirst of all, git clone https://github.com/ostreedev/ostree10:00
tristancd ostree10:00
tristangit submodules init10:00
tristansorry10:00
tristangit submodule init10:00
tristangit submodule update10:00
tristanSo, that will give you the latest ostree ready to build10:01
tristanAfter that10:01
tristan ./configure && make && sudo make install ... would install it into /usr/local10:01
tristanAnd, you need to have the line: export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.010:02
tristanin your .bashrc (to make sure it keeps working)10:02
tristanadds68, that by itself should be enough10:02
adds68Excellent, thanks very much :) i shall try these steps and see how far i get10:02
tristanAfaics, I'm using debian's packaged bubblwrap without issue10:02
adds68Could explain what  GI_TYPELIB_PATH is10:03
adds68?*10:03
tristanadds68, sure, we use ostree via the gobject introspection bindings for python10:03
tristanSo thats "GObject Introspection" typelib path10:03
tristanThe typelibs is a thing (a binary) that C libraries install, to allow foreign languages to easily call into the C library basically10:04
adds68tristan, ahh ok so GObject allows you to call Ostree from python?10:05
*** jonathanmaw has quit IRC10:06
tristanthe "python3-gi" distro package which is needed specifically... is to let python interact with libraries which provide GObject introspection data10:06
tristanadds68, basically yes :)10:06
adds68Thanks tristan, i suspect many more questions will arise, but it all sounds very interesting10:07
tristanI hope it doesnt take too much effort to get off the ground :)10:08
*** jonathanmaw has joined #buildstream10:08
tristanfwiw I think next week we'll have someone looking into making the docker approach easy10:08
adds68tristan, would the docker image be a sort of "playground" or an actual install to use locally?10:13
tristanit should let you run buildstream locally without having to install the requirements on your machine itself10:15
tristanwith a script that makes it kind of transparent10:15
tristanI guess similar to activating a venv10:15
adds68tristan, have you looked into Pipenv?10:16
adds68tristan, https://pipenv.readthedocs.io/en/latest/10:16
tristanadds68, that looks like its part of the whole misguided packaging approach from hell that is prevailant in python yeah :)10:17
adds68tristan, hahahaha, it's a neat way of managing a virtualenv install though10:18
tristanit wouldnt do better than a venv anyway, it will assume that the whole world is written in pure python, and everything you could possible need is in /usr/lib/python{version}/ :)10:18
* adds68 is still very new and naive :P10:18
*** bochecha has joined #buildstream10:49
*** tristan has quit IRC10:50
*** tlater has joined #buildstream10:55
gitlab-br-botpush on buildstream@cross_platform (by Tristan Maat): 1 commit (last: Remove sandbox-RO hack) https://gitlab.com/BuildStream/buildstream/commit/a373a20a3ddcb27476ab2b09ab05cb298ecf738711:05
gitlab-br-botbuildstream: merge request (cross_platform->master: WIP: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8111:05
*** tristan has joined #buildstream11:24
*** bochecha has quit IRC11:25
*** bochecha has joined #buildstream11:58
*** jonathanmaw has quit IRC12:07
*** jonathanmaw has joined #buildstream12:07
gitlab-br-botbuildstream: merge request (75-source-bundle-generated-script-fails-when-a-build-element-has-no-source->master: build-module.sh.in: Don't attempt to copy empty sources) #97 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/9714:09
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8114:09
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8114:09
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8114:09
gitlab-br-botpush on buildstream@cross_platform (by Tristan Maat): 12 commits (last: _sandboxchroot.py: Implement sandboxchroot) https://gitlab.com/BuildStream/buildstream/commit/4d016cf46f83f586e388bc53cbeccbcfb60da44d14:10
gitlab-br-botpush on buildstream@cross_platform (by Tristan Maat): 8 commits (last: Add platform factories) https://gitlab.com/BuildStream/buildstream/commit/1efc48314532c79c7b28fd8d92f3728c57bb06c414:11
gitlab-br-botbuildstream: Tristan Maat created branch 75-source-bundle-generated-script-fails-when-a-build-element-has-no-source14:14
gitlab-br-botpush on buildstream@cross_platform (by Tristan Maat): 1 commit (last: .gitlab-ci.yml: Add fallback integration tests to CI) https://gitlab.com/BuildStream/buildstream/commit/a80a783b02762053c113c1c6a409751181f33d9714:17
gitlab-br-botpush on buildstream@75-source-bundle-generated-script-fails-when-a-build-element-has-no-source (by Tristan Maat): 1 commit (last: build-module.sh.in: Don't attempt to copy empty sources) https://gitlab.com/BuildStream/buildstream/commit/dc26ad883edd3f06e6f60648465d153c002694da14:19
gitlab-br-botbuildstream: Tristan Maat created branch 93-creating-a-child-task-can-fail-and-raise-a-stack-trace14:34
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8114:43
*** uajain has quit IRC15:32
adds68I have ostree installed running v2017.12, yet the buildstream pip install is still complaining that my version is not up to date?16:05
adds68Processing /home/adamjones/buildstream16:05
adds68    Complete output from command python setup.py egg_info:16:05
adds68    OSTree not found16:05
adds68    BuildStream requires OSTree >= v2017.8 with Python bindings. Install it using your package manager (usually ostree or gir1.2-ostree-1.0).16:05
adds6816:05
adds68    ----------------------------------------16:05
adds68Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-ap1jk9fk-build/16:05
tlaterDo you also have an up-to-date gir1.2-ostree-1.0 installed?16:22
tlateradds68: Sorry, slow16:22
adds68hi tlater, yes i do16:22
adds68I've looked into the setup.py and run the import statement where it fails in a python shell and the import works?16:23
adds68So i'm not sure why setup.py is failing?16:23
tlaterIncluding the bit where it checks what version ostree reports?16:24
tlaterpython3/python2?16:25
adds68tlater, python3 ahh sorry it seems to be this line that is failing16:25
adds68try:16:26
adds68 67     gi.require_version('OSTree', '1.0')16:26
adds68 68     from gi.repository import OSTree16:26
adds68 69 except:16:26
adds68 70     exit_ostree("OSTree not found")16:26
tlaterThat looks like you don't have gir1.2-ostree-1.016:26
adds68I've just run those commands inside ipython and again no errors?16:27
adds68I can import OSTree and tab complete on the commands etc16:27
adds68Python 3.5.316:28
tlaterHm. Do you run python in a fancy way since you manually compiled those packages?16:28
adds68tlater, no i just installed python from apt-get16:29
adds68created a virtualenv using my default python3 and then run tried to run setup.py16:29
tlaterDo you run the python shell in the same virtualenv?16:29
tlaterWhen you try those commadns?16:30
adds68yea i activate the env, then navigate to buildstream dir16:30
adds68Yep, ipython is running inside my buildstream env16:30
tlaterThat's... Strange.16:30
adds68IKR :(16:31
tlaterCan you run the setup.py from within ipython?16:31
* tlater is not entirely sure what sorcery would be required for that, probably an import16:31
adds68ttributeError: 'gi.repository.OSTree' object has no attribute 'YEAR_VERSION'16:32
adds68trace back from ipython16:32
tlaterThat means it's outdated16:32
tlaterThough it should report an exception first...16:33
tlaterDid you have ostree installed before building it manually, and if yes, is that package/gir1.2-ostree-1.0 perhaps still installed?16:33
adds68Yea, i tried following the suggested package manager steps16:34
adds68but i removed it after installing manually, so should i try and remove gir1?16:34
tlaterAh, yes, you'll have to remove git1.2-ostree-1.0 and then build that from source16:34
tlaterThat's what I meant earlier16:35
tlaterShould be a bit easier as it's a python package, but again, I just installed an unstable package so not entirely sure if you'll need to manually build gobject-introspection or something.16:36
adds68if this doesnt work, i'll just try and follow the sid way16:37
adds68Why the stable package so out of date?16:37
tlaterBecause *stability* ;P16:38
adds68i cant find where i would get  package/gir1.2-ostree-1.0 to compile again from source16:58
adds68so i'm just going to remove this and installed from sid in the morning16:58
tristanDo you have GI_TYPELIB_PATH set in your environment like I recommended ?17:00
tristanwhen running setup.py ?17:00
tristanadds68, you installed gir1.2-ostree-1.0 or whatever, when you built and installed ostree (or, maybe building ostree didnt build gobject introspection data if you didnt have gobject-introspection devel package available when you built ostree)17:02
tristanbut make install should have given you ostree stuff inside /usr/local/lib/girepository-1.017:03
tristanthe end of the ./configure output of ostree will tell you if GObject Introspection was enabled for the build17:03
tristanif not, it needs to be built with gobject introspection devel package available on your system17:03
* tlater completely misunderstood how ostree was packaged, sorry adds68 17:08
*** reto has joined #buildstream17:15
tlatertristan: Do you have a minute to talk about !93?17:15
tlaterI'd rather not stay too late, as I still need to run to the university and back today, but I can take another 10 mins for that.17:16
tristandefinitely not17:18
tlaterAww, oh well17:19
tlaterta anyway o/17:20
*** tlater has quit IRC17:21
*** jonathanmaw has quit IRC17:26
*** reto has quit IRC17:39
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8119:55
gitlab-br-botbuildstream: merge request (75-source-bundle-generated-script-fails-when-a-build-element-has-no-source->master: build-module.sh.in: Don't attempt to copy empty sources) #97 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/9720:42
gitlab-br-botbuildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/8120:58
*** bochecha_ has joined #buildstream21:00
*** bochecha has quit IRC21:02
*** bochecha_ is now known as bochecha21:02
gitlab-br-botbuildstream: merge request (75-source-bundle-generated-script-fails-when-a-build-element-has-no-source->master: build-module.sh.in: Don't attempt to copy empty sources) #97 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/9721:04
*** bochecha has quit IRC22:46

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