[00:19] Hey everyone. [00:19] ew, opless. [00:37] * alecu hates faulty PyQt versions on windows. [00:37] and eod, btw. [00:53] why use windows? :) === jamesh__ is now known as jamesh [08:48] Mornin' all! :) === zyga is now known as zyga-afk [10:11] good morning === daker__ is now known as daker_ === daker__ is now known as daker_ === zyga-afk is now known as zyga [12:23] good morning! [12:24] ralsina, hi here too! :P [12:25] hello at work, gatox! :-) [12:54] hello all! [12:55] * alecu has just finished packing the bag for PyCamp. Half of it is board games :P [12:55] alecu, hi!! [12:55] alecu, i pack mine too.... i don't know how i put everything in there... but i did :P [13:00] ralsina: so, what did the doctor say? feeling any better? [13:00] alecu: "have some ibuprofen, drink liquids and be a man about it" [13:01] alecu: that's doctorspeak for "who knows what you have, what am I, a psychic?" [13:01] but yes, a bit better [13:02] ralsina: so, that means you'll be the vector for the pycampflú! yay! [13:02] it's a dirty job, but someone has to do it [13:02] call me patient0 [13:02] we've never had one of those in the pycamp! we are getting near uds, awesome! [13:03] this pycamp is one deci-UDS :-) [13:03] ralsina: I'll call you patient0() [13:03] alecu: I have __call__ implemented [13:04] "a deci-UDS". That's quite an accomplishment, yes! [13:04] alecu: you in veronica already? [13:05] ralsina: not yet! I'm eagerly waiting for 6.20 pm, when I've got to board facundobatista's car. [13:06] I am getting xip, gatox and diva tonight at home and we leave at 6AM tomorrow [13:06] \o/ [13:06] * gatox is so excited! his first pycamp! [13:07] ralsina: awesome! so you start your small pre-pycamp tonite too! [13:07] gatox: they say the first time it always hurts... [13:07] it's an idea [13:07] alecu, ouch.... [13:07] (since mandel it's out, I get to do the bad jokes) [13:07] joke! [13:08] ralsina: btw, I've got good/bad news about the authenticated proxy bug you found on askubuntu... bug 1021098 [13:08] Launchpad bug 1021098 in Ubuntu One Windows Installer "Installer 3.0.2 can't use an authenticated proxy" [High,Triaged] https://launchpad.net/bugs/1021098 [13:08] alecu: yes, Qt 4.9??? [13:08] Do you know what Darth Vader is looking for in the freezer? [13:08] gatox: I know! [13:08] ralsina: pyqt 4.9. Which, afaik, means qt 4.8, right? [13:08] ralsina, don't spoil the joke for alecu [13:08] alecu: right [13:08] gatox: "joke" he said! jajajaja [13:09] jejeje [13:09] gatox: "helado oscuro" [13:09] ohhhh..... [13:09] "Porqué Darth Vader siempre pide helado de chocolate?" (misma idea) [13:09] gatox: it's an old one! two or three days old already! [13:09] gatox: also, you said it on twitter [13:10] yes.... i was expecting that you don't read what i twit [13:10] jeeejej [13:10] gatox: sorry to dissapoint you :-) [13:13] alecu, maybe, just MAYBE, i'll be able to bring this (but ninja-style): http://www.reclamstation.com/enews_images/pulseras/EMBOSSED_WRISTBANDS_ST.JPG as a gift for everyone at pycamp [13:18] gatox: nice (although I can't use them, can't stand having things on my wrists) [13:18] and that includes buttoned sleeves [13:20] ralsina, not my case: http://yfrog.com/nunzdptj - http://yfrog.com/ntvttulj [13:20] jeje [13:20] clearly [13:22] gatox: I don't like to wear bracelets nor watches either... [13:22] watches me neither.... but i love to wear silicon bracelets :P [13:28] hmm [14:12] cmake == suffering [14:12] ralsina: doing "cmake .. && make" in a subdir fails in u1db now :-/ [14:13] dobey: looking [14:13] can't run python setup.py, and can't find u1db/u1db.h [14:14] dobey: the setup.py error is when trying to set the version [14:15] dobey: change it to execute_process(COMMAND python ${CMAKE_SOURCE_DIR}/setup.py --version [14:15] I will do a branch to fix this quickly [14:16] the include error is probably something similar [14:16] apparently debhelper cmake stuff uses subdir [14:17] yeah, i think there's an -Iinclude that needs to be -I${CMAKE_SOURCE_DIR}/include [14:17] dobey: oh, well. That used to work before, it will work again. It's mostly forgetting to account for variables in paths [14:17] right [14:19] hmm [14:24] the target failing is install-python because the extension is not built.But we don't need to build it to install. [14:25] so it needs a bit of thought [14:27] well we do need to build it to run tests [14:28] dobey: well make check works [14:28] hrmm, it didn't here [14:28] dobey: after I fixed a couple of include paths [14:28] dobey: let me push [14:28] ah [14:29] i need to run an errand. brb [14:29] dobey: lp:~ralsina/u1db/cmake4 works for make check, still need to fix python-install [14:30] ok, i'll check it as soon as i return [14:30] i'll be back before the call [14:30] cool [14:38] gatox: https://bugs.launchpad.net/ubuntuone-client/+bug/1021037 - is it ok if i drop the logs from that bug report, was the reason found? [14:38] Error: ubuntu bug 1021037 not found [14:39] rye, i couldn't work on that yet, i'm working in a darwin issue [14:40] rye, i'll probably do that on tuesday (i'm not here tomorrow or monday) [14:41] rye, but if you want to delete the logs go ahead... i already have them [14:46] gatox: ok, thanks, removed === zyga is now known as zyga-afk === zyga-afk is now known as zyga [14:51] hi folks. so what's the right way to import winreg now? I saw something a while back about winreg vs. _winreg ... [14:53] looks like in sso we do import winreg and fall back to _winreg as winreg. is that the right way? (why?) [15:00] oi [15:00] mmcc: versions changed [15:00] team, team call! [15:00] mmcc: python3 renamed the module [15:00] already there [15:00] mmcc: so the try/except is needed [15:00] ralsina: where at this time? [15:01] dobey: let's go trditional and mumble [15:01] ok [15:01] funny, mumble didn't like my password [15:01] And now it does [15:02] be right there [15:03] thisfred: team call! === salgado is now known as salgado-lunch [15:28] gatox: shall we mumble about what you mentioned just now? [15:28] alecu, ok [15:28] mmcc: re: constants for those app things, i suppose they'll have to be in each individual app code, or in the project future formerly known as ubuntuone-windows-installer [15:29] hmmm [15:31] well, if we put the path-finding code into dirspec, then only dirspec will need the constants I'm thinking of. [15:32] dirspec shouldn't have any references to things that depend on dirspec [15:32] what are the constants exactly? [15:33] strings for packaged sub-app names, like SSO_LOGIN_SUBAPP_NAME = "Ubuntu SSO Helper.app" [15:34] yeah i think that would belong in ubuntu-ssoc-client [15:34] err, s/ssoc/sso/ [15:34] yeah, I'm not sure there's really all that much to move to dirspec here [15:35] mmcc: we should put the app-finding code in dirspec and pass these constants on call [15:35] well, if we have N places that actually have logic to find and execute things, we should consolidate that into a single point of failure [15:35] but that code shouldn't have anything specific about which apps to launch [15:35] dobey: point of SUCCESS ;-) [15:36] so, dirspec.get_packaged_cmdline(sso_login_exe, SSO_LOGIN_SUBAPP_NAME) [15:36] ralsina: well, in the event of failure, we can easily determine where and why it is failing, vs. flailing about in N different places :) [15:36] mmcc: right, and the second argument is ignored if non-darwin [15:36] mmcc: something like that i guess. depends on what the output really needs to be [15:37] since i don't really have any idea what exactly the expected output is for all the cases; at the moment [15:37] in the places I've seen, the output should just be a path to the exe [15:38] i also have no idea how the 'find and run an app' logic works on osx, since a .app can literally be anywhere on the filesystem and be usable [15:39] dopey, there are ways to find and run an app without knowing its location, but since these are sub-apps in our package, we can just use a known path to them [15:39] ARGH sorry dobey how do I turn this off [15:40] * mmcc trades spelling errors for calling dobey dopey [15:40] heh [15:40] are you using an osx client that forces spell correction? [15:41] it's just on by default, and 10.6+ has ios style autocorrect [15:42] I can turn it off, but I have to turn off all spell checking instead of just autocorrect [15:42] awesome [15:42] can you not add words to the dictionary? [15:42] surely that is needed for en_US-TX [15:43] * gatox lunch! === gatox is now known as gatox_lunch === ralsina is now known as Grumpy === Grumpy is now known as Grumpy_ [15:43] huh, y'all is not flagged [15:43] heh [15:44] y'all is a perfectly cromulent word [15:44] or maybe two [15:44] I told OSX to define cromulent and it showed me the wikipedia page for "Lisa the Iconoclast" [15:45] hahah [15:45] mmcc: OSX is right [15:45] now you can embiggen it's dictionary with it [15:45] :D === Grumpy_ is now known as ralsina [15:46] simpsons reference degrumpifies ralsina! [15:46] just that if I am the only one switching to dwarf name it's not fun ;-) [15:46] Pronunciation IPA: /ˈkrɒmjʊlənt/ [15:47] * mmcc gets it now [15:47] english dictionaries are funny. In spanish words are pronounced as they are written. [15:48] brb [15:51] ralsina: haha. good joke. [15:52] ralsina: how do you define dependencies in cmake? install-python needs to depend on the library being built :) [15:52] dobey: add u1db in the DEPENDS line [15:53] dobey: line 85 [15:54] dobey: ugh, looks like I broke make clean [15:55] ~. [15:55] dobey: because now the version has a \n in it! :-/ [15:56] le sigh [15:56] ralsina: spanish? v b j z c ? [15:56] rye: yep [15:56] they all sound different [15:57] ll [15:57] that one is a digraph [15:57] if you ever have a ll it always sounds like a ll :-) [15:57] the one that's a lie is gu that may sound different depending on what's after it [15:58] dobey: I'll do cmake5 fixing the version problem and the dependency in a bit [16:01] dobey: https://code.launchpad.net/~ralsina/u1db/cmake5/+merge/113606 [16:07] windows question - why do we use the registry at all to find exes? we only use it for two of the several exe's, and they're all in the same location anyway - the reg keys both point to ${installer}\dist\exename , and ubuntu_sso.utils.get_bin_dir just uses dirname(sys.executable) for the rest [16:08] * ralsina points his finger at alecu for mmcc's question. Or maybe mandel, but he's not around. [16:10] mmcc: historical reasons likely. [16:10] ralsina: will the socket interface used on mac for IPC? will then it be used on windows too? [16:11] rye: sorry, don't understand [16:11] mmcc: we had the installer create a registry key with the path to the various .exes [16:11] rye: we are using sockets on windows, but named pipes (I think!) on darwin [16:11] alecu, right - but only two of them [16:11] alecu: unix domain sockets? [16:12] on windows that's TCP sockets with pb [16:12] mmcc: we had two at that moment in time :-) [16:12] alecu , rye: unix domain sockets on darwin, yes. tcp on windows [16:12] mmcc: I mean, we had to start two [16:12] rye: yes, and that will stay that way [16:12] both with twisted pb [16:12] hm [16:12] wrong statement. should be "ah" [16:12] oh, right. We use UDSs on darwin. And we hold UDSs for ubuntu. [16:13] Things are not getting clearer at all.... [16:13] * ralsina slaps alecu with the clarification fish [16:14] * alecu shudders [16:17] ralsina: i just want to interface with it without bringing the whole python runtime... [16:17] * rye does not know what runtime to bring though [16:18] rye: PB is going to hurt you there [16:20] zeroMQ FTW, even though i have no idea why it is FTW but it ia statement i can say in any circumstance and it will non-zero impact [16:21] hahaha [16:21] there are missing words in the sentence [16:22] Lunch time, it seems [16:22] ok, i need to get lunch and have an appointment after. be back in a while (~1.7h) [16:24] hm, auto generated ubuntu_sso.constants is only useful on linux [16:24] when packaged in darwin, it contains paths to my temp staging directory [16:45] btw, still not sure what happened with tarmac on this merge: https://code.launchpad.net/~mikemc/ubuntuone-control-panel/fix-1018614-darwin-raise/+merge/112493 -- maybe when dobey gets back? === gatox_lunch is now known as gatox === salgado-lunch is now known as salgado [17:15] mmcc: looking... [17:17] mmcc: that error about unicode encoding in string declaration is about having the magical encoding comment in strings passed to eval [17:18] mmcc: could be a problem with new pylint or something, don't know [17:19] mmcc: OTOH, the X initialization errors could mean tarmac is broken [17:20] yeah, I'm wondering if everything's a 'warning', what made the overall thing a 'failure' [17:28] ok, lunch time here. [17:29] ralsina: any ideas on how to help a 11.10 user who is showing this in the syncdaemon log: ubuntuone.SyncDaemon.StorageClient - INFO - Connection lost, reason: [Failure instance: Traceback (failure with no frames): : [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] [17:29] * czajkowski hugs joshuahoover [17:30] ralsina: i can try to recommend the symlink trick, wasn't sure if we knew of anything else [17:32] not for 11.10 [18:14] mmcc: ./ubuntuone/controlpanel/gui/qt/gui.py:130:24: W291 trailing whitespace === zyga is now known as zyga-afk [18:46] ralsina, dobey, alecu, do you know a good Python GTK *3* reference? [18:46] facundobatista: I suspect with GI being the binding of choice there isn't one [18:47] there isn't a good GI binding reference, no [18:52] ralsina, dobey, ok, thanks [18:55] dobey, thanks - I've fixed that already, wasn't sure if the other stuff needs to be fixed somehow too [18:55] hello [18:56] i am new to ubuntu-one and i have a question about the api [18:56] mmcc: that's the only issue i see. the stuff after that is normal stderr randomness for those tests i think [18:57] i want to upload a file in ubuntu-one and pupice it atonce, and then get back the link where it is publiced [18:58] dobey, ah ok. so can I change the status or do pep8 fixes require re-review? [18:58] how do i do that in python [18:58] ? [18:58] i understand the upload part, but how to puplice it and get the link back at once [19:00] mmcc: just change it back to approved if you've fixed that [19:00] aquarius, viesturs's question is for you, I reckon [19:01] people..... eod for me..... see you on tuesdday [19:01] viesturs: the file has to be on the server and uploaded, before it can be published, i think [19:01] viesturs, heya! are you on Ubuntu? [19:01] * gatox is about to kill someone! [19:01] bye gatox [19:01] gatox: zombies? [19:01] yes on ubuntu [19:01] viesturs, you'll need to wait until the file is uploaded before publishing it; is that OK? [19:01] dobey, no..... people from an airline [19:01] there is a tutorial how to upload it is not so complicated, but i don't get how to publish [19:02] ofcourse [19:02] viesturs, if so, then the way to do this is to use SyncDaemonTool to publish a file and get back its public URL. I'll throw together an example for you :) [19:02] is there a way i can get the upload progress? [19:02] thankyou [19:03] i use python [19:03] viesturs, you can get notified when the file is uploaded. You can't be told (very easily) that it is 62% uploaded, though -- that's doable, if you want to do a reasonable amount of work, but do you want "it is 60% uploaded", or just to be told when it's finished uploading? [19:04] aquarius, the idea is to display the upload progress on launcher icon like the ubuntu one app [19:05] is it complicated? [19:05] viesturs, ok, give me a few minutes to put an example together :) [19:05] aquarius, thank you :) [19:09] ralsina: well, u1db packages are 99.99% there [19:13] dobey: awesome [19:13] dobey: anything that needs fixing? [19:13] aquarius, one more question: when i upload the file to ubuntu one, can i upload it in a spasific folder, or create that folder if it isn't here? [19:15] youcan [19:15] can you include it in example? [19:15] if you create a folder inside an existing synced folder, it'll be synced [19:15] ou [19:15] if you want to create a whole new synced folder, you can do that too [19:15] logic :D [19:16] no only inside [19:16] ralsina: yes, but i'm not sure what exactly. it's giving a weird error [19:17] ralsina: http://pastebin.ubuntu.com/1076960/ [19:18] dobey: looking [19:20] dobey: add setuptools as a dependency, maybe [19:20] so it doesn't go to distutils [19:20] viesturs, http://paste.ubuntu.com/1076964/ is a simple example. It's based on http://kryogenix.org/days/2012/04/18/publishing-a-folder-with-ubuntu-one. You will find "pydoc ubuntuone.platform.tools.SyncDaemonTool" useful [19:20] viesturs, and that will soon be on one.ubuntu.com/developer as well, but it isn't yet. [19:21] ah, of course [19:23] thank you aquarius [19:23] you are wery helpful :) [19:24] this is a good example of the sort of thing that I want the developer site documentation to include :) [19:25] yes it definetly should :) [19:26] aquarius: I fully intend to bring to the next full team sprint a bottle of nicotine, a smoke machine and a red light. Just warning you. [19:27] * aquarius laughs [19:27] * ralsina knows that an open bottle of nicotine would kill every person in a closed room in minutes [19:27] you want the flavourings too, otherwise it'd be horrid [19:27] and a bottle of marraschino cherries [19:27] and a blender [19:27] an open bottle of nicotine would kill every person in the *country*. the stuff's really lunaticly toxic when neat :) [19:39] aquarius, i got an error [19:39] when i executed your example [19:39] python exapmle.py [19:41] line 26, in create_a_file_upload_and_publish [19:41] os.rename(temp_file_name, u1_file_name) [19:41] exceptions.OSError: [Errno 18] Invalid cross-device link [19:41] maybet i am doing something wrong? [19:42] and when i do ./exapmle.py i get [19:42] ./example.py: line 6: syntax error near unexpected token `from' [19:42] ./example.py: line 6: ` from dbus.mainloop.glib import DBusGMainLoop' [19:45] viesturs, ah, the thing creates a temp file and then moves it into ~/Ubuntu One [19:45] you don't have to do it that way [19:45] but I don't know where you're getting the file to upload *from* :) [19:46] also, put "#!/usr/bin/env python" (without quotes) as the first line :) [19:47] eww [19:47] #!/usr/bin/python [19:47] or what dobey said [19:47] I've never quite followed why the env idea is bad :) [19:47] it breaks virtualenv, and installing with specific python versions [19:48] dobey: OTOH, the alternative breaks buildout, but sure, virtualenv is more important [19:48] well, it exposes bugs in buildout which we have to work around :) [19:48] sorry but I don't get that file creation [19:48] viesturs: rename doesn't work if you are renaming from one disk or partition to another [19:50] ou [19:50] i have my root in one partition and /home in another, is that the case? [19:51] if so, than what can i doo to fix this? [19:54] viesturs, you don't have to do the rename at all [19:54] viesturs, I just did that as an example of a file [19:54] viesturs, you want to upload a file to U1, and then publish it once it's uploaded, yes? [19:54] yes [19:54] and then get the ling [19:54] link [19:54] so just save that file from your program straight into ~/Ubuntu One or something [19:55] ralsina: any idea about this: failed to import Cython: /usr/lib/python2.7/dist-packages/Cython/Compiler/Code.so: undefined symbol: Py_InitModule4 [19:55] dobey: nope [19:56] dobey: let me google a bit [19:56] i figured as much, but how do i get the link then? [19:57] dobey: references I see to that error talk about using binary modules with the wrong python version, maybe a bad cython package? [19:57] i guess i don't understand that code very well, aquarius [19:57] i am still new to python [19:58] viesturs, OK. the first bit, where it creates a tempfile and then os.rename()s the tempfile into your Ubuntu One folder, is not code that you need to use [19:58] dobey: and/or it's not loadingthe python runtime library [19:58] the part *after* that is where you start to pay attention. [19:58] ralsina: weird [19:58] dobey: yes [19:58] viesturs, the bit at the beginning of the function was just an example -- you'd replace that with your code that creates or saves the file [20:00] i'll try it on precise, in case quantal is broken [20:00] OK [20:04] nope, fails on precise too :( [20:05] oh, duh [20:05] need cython-dbg too i bet [20:05] dobey: I am not sure I have attempted the dbg target lately [20:08] yup, cython-dbg fixed that [20:12] cool [20:31] "When complete: a moment ago (estimated)" [20:31] ♥ launchpad [20:46] ok, gotta run. will work a bit later after i get back [20:52] man, what good is an IRC client with no working backlog search? [20:54] ralsina, you still around? I see dobey just left, and alecu already emailed his adios, so my timing is impeccable [20:54] mmcc: I'm still around, thou [20:54] RFC: a multiproject exe-finder for dirspec: http://paste.ubuntu.com/1077115/ [20:55] alecu ok cool, if you have a minute, take a look at that. only 58 lines of text about our exe finding issues [20:55] I wanted to get some design feedback before reimplementing this stuff a third or fourth time [21:00] mmcc: up to line 50, it sounds reasonable. [21:00] mmcc: I'm not sure about passing in DARWIN_APP_NAMES['ubuntu-sso-login'] [21:00] mmcc: where would that dict live? I mean, DARWIN_APP_NAMES [21:01] mmcc: I'm trying to thing what would be the proper module for that dict. [21:01] alecu, I agree it's a bit messy. let's hash it out. I wasn't clear but I was thinking that dict would be per project [21:01] mmcc: and to work around dependency issues, too. [21:01] e.g., SSO client has its own APP_NAMES, since no one else needs to know that mapping [21:02] and the dict(ubuntuone-syncdaemon = "name for sd") lives in ubuntuone-client somewhere [21:02] so neither SSO nor dirspec needs to know that mapping [21:02] it's nice and modular but it makes calling it a little verbose [21:03] does that make sense? [21:04] mmcc: not sure I understood, I think I don't have it so clear in my head. [21:05] mmcc: what if we just pass in the module name to get_cmdline? and then in each module we define say __u1_executable__ and __darwin_app_name__ [21:05] sorry, not the module name, but just pass the module [21:05] well, some modules have multiple executables - sso has ~four [21:06] oh, right. [21:06] s/module/project/ [21:06] but that idea would work for the app name dict [21:06] pass in the module, and get_cmdline can get the app name dict from the module itself [21:13] mmcc: so, let me know if you need any more brainstorming... I'll be around for 20 more minutes. [21:13] mmcc: I think it's great we get to clean up those parts of the code. Thanks for working on it! :-) [21:18] alecu, glad to do it. just wish I'd started off this way instead of doing a smaller fix first [21:18] alecu so, if this sounds reasonable: - a function get_cmdline in dirspec that does the right thing given an exe name and a module, I'll just run with that [21:18] mmcc: we need to do some cleanup, yes. But we can't clean up *eeeeverything* :-) [21:19] mmcc: it sound perfect. [21:20] alecu one quirk this will have, is when we call get_cmdline for syncdaemon, we will probably want to give ubuntuone.platform as the module, since that seems like a more reasonable place to put the darwin app name dictionary, as opposed to somewhere in ubuntuone.syncdaemon. what do you think? === salgado is now known as salgado-afk [21:24] mmcc: putting it in platform means that each platform would get its own dict [21:24] mmcc: we should be putting in platform only stuff that makes sense for a given platform, right? [21:26] alecu, hmm. so this dict only makes sense on darwin… I envisioned it being defined in platform/constants.py, but only for darwin... === zyga_ is now known as zyga [21:29] same for wherever it ends up in ubuntu_sso, only define it for darwin. [21:30] I just looked at everywhere we use os_helper.set_application_name, to see if there was already a name mapping I could use for this, but it's only used to set ubuntuone-syncdaemon's name to 'ubuntuone-syncdaemon' [21:33] mmcc: can you e-mail that rfc if you haven't? [21:34] dobey, sure. I'll email an updated version in a sec [21:35] thanks [21:38] dobey: sent [21:40] mmcc: cool. i'll read over it and try to reply sometime. but need to head off for the evening now. later :) [21:40] ok, thanks - have a good one. [22:27] alright, heading out. see some of you tomorrow.