*** b3rnard0 is now known as b3rnard0_away | 00:50 | |
*** lifeless has quit IRC | 02:43 | |
*** lifeless has joined #storyboard | 02:44 | |
*** jtomasek has joined #storyboard | 06:50 | |
*** mrmartin has joined #storyboard | 07:12 | |
*** lifeless has quit IRC | 09:39 | |
Zara | morning, storyboard! I'm having a nap, but back in a bit. :) | 09:40 |
---|---|---|
*** lifeless has joined #storyboard | 09:40 | |
pedroalvarez | morning Zara | 09:40 |
krotscheck | hi hi! | 10:25 |
Zara | WHY DO NAPS NEVER WORK | 10:35 |
* Zara gives up and gets up again | 10:35 | |
Zara | hi all! :D | 10:35 |
Zara | I'm planning to blow some cobwebs off python-storyboardclient; does anyone know anything about that thing? | 10:35 |
Zara | ( most is copyright mirantis so I'm guessing Nikitakonovalov's the expert?) | 10:37 |
Zara | oh, and also, I looked at socket.io a bit this weekend in the hopes of working on making a live-updating storyboard | 10:41 |
Zara | but concluded that socket.io is all express-based magic and I have no idea how any of it works | 10:42 |
persia | live updating with REST ends up being interesting anyway. You'd want to expose some other sort of eventstream that could be consumed. | 10:44 |
Zara | for context, I wanted to spend fri morning investigating an improvement on https://review.openstack.org/#/c/275193/ , but other things got in the way. can't say I'm obsessed by kanbans but it seemed like a straightforward place to start. | 10:48 |
* Zara kinda wanted to put a 2p game in storyboard for april fools ;_; | 10:48 | |
Zara | krotscheck ^ (ie: know anything about the history or current state of python-storyboardclient?) | 11:10 |
krotscheck | Zara: Put an alert message into StoryBoard saying that we're recommending they use Launchpad instead. | 11:11 |
krotscheck | Zara: Don't know much about the client, to be honest I don't think there's much that uses it right now. | 11:11 |
persia | heh | 11:11 |
Zara | :) | 11:18 |
Zara | yeah, just thought it was time for an update since we've changed a bunch of stuff. never actually used it... | 11:20 |
Zara | hm, adam's listed as an author. well that's not right. | 11:36 |
*** mrmartin has quit IRC | 11:52 | |
Zara | I don't know how to use this thing at all | 11:56 |
Zara | I can still update it, I think, but I don't know how to test it yet. | 11:59 |
Zara | I don't even know if it's installed properly. =D | 12:00 |
Zara | running tox, things are happening. are they the right things? who knows! | 12:03 |
Zara | py27 works, py34 fails; I literally just ran `tox` so I feel like I've probably missed some config | 12:04 |
Zara | (that was after `python setup.py install` | 12:04 |
Zara | py34 can't install the dependencies, py27 and pep8 tests pass | 12:05 |
pedroalvarez | you should be able to run `python` | 12:06 |
pedroalvarez | and then | 12:06 |
pedroalvarez | `import storyboardclient | 12:07 |
pedroalvarez | ` | 12:07 |
Zara | ahhh, I tried something like that earlier and got an error so I thought I was doing the wrong thing | 12:08 |
Zara | ImportError: No module named pbr.version | 12:08 |
Zara | File "storyboardclient/__init__.py", line 15, in <module> | 12:08 |
Zara | import pbr.version | 12:08 |
Zara | right at the start, yay! | 12:08 |
pedroalvarez | I don't know what else you can do without looking at the code | 12:08 |
pedroalvarez | that should be a common error, google might help there | 12:09 |
pedroalvarez | maybe you are missing `pbr` | 12:09 |
* Zara looks at the __init__.py | 12:09 | |
Zara | import pbr.version | 12:09 |
Zara | __version__ = pbr.version.VersionInfo( | 12:09 |
Zara | 'storyboardclient').version_string() | 12:09 |
Zara | that's the whole thing... | 12:09 |
NikitaKonovalov | Zara: did you have any questions about python-storyboardclient? | 12:23 |
Zara | hi, NikitaKonovalov! :D | 12:24 |
Zara | er, pretty much everything | 12:24 |
Zara | how do I install it, how do I run it, etc.... ^^' | 12:24 |
NikitaKonovalov | installation is pip install python-storyboardclient | 12:25 |
Zara | I don't think it's listed in pip; I tried that and it wasn't found | 12:25 |
NikitaKonovalov | It's all based on openstack http client from oslo | 12:25 |
NikitaKonovalov | if it's not in pypi, you can just pip install the git repo itself | 12:26 |
pedroalvarez | that is `pip install .` I believe :) | 12:26 |
NikitaKonovalov | The only difference I've added to the openstack cleint is the support of nested resources like users in groups and projects in project groups | 12:26 |
Zara | ah, okay, I cloned the repo and did `python setup.py install`; is that likely to have the same result as pip install? | 12:27 |
NikitaKonovalov | yep | 12:27 |
Zara | cool, step 1 complete! :D | 12:27 |
NikitaKonovalov | Most of it is quite declarative, just the set of models and contrllers to handle them | 12:27 |
Zara | thanks, yeah, it looked quite straightforward :) | 12:28 |
Zara | though I still don't actually know how to run it... | 12:29 |
* Zara is a complete newb for this sort of thing | 12:29 | |
*** mrmartin has joined #storyboard | 12:29 | |
NikitaKonovalov | it's not runnable actualy | 12:32 |
NikitaKonovalov | you can import it to other projects, then instantiate the Client object with url and credentials, and then make calls to manangers to manipulate data | 12:33 |
NikitaKonovalov | as far as I remember the only way you can authorize is by simply giving it a user token | 12:34 |
Zara | aha, thaaat would explain why I couldn't find how to run it. xD | 12:34 |
Zara | thank you | 12:34 |
Zara | so to see how it works atm, I guess I'd need an example project I could import it into | 12:35 |
NikitaKonovalov | you can make a simple python file to import it, initialize, and make some calls | 12:39 |
*** mrmartin has quit IRC | 13:28 | |
*** b3rnard0_away is now known as b3rnard0 | 13:30 | |
*** mrmartin has joined #storyboard | 13:39 | |
Zara | sorry, got very distracted for a bit | 13:45 |
Zara | so, I started by trying the tests; getting errors because no oslo_utils | 13:46 |
Zara | tried to install oslo_utils, got | 13:47 |
Zara | ImportError: cannot import name IncompleteRead | 13:47 |
Zara | oh, seems pip install isn't working for anything | 13:48 |
Zara | hm. | 13:48 |
*** mrmartin has quit IRC | 14:49 | |
*** mrmartin has joined #storyboard | 14:49 | |
*** mrmartin has quit IRC | 14:54 | |
*** openstackgerrit has quit IRC | 15:06 | |
*** openstackgerrit has joined #storyboard | 15:07 | |
Zara | pip install oslo_utils | 15:14 |
Zara | Downloading/unpacking oslo-utils | 15:14 |
Zara | Real name of requirement oslo_utils is oslo.utils | 15:14 |
Zara | this is why I hate that package. | 15:14 |
Zara | I pick a dot or a hyphen or an underscore at random. | 15:17 |
pedroalvarez | `pip install .` should intall all the dependencies, I believe | 15:17 |
Zara | I think it's working now; had to reinstall pip because I managed to break it | 15:18 |
Zara | google suggested I'd hit a known bug, at least | 15:18 |
* Zara installs all the things, just in case. should be able to update installation docs today, at least | 15:27 | |
Zara | my python is pretty much nonexistent, bit it's a good way to learn. | 15:28 |
Zara | *but | 15:28 |
Zara | so, newb question, but how do I instantiate the client object wiht the right url and credentials? is there a guide I should look at for this sort of thing in general? | 15:45 |
*** ilyashakhat__ has joined #storyboard | 16:01 | |
Zara | oh hang on | 16:03 |
Zara | there is literally an example in a comment in the code | 16:03 |
Zara | whoops. | 16:03 |
*** jtomasek has quit IRC | 16:07 | |
*** ilyashakhat__ has quit IRC | 16:21 | |
*** ilyashakhat__ has joined #storyboard | 16:29 | |
*** ilyashakhat__ has quit IRC | 16:29 | |
*** jtomasek has joined #storyboard | 16:49 | |
Zara | my client stuff seems to be talking to itself correctly; though I don't know how to populate it with the actual data. | 16:56 |
Zara | just spent a while wandering around trying things out | 16:56 |
*** betherly has quit IRC | 17:07 | |
*** jasondotstar has quit IRC | 17:07 | |
*** b3rnard0 has quit IRC | 17:07 | |
*** b3rnard0 has joined #storyboard | 17:07 | |
Zara | seems to have same behaviour whether or not I mention the address, so I assume I'm missing something | 17:07 |
*** fay_ has quit IRC | 17:07 | |
*** jasondotstar has joined #storyboard | 17:08 | |
*** betherly has joined #storyboard | 17:18 | |
Zara | ah, I think it's working | 17:41 |
Zara | I just don't know any of the syntax for doing gets etc | 17:42 |
Zara | but print storyboard.stories.get(50) | 17:42 |
Zara | gave me something that looked like a sensible thing | 17:42 |
Zara | works with a loop for the first ten stories; I have no idea about PUTS and POSTs but I'm probably not going to look at those today. | 17:47 |
openstackgerrit | Zara proposed openstack-infra/python-storyboardclient: Update Docs https://review.openstack.org/298910 | 17:57 |
Zara | it seems like the fields in the class don't make a difference.... huh | 18:11 |
*** krotscheck is now known as krotscheck_dcm | 19:07 | |
*** jtomasek_ has joined #storyboard | 20:30 | |
*** jtomasek_ has quit IRC | 20:32 | |
*** jtomasek has quit IRC | 23:25 | |
*** jtomasek has joined #storyboard | 23:38 | |
pedroalvarez | Zara: I have a few comments on your patch. I'll try to review it tomorrow. Ping me if I forget, | 23:56 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!