/srv/irclogs.ubuntu.com/2011/01/04/#bzr.txt

=== glyph_ is now known as glyph
* spiv winds up for the day07:02
pooliehi there vila?09:49
vilapoolie: Hey !09:49
pooliehappy new year09:50
vilahehe09:50
vilaHappy new year to all bzrastas (-ristas ?) :)09:51
jelmerhi vila, poolie10:02
jelmerhappy new year :-)10:02
pooliehi jelmer, happy new yera10:02
vilaheya jelmer !10:02
vilajelmer: happy new year ! And a bzr-ish one for that matter ;D10:02
jelmerthanks!10:10
pooliejelmer, oh, i guess you're now officially on the bzr team? or from monday?10:35
jelmerpoolie: from Monday as far as I know10:40
pooliek10:40
pooliesee you then10:40
poolieok i should really go10:41
pooliegood night10:41
jelmerpoolie: yep, see you in Dallas :-)10:42
jelmerg'night10:42
=== frakturfreak_ is now known as frakturfreak
=== oubiwann is now known as oubiwann_
=== oubiwann_ is now known as oubiwann
hsnhow many memory bzr needs? entire repo in memory?13:36
hsni have 1G repo and bzr needs 1.3GB RAM13:36
hsn70k revisions13:36
=== smoser` is now known as smoser
voidspacewhen will the RandomPool_DeprecationWarning be fixed in a released version of bzr?15:22
voidspacecan't you do an emergency release that silences the warning?15:23
voidspace:-)15:23
vilavoidspace: afaik, it's silenced in stable releases, what os/bzr versions are you using ?15:26
voidspaceMac OS X15:26
voidspacebzr 2.3b4 installed with pip15:26
voidspacePython 2.615:27
* maxb points to the beta nature of that release15:27
vilaright, so neither a stable version nor an installer where we carry the relevant fix :)15:27
voidspacemaxb: and beta means using deprecated pycrypto code is ok15:27
voidspacevila: what version is the fix in?15:27
voidspaceI upgrade using "pip install -U bzr"15:27
maxbs/fix/suppression of warnings when running a production release/15:27
vilavoidspace: so to answer your initial question: we do release installers for stable bzr without this warning15:28
voidspacevila: what version is the fix in?15:28
maxbThere is no fix15:28
voidspaceI will install that specific version with pip15:28
maxbThere is a suppression of warnings when running a production release15:28
vilavoidspace: the problem is not in bzr, it's in pycrypto iirc that is used by paramiko15:28
voidspacewhat version should I use to not get the deprecation warning15:28
vilanone have been released15:28
maxbAny actual (non-beta) release15:28
vilahmm15:29
voidspacehah...15:29
jelmervoidspace: we submitted a fix for paramiko but it hasn't been merged yet15:29
voidspaceyou could silence the warning from within bzr in the meantime15:29
voidspaceusing the warnings module15:29
vilajelmer: I think we aren't talking about the same issue and maxb is right ;)15:29
vilavoidspace: really ? care to submit a patch ?15:29
maxbvoidspace: We could and do, in *released* versions of bzr. But not in development versions.15:29
vilavoidspace: make sure we don't already do that for *released* versions though15:30
jelmervila: https://github.com/robey/paramiko/pull/815:30
jelmeris that a different one?15:30
vilajelmer: oh no, you're damn right, I was thinking about *another* one you proposed upstream15:32
voidspaceok, so I downgraded to 2.2.2 and don't see the warning - thanks very much15:32
voidspaceyou still interested in a patch to silence the warning for the development version, or not needed?15:32
vilavoidspace: no, I was joking :) We want the warning while running dev and beta versions15:33
vilavoidspace: but what is pip ?15:34
voidspacepip is pretty much the standard Python package installation tool within the Python community15:34
maxbWhy did pip install 2.3b4 when our PyPI record says 2.2.2?15:34
voidspaceit installs packages from PyPI15:34
voidspaceand "pip install -U package" gets you the latest released version of any package15:34
* vila bangs head15:35
vilawhy did it pick 2.3b4 dang it !15:35
voidspaceI'm just checking what happens if I install bzr into a virtualenv with pip15:35
voidspaceseeing what version it gets15:35
voidspaceif I go to the PyPI page I see 2.2.2 as the latest version15:36
vilaha, we had ronny running into troubles with virtualenv last time,15:36
voidspacebut you don't have a package for download on PyPI itself - so it maybe scraping download pages to find the latest version15:36
vilawhich prompted me to update the pypi page in a way that I thought address his problems15:37
voidspaceright - so if I create a virtualenv and then just do a straight "pip install bzr" it gets 2.3b415:37
vilabummer15:37
voidspacehosting python packages on pypi may be the best way to solve it15:37
voidspacepython setup.py sdist upload15:37
voidspacemaybe...15:37
vilaI did try that iirc but there was some trouble with generated C files (we require pyrex but don't support all versions)15:38
voidspaceah, right15:38
voidspaceouch15:38
voidspaceit maybe worth complaining to the pip guys15:39
vilaif you know a way to fix that... then a patch will be welcome :)15:39
voidspacethe pyrex issue? I've never worked with pyrex I'm afraid15:39
voidspacealthough using distribute / setuptools will allow you to optionally express build dependencies (including versions) in the setup.py15:40
voidspaceI believe15:40
voidspaceby optionally I mean you can make the use of distribute / setuptools optional within your setup.py15:40
vilayeah, it may well be a bug in our setup.py15:40
vilaout of curiosity, why didn't you use the osx installers ? And do you get the extensions built correctly with pip ?15:41
=== deryck is now known as deryck[lunch]
=== Ursinha is now known as Ursinha-afk
voidspacevila: sorry - had issues with my irc client15:53
voidspacevila: I use pip to manage my Python packages on OS X15:54
voidspacevila: it seems to work fine, so it never occurred to me to *look* for OS X installers15:54
vilamake sense15:54
voidspaceeasy_install *also* installs 2.3b415:54
vilavoidspace: no warnings about extensions then ?15:54
voidspacethey scrape html to find the most recent release (if packages aren't available for download from pypi): http://paste.pocoo.org/show/314715/15:55
vilaprobably the same root cause15:55
voidspacevila: it seems to compile them, I can show you the output15:55
voidspacevila: full output of pip install bzr15:56
voidspacehttp://paste.pocoo.org/show/314716/15:56
vilavoidspace: a better test would be to run 'bzr selftest', be aware it can take some time though (and may be start with 'bzr selftest --no-plugins', just in case)15:56
jelmervoidspace: btw, while you're here..15:56
voidspaceok, I'll need to install the test dependencies then15:56
voidspacejelmer: yes15:56
jelmervoidspace: I noticed "python2.7 -m unittest" works while "python2.6 -m unittest2" doesn't (it seems I need python2.6 -m unittest.__main__). Is that intentional?15:57
jelmerehm, unittest2.__main__ that is15:57
voidspacejelmer: the ability to execute a *package* with "-m" is new in 2.715:57
voidspacejelmer: so yes, you could say it is intentional15:57
voidspacejelmer: that is why there is a unit2 script15:57
jelmervoidspace: ah, previously it was only possible to execute modules ?15:58
voidspacejelmer: correct15:58
jelmervoidspace: ok, just checking. Thanks!15:58
vilavoidspace: no pyrex trying cython... wow, this should work ok and dodge the pyrex compat issue15:58
voidspacevila: running selftest without plugins, 1 failure so far - I'll provide output on completion15:58
vilavoidspace: thanks !15:59
vilavoidspace: and what osx version ?15:59
voidspacevila: 10.616:00
vilaok, cool16:00
voidspacePython 2.616:00
voidspaceI can try with alternative versions of Python too if it is useful16:00
vilayup, I saw 2.6 mentioned earlier16:00
vilavoidspace: not yet, we're ironing out the last problems in 2.7 on natty for now16:01
voidspaceok16:01
vilaso, apart from picking the "wrong" version pip output seems perfect to me16:02
voidspaceright16:02
vilaI had a patch for for the MIN/MAX warning but it get lost16:02
voidspaceusing 2.3b4 was working fine for me apart from the damn DeprecationWarning :-)16:02
vilanow, for the "wrong" version, *our* intent (as in the bzr project) is to guide people to the stable releases first16:03
voidspaceI do most of my work with bzr from inside Ubuntu though16:03
voidspacevila: yeah - understood16:03
vilabut let them try the betas at will16:03
voidspacevila: it is because pip and easy_install scrape your download pages16:03
vilathat's why the pypi page mention both links... errr wait16:03
vilathey scrape which page exactly ?16:04
voidspacevila: yeah, I wonder if your release package is "badly" named16:04
vilaon pypi ?16:04
voidspacevila: the url - yeah16:04
voidspacevila: you may be able to put a hint in the url (a # fragment) that informs pip / easy_install that is the version it should use16:05
voidspacevila: let me see if carljm in #pip has an idea about this16:05
vilavoidspace: that would be awesome !16:05
voidspacevila: ok, so the following for easy_install and *may* work for pip too16:10
voidspacevila: from: http://peak.telecommunity.com/DevCenter/setuptools#making-your-package-available-for-easyinstall16:10
voidspacevila: in pypi add #egg=bzr to the download url16:11
voidspacevila: worth a try anyway :-)16:12
vilaI've updated the pypi page with #egg=bzr, can you re-try ?16:13
voidspaceyep16:13
vilavoidspace: that is, I didn't upload a tarball, only modified the url16:13
voidspacevila: understood, that's what I was suggesting16:13
vilaok, no cache to care about for pip ?16:14
vila. o O (If it works *that* would be quite an easter egg...)16:15
voidspacevila: nah, looks like easy_install *still* scrapes the html in preference to using the download url16:16
voidspacevila: *sigh*16:16
voidspacevila: that # fragment trick is only for when your download urls don't point to a standard project-version.tgz format, which yours do already16:17
voidspacevila: so my mistake, sorry16:17
vilavoidspace: no problem, was worth a try16:17
voidspacevila: just for your info, the page that pip & easy_install are scraping and looking for "the most recent version" on is: https://launchpad.net/bzr/+download16:22
voidspacevila: not sure there is anything you can do about that16:22
voidspacenow we have pep 386 defining version schemes it should be possible for pip to switch to most recent *stable* version unless you explicitly tell it you want betas16:23
voidspacewhich would be nice16:23
voidspacebut hasn't happened yet16:23
vilahmm, interesting16:24
vilabut where did it get this page...16:24
voidspace17000 / 24000 tests run...16:24
voidspacefrom this one: http://wiki.bazaar.canonical.com/SourceDownloads#Source%20Downloads16:24
voidspacewhich it got from this one: http://wiki.bazaar.canonical.com/Download/16:25
vilashudder16:25
voidspaceand that one is the one you link to...16:25
vilayup16:25
vilabut there is a download url right in the pypi page....16:25
vilaprobably they do that to catch up with people not updating the page ?16:26
voidspacenot sure16:30
voidspacethey don't pay any special attention to the download_url at all it seems16:30
vilabah, and all of that is from 'setup.py register' so even modifying the page will be good only for small tests like we did16:32
vilabut good nough to understand, thanks for the hints voidspace16:33
=== beuno is now known as beuno-lunch
vilaenough, ha, first typo of the year :)16:33
vila4 days !16:33
voidspacethat's pretty good16:34
voidspaceI usually make several a day16:34
voidspaceheck, several an hour16:34
vilavoidspace: if the download_url is a "primary url" then pip should give it some preference or ... nah, won't fly, may not be the most recent one16:35
vilavoidspace: so, we're back to square one for your annoying warning :)16:35
vilavoidspace: knowing that we won't change our policy for betas, what is acceptable as workarounds for you ?16:36
voidspacebzr selftest output ready16:36
voidspacefrom inside a Python 2.6 virtualenv16:36
voidspacehttp://paste.pocoo.org/show/314738/16:36
vilavoidspace: the relevant code is in bzrlib/library_state.py line 7316:37
voidspacespoiler alert: FAILED (failures=10, known_failure_count=74)16:37
voidspacevila: well, I've solved my particular problem by switching back to stable16:37
voidspacevila: although given that you *intend* for betas to be *tried* by end users (is this the case?) I would expect them to be free of DeprecationWarnings16:38
voidspacevila: but solving the general case, so that "ordinary users" get the latest stable from pip / easy_install rather than the beta seems to be harder16:38
voidspacevila: but I'm sure not insolvable16:38
voidspacevila: I will ruminate 'pon the topic16:39
vilavoidspace: well, we expect them to understand they can encounter rough edges while running betas, yes16:39
voidspacevila: hmm... according to carljm pip *is* trying the download_url first but gets a 404 and then resorts to scraping16:40
voidspacevila: see http://paste.pocoo.org/show/314737/16:40
vilavoidspace: for the selftest result, only 10 failures is pretty good, knowing that I never heard about running the tests under virtualenv16:40
voidspacevila: but obviously the download url *isn't* a 40416:40
voidspacevila: hah, cool16:40
voidspacevila: so something weird is going on16:40
vilavoidspace: a 404 or a 30x (redirect) ?16:40
voidspacevila: pip seems convinced it is getting a 40416:41
voidspaceit's possible it "casts" all non-200 codes to 404, but most python web client libraries follow redirects transparently, so it shouldn't even see the redirect16:41
vilanot from here, but it's a redirect16:41
vilahmm16:42
vilacould be a launchpad bug16:42
voidspacewell - I can fetch that url from urllib2 or wget fine16:42
voidspaceso I don't think so16:42
vilathat's worth investigating, but try for yourself with a browser16:42
voidspaceI have :-)16:43
vilasorry, msgs cross on the wire :)16:43
voidspacehaha16:43
voidspacebrb16:43
vilavoidspace: well, if you can with urllib2 and pip can't...16:43
vilavoidspace: ok, you're smarter than pip, but still :)16:44
voidspaceyeah, it may just be reporting the redirect as a 404 rather than following the damn redirect16:44
voidspacewhich would be unreasonably dumb16:44
vilabut now that you mentioned it, I think ronny was having the same problem... pip not following the redirects16:46
vilaor was it easy_install, or a shared "feature" ;)16:46
voidspacevila: do you want me to run `bzr selftest` outside of a virtualenv by the way?16:50
voidspacevila: to see if any of the failures are caused by the virtualenv or are general to Mac OS X16:51
vilavoidspace: there is http://babune.ladeuil.net:24842/, so I know the status on osx for 10.5 and 10.6 so far16:53
voidspaceok16:53
voidspaceI could try it under virtualenv on ubuntu16:54
voidspacethat may just be creating work for you though... :-)16:54
vilahehe, fixing failing tests is the true path to avoid bugs :)16:56
=== deryck[lunch] is now known as deryck
vilavoidspace: re-reading the test failures, I'd say, some of them I've already seen, so probably fixed in 2.3b*5*, some others are weird (no nodename, blah blah) and may be due to virtualenv doing strange things with the network stack ?17:04
voidspacevirtualenv shouldn't affect the network stack in any way17:05
voidspacetrying on ubuntu17:05
vilavoidspace: in any case, you've already been very helpful, but if you can reproduce the same failures on Ubuntu and virtualenv, filing a bug may help us track the issue17:05
voidspaceok - selftest is now running on Ubuntu under virtualenv17:06
vilavoidspace: I haven't used virtualenv myself and won't be able to try in the coming weeks but I'll subscribe to such a bug17:06
voidspaceok17:06
voidspacefor python development virtualenv is awesome :-)17:06
vilavoidspace: python itself you mean ?17:09
* mgedmin grumbles about '/tmp/sandbox/bin/pip install bzr' finding a ./bzr directory -- where I keep my repos -- and deciding it should use that instead of looking up a 'bzr' package on pypi17:09
=== Ursinha-afk is now known as Ursinha
voidspacevila: no, I mean for developing *with* python17:10
voidspacevila: buildout is good too, but more work to use17:11
voidspacevila: but buildout recipes are more powerful17:11
voidspacevila: virtualenv allows you to create isolated (repeatable) sandboxed installs of Python and sets of dependencies17:11
voidspacevila: which you can blow away by just deleting17:11
=== Ursinha is now known as Ursinha-afk
voidspacevila: so you can work on stuff without installing system wide - and can easily install different (incompatible) sets of dependencies into different virtualenvs17:12
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
vilaoh right, well, I use virtual machines for that :) But I also need to test verious OSes so, different problem ;) But yeah, even if I don't have such need today, I see the point17:12
voidspaceright17:16
=== beuno-lunch is now known as beuno
voidspacevila: many less failures on ubuntu under virtualenv, so it looks like the other failures are OS X related17:35
voidspacevila: or specific to my system...17:36
voidspacevila: http://paste.pocoo.org/show/314762/17:36
voidspacevila: do you want me to report a bug here?17:36
vilahmm, these are totally different failures, and probably fixed too17:37
vilaif you want to report a bug, do it for the osx failures instead17:37
voidspaceok17:37
voidspaceI'll do that  - at least they are on launchpad then17:37
vilayup, we could de-dupe them if needed17:38
vilavoidspace: if there is a simple recipe to use virtualenv and reproduce the problem, you'll get bonus points ;D17:38
voidspacehaha17:38
voidspacethey'll have to be OS X instructions - running under Ubuntu doesn't reproduce the bugs17:39
voidspaceso not sure how useful they would be to you anyway...17:39
Buttons840i would like to see only what files have changed instead of a full diff?17:52
voidspacebzr st17:52
Buttons840sorry, i wasn't clear; i want to see all the files that have changed since revision 1 and i'm on revision 2217:55
Buttons840perhaps status can still be used?  i'm looking at the breif option of diff right now though17:55
Buttons840status -r1    no so difficult i guess; thanks18:04
=== Ursinha is now known as Ursinha-afk
=== daveb_ is now known as Croepha
mathrickhey, bzr-svn doesn't build in daily ppa, fails some tests21:47
mathrickthat does bad things to the deps, since stable bzr-svn hates the idea of having bzr >2.221:48
maxbInteresting. And weird.21:59
maxbMight be something as simple as the tests never having been run in a non-UTF8 locale :-/22:01
mathrickquite possible22:05
mathricknon-UTF-8 locales are an abomination unto Lord and man alike22:05
abadger1999No jam :-(23:15
* abadger1999 replies via email even though it's just for clarification now.23:15
pooliehi abadger199923:34
abadger1999poolie: Hi23:34
pooliethis is about using 2.5 or 2.6?23:36
abadger1999poolie: 2.4 actually -- I care about 2.4, 2.6, and 2.7 atm.23:37
abadger1999(RHEL5, RHEL6, and Fedora)23:38
poolierhel5 is python2.423:38
poolie?23:38
abadger1999Correct23:38
pooliefor how long do you think that will remain relevant?23:39
poolieyears more?23:39
abadger19993 years, 3 months to go until EOL :-(23:40
abadger1999relevancy is hard to guage -- RHEL6 only just came out.23:40
abadger1999It usually takes several years before a new release makes it so that we can tell people "Can't you just upgrade that server/computer lab/etc to a newer version"23:41
abadger1999and have them sheepsihly say, yeah, I need to do that.23:42
poolieright23:42
abadger1999Note: I'm not the maintainer of bzr in RHEL6 (bzr made it into RHEL6 itself!  Yay!) , I'm just maintaining it in EPEL for RHEL5  and comaintaining it in EPEL.23:47
abadger1999Err Fedora23:47
pooliegreat23:53

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