*** tristan has joined #buildstream | 02:15 | |
gitlab-br-bot | buildstream: issue #93 ("Creating a child task can fail and raise a stack trace") changed state ("opened") https://gitlab.com/BuildStream/buildstream/issues/93 | 05:30 |
---|---|---|
*** tristan has quit IRC | 06:01 | |
*** tristan has joined #buildstream | 06:49 | |
*** ChanServ sets mode: +o tristan | 06:49 | |
*** anahuelamo has quit IRC | 07:43 | |
*** anahuelamo has joined #buildstream | 07:44 | |
*** jonathanmaw has joined #buildstream | 08:19 | |
*** jude has joined #buildstream | 08:47 | |
adds68 | Hi 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 |
adds68 | how do i update OsTree, to this latest version, the OSTree docs lead to a dead github link | 09:11 |
gitlab-br-bot | push on buildstream@cross_platform (by Tristan Maat): 13 commits (last: utils.py: Fix missing psutil reference) https://gitlab.com/BuildStream/buildstream/commit/d8a77f793fadf6e7678bc09bd84677f67207f681 | 09:27 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: WIP: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 09:27 |
tristan | adds68, sorry have been in a meeting... which will continue in a moment :-/ | 09:32 |
tristan | adds68, https://github.com/ostreedev/ostree should be the right place... | 09:32 |
tristan | hopefully 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 |
adds68 | Hi tristan, thanks for the link, i'm a little confused by the "recursive git script" section | 09:33 |
adds68 | The "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 |
tristan | oh weird, I never used that | 09:49 |
tristan | just init and update the submodules and it builds | 09:49 |
tristan | adds68, 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 host | 09:50 |
tristan | One can use an alternative prefix in a home dir, I've added `export GI_TYPELIB_PATH=${prefix}/lib/girepository-1.0` to my .bashrc | 09:52 |
adds68 | tristan, so should i use the docker image or try and install the latest ostree locally? | 09:55 |
adds68 | tristan, I'm not too sure what that command is doing above also^ sorry | 09:55 |
tristan | what is your distro ? | 09:56 |
tristan | jonathanmaw, do you still use a docker image to build ? | 09:56 |
jonathanmaw | tristan: I'm not using a docker image, no. | 09:56 |
tristan | hmm :-/ | 09:56 |
tristan | I never use docker and dont know enough to confidently guide someone through it | 09:57 |
adds68 | tristan, i'm running debian stretch | 09:57 |
adds68 | debian 4.9.30 | 09:57 |
gitlab-br-bot | buildstream: Tristan Maat created branch 48-incorrect-pipeline-total-element-count-for-bst-track | 09:57 |
tristan | Me too :) | 09:57 |
adds68 | If i can compile and install the latest OStree then my python virtualenv should work | 09:58 |
adds68 | I'm just not clear on how to install it from their docs | 09:58 |
adds68 | =/ | 09:58 |
tristan | adds68, Ok that I can help with I think hehe... | 09:58 |
tristan | So, with debian I believe /usr/local is clean for the user to play with (except for python which is just, really weird) | 09:59 |
tristan | So I personally just super user install into /usr/local (debian installs ostree directly into /usr) | 10:00 |
tristan | first of all, git clone https://github.com/ostreedev/ostree | 10:00 |
tristan | cd ostree | 10:00 |
tristan | git submodules init | 10:00 |
tristan | sorry | 10:00 |
tristan | git submodule init | 10:00 |
tristan | git submodule update | 10:00 |
tristan | So, that will give you the latest ostree ready to build | 10:01 |
tristan | After that | 10:01 |
tristan | ./configure && make && sudo make install ... would install it into /usr/local | 10:01 |
tristan | And, you need to have the line: export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0 | 10:02 |
tristan | in your .bashrc (to make sure it keeps working) | 10:02 |
tristan | adds68, that by itself should be enough | 10:02 |
adds68 | Excellent, thanks very much :) i shall try these steps and see how far i get | 10:02 |
tristan | Afaics, I'm using debian's packaged bubblwrap without issue | 10:02 |
adds68 | Could explain what GI_TYPELIB_PATH is | 10:03 |
adds68 | ?* | 10:03 |
tristan | adds68, sure, we use ostree via the gobject introspection bindings for python | 10:03 |
tristan | So thats "GObject Introspection" typelib path | 10:03 |
tristan | The typelibs is a thing (a binary) that C libraries install, to allow foreign languages to easily call into the C library basically | 10:04 |
adds68 | tristan, ahh ok so GObject allows you to call Ostree from python? | 10:05 |
*** jonathanmaw has quit IRC | 10:06 | |
tristan | the "python3-gi" distro package which is needed specifically... is to let python interact with libraries which provide GObject introspection data | 10:06 |
tristan | adds68, basically yes :) | 10:06 |
adds68 | Thanks tristan, i suspect many more questions will arise, but it all sounds very interesting | 10:07 |
tristan | I hope it doesnt take too much effort to get off the ground :) | 10:08 |
*** jonathanmaw has joined #buildstream | 10:08 | |
tristan | fwiw I think next week we'll have someone looking into making the docker approach easy | 10:08 |
adds68 | tristan, would the docker image be a sort of "playground" or an actual install to use locally? | 10:13 |
tristan | it should let you run buildstream locally without having to install the requirements on your machine itself | 10:15 |
tristan | with a script that makes it kind of transparent | 10:15 |
tristan | I guess similar to activating a venv | 10:15 |
adds68 | tristan, have you looked into Pipenv? | 10:16 |
adds68 | tristan, https://pipenv.readthedocs.io/en/latest/ | 10:16 |
tristan | adds68, that looks like its part of the whole misguided packaging approach from hell that is prevailant in python yeah :) | 10:17 |
adds68 | tristan, hahahaha, it's a neat way of managing a virtualenv install though | 10:18 |
tristan | it 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 :P | 10:18 | |
*** bochecha has joined #buildstream | 10:49 | |
*** tristan has quit IRC | 10:50 | |
*** tlater has joined #buildstream | 10:55 | |
gitlab-br-bot | push on buildstream@cross_platform (by Tristan Maat): 1 commit (last: Remove sandbox-RO hack) https://gitlab.com/BuildStream/buildstream/commit/a373a20a3ddcb27476ab2b09ab05cb298ecf7387 | 11:05 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: WIP: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 11:05 |
*** tristan has joined #buildstream | 11:24 | |
*** bochecha has quit IRC | 11:25 | |
*** bochecha has joined #buildstream | 11:58 | |
*** jonathanmaw has quit IRC | 12:07 | |
*** jonathanmaw has joined #buildstream | 12:07 | |
gitlab-br-bot | buildstream: 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/97 | 14:09 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 14:09 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 14:09 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 14:09 |
gitlab-br-bot | push on buildstream@cross_platform (by Tristan Maat): 12 commits (last: _sandboxchroot.py: Implement sandboxchroot) https://gitlab.com/BuildStream/buildstream/commit/4d016cf46f83f586e388bc53cbeccbcfb60da44d | 14:10 |
gitlab-br-bot | push on buildstream@cross_platform (by Tristan Maat): 8 commits (last: Add platform factories) https://gitlab.com/BuildStream/buildstream/commit/1efc48314532c79c7b28fd8d92f3728c57bb06c4 | 14:11 |
gitlab-br-bot | buildstream: Tristan Maat created branch 75-source-bundle-generated-script-fails-when-a-build-element-has-no-source | 14:14 |
gitlab-br-bot | push 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/a80a783b02762053c113c1c6a409751181f33d97 | 14:17 |
gitlab-br-bot | push 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/dc26ad883edd3f06e6f60648465d153c002694da | 14:19 |
gitlab-br-bot | buildstream: Tristan Maat created branch 93-creating-a-child-task-can-fail-and-raise-a-stack-trace | 14:34 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 14:43 |
*** uajain has quit IRC | 15:32 | |
adds68 | I have ostree installed running v2017.12, yet the buildstream pip install is still complaining that my version is not up to date? | 16:05 |
adds68 | Processing /home/adamjones/buildstream | 16:05 |
adds68 | Complete output from command python setup.py egg_info: | 16:05 |
adds68 | OSTree not found | 16: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 |
adds68 | 16:05 | |
adds68 | ---------------------------------------- | 16:05 |
adds68 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-ap1jk9fk-build/ | 16:05 |
tlater | Do you also have an up-to-date gir1.2-ostree-1.0 installed? | 16:22 |
tlater | adds68: Sorry, slow | 16:22 |
adds68 | hi tlater, yes i do | 16:22 |
adds68 | I've looked into the setup.py and run the import statement where it fails in a python shell and the import works? | 16:23 |
adds68 | So i'm not sure why setup.py is failing? | 16:23 |
tlater | Including the bit where it checks what version ostree reports? | 16:24 |
tlater | python3/python2? | 16:25 |
adds68 | tlater, python3 ahh sorry it seems to be this line that is failing | 16:25 |
adds68 | try: | 16:26 |
adds68 | 67 gi.require_version('OSTree', '1.0') | 16:26 |
adds68 | 68 from gi.repository import OSTree | 16:26 |
adds68 | 69 except: | 16:26 |
adds68 | 70 exit_ostree("OSTree not found") | 16:26 |
tlater | That looks like you don't have gir1.2-ostree-1.0 | 16:26 |
adds68 | I've just run those commands inside ipython and again no errors? | 16:27 |
adds68 | I can import OSTree and tab complete on the commands etc | 16:27 |
adds68 | Python 3.5.3 | 16:28 |
tlater | Hm. Do you run python in a fancy way since you manually compiled those packages? | 16:28 |
adds68 | tlater, no i just installed python from apt-get | 16:29 |
adds68 | created a virtualenv using my default python3 and then run tried to run setup.py | 16:29 |
tlater | Do you run the python shell in the same virtualenv? | 16:29 |
tlater | When you try those commadns? | 16:30 |
adds68 | yea i activate the env, then navigate to buildstream dir | 16:30 |
adds68 | Yep, ipython is running inside my buildstream env | 16:30 |
tlater | That's... Strange. | 16:30 |
adds68 | IKR :( | 16:31 |
tlater | Can you run the setup.py from within ipython? | 16:31 |
* tlater is not entirely sure what sorcery would be required for that, probably an import | 16:31 | |
adds68 | ttributeError: 'gi.repository.OSTree' object has no attribute 'YEAR_VERSION' | 16:32 |
adds68 | trace back from ipython | 16:32 |
tlater | That means it's outdated | 16:32 |
tlater | Though it should report an exception first... | 16:33 |
tlater | Did you have ostree installed before building it manually, and if yes, is that package/gir1.2-ostree-1.0 perhaps still installed? | 16:33 |
adds68 | Yea, i tried following the suggested package manager steps | 16:34 |
adds68 | but i removed it after installing manually, so should i try and remove gir1? | 16:34 |
tlater | Ah, yes, you'll have to remove git1.2-ostree-1.0 and then build that from source | 16:34 |
tlater | That's what I meant earlier | 16:35 |
tlater | Should 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 |
adds68 | if this doesnt work, i'll just try and follow the sid way | 16:37 |
adds68 | Why the stable package so out of date? | 16:37 |
tlater | Because *stability* ;P | 16:38 |
adds68 | i cant find where i would get package/gir1.2-ostree-1.0 to compile again from source | 16:58 |
adds68 | so i'm just going to remove this and installed from sid in the morning | 16:58 |
tristan | Do you have GI_TYPELIB_PATH set in your environment like I recommended ? | 17:00 |
tristan | when running setup.py ? | 17:00 |
tristan | adds68, 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 |
tristan | but make install should have given you ostree stuff inside /usr/local/lib/girepository-1.0 | 17:03 |
tristan | the end of the ./configure output of ostree will tell you if GObject Introspection was enabled for the build | 17:03 |
tristan | if not, it needs to be built with gobject introspection devel package available on your system | 17:03 |
* tlater completely misunderstood how ostree was packaged, sorry adds68 | 17:08 | |
*** reto has joined #buildstream | 17:15 | |
tlater | tristan: Do you have a minute to talk about !93? | 17:15 |
tlater | I'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 |
tristan | definitely not | 17:18 |
tlater | Aww, oh well | 17:19 |
tlater | ta anyway o/ | 17:20 |
*** tlater has quit IRC | 17:21 | |
*** jonathanmaw has quit IRC | 17:26 | |
*** reto has quit IRC | 17:39 | |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 19:55 |
gitlab-br-bot | buildstream: 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/97 | 20:42 |
gitlab-br-bot | buildstream: merge request (cross_platform->master: Cross platform) #81 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/81 | 20:58 |
*** bochecha_ has joined #buildstream | 21:00 | |
*** bochecha has quit IRC | 21:02 | |
*** bochecha_ is now known as bochecha | 21:02 | |
gitlab-br-bot | buildstream: 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/97 | 21:04 |
*** bochecha has quit IRC | 22:46 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!