/srv/irclogs.ubuntu.com/2014/07/01/#ubuntu-autopilot.txt

veebersthomi: when you have a moment would you mind casting your eyes over this quickly? https://code.launchpad.net/~veebers/autopilot/logging-binary-attachments-1336109/+merge/22509800:29
=== alexabreu is now known as alex-abreu|off
=== vrruiz_ is now known as rvr
thomibarry: did you get my email?19:33
barrythomi: i did, responding now19:58
thomibarry: awesome - wasn't sure what address to use.19:58
barrythomi: they all end up in the same place :)19:59
thomiahhh ok19:59
barrythomi: they just take different paths to get here19:59
thomiI was looking for a non-work address, but I guess at least this way you can filter based on the target address :)19:59
thomianyway, sorry about the schedule switch-aroo19:59
barrythomi: no worries.  you can always use my at python dot org address too19:59
thomibarry @ ?20:00
barrythomi: yeppers20:00
thomiwill try and remember that for next time :)20:00
* barry has *a lot* of email addresses :)20:00
thomibarry: got a second?21:22
barrythomi: sure21:26
thomibarry: so I'm having some odd problems with virtualenvs, python 34, and testing...21:27
thomiin my setup.py, I do 'tests_require=[dep_a, dep_b]21:27
thomiI create a virtualenv with 'virtualenv -p python3 ve' . ve/bin/activate21:28
thomithen try and run the tests with: python setup.py test21:28
thomiI see it downloading all my test dependencies, but then the tests fail to run. Digging a little deeper, they fail to run because they cannot import the test dependencies!21:28
thomibut I can see them being downloaded, and they all create *.egg files in .21:28
thomiam I missing something? I thought 'python setup.py test' was 'just supposed to work'21:29
barrythomi: yeah, it should work21:29
barryare you sure it's not failing on some other explicit dependency that's not defined in tests_require?21:30
thomihmmm21:30
barryoh, one thing you can do, fire up your venv's python and try to import those deps at the >>> prompt21:30
barrysometimes, there are cascading errors that end up looking like ImportError but really are caused by something else21:30
thomiyeah I get ImportErrors there as well21:31
barrythen, try to import the test modules21:31
thomiit looks like they're not being installed to the virtualenv correctly21:31
barrythomi: so what if you manually pip install them into the venv?21:31
thomithen it seems to re-download and install them21:31
thomiyeah, it's doing all that work all over again :(21:31
barrythomi: are you on utopic?21:32
thomibarry: no, trusty21:32
barrythomi: well, at least i know that my virtualenv wheel stuff isn't affecting you :)21:32
barrybut you can't run pyvenv-3.4 either21:33
barry(just to see if there's something weird with the venvs)21:33
thomiif I manually 'pip install ...' all the deps then 'python setup.py test' works21:33
barrythomi: do you have a branch?  i could try it on utopic21:34
thomisure, let me upload21:34
thomibarry: lp:~canonical-ci-engineering/uci-engine/nfss21:35
thomibarry: change to the nf-stats-service directory21:35
barrythomi: trying.  btw, i'm still working on that stack of packages.  it's a dark and twisty maze21:36
thomiwell... if you feel like that, I'm glad I'm not attempting to do it :)21:36
barryit's insane.  dozens of uploads to debian.  syncs to ubuntu.  plus ubuntu-only packages that block -proposed promotions.  jeebus.21:38
barryoh thomi you will love this:21:38
barry----------------------------------------------------------------------21:38
barryRan 5 tests in 0.001s21:38
barry 21:38
thomi:(21:38
thomithat makes me sad!21:38
thomiwhy doesn't it work here?21:38
barrythomi: nfc.  let me see if i have a trusty system laying around21:39
* barry fires up his trusty vm21:41
barrythomi: well, on my trusty vm, it seems like the psycopg dep isn't too happy21:56
thomioh?21:56
thomiyou need to install libpq-dev or something21:56
* barry tries21:56
thomiyeah - libpq-dev21:56
barryhmmm21:58
barry./psycopg/psycopg.h:31:22: fatal error: libpq-fe.h: No such file or directory21:58
barry #include <libpq-fe.h>21:58
barry                      ^21:58
barrycompilation terminated.21:58
thomihmm21:58
barry 21:58
thomiI get this: http://pastebin.ubuntu.com/7733589/21:59
barryyeah, it seems really unhappy about that header file, even though it's there in /usr/include/postgresql!22:00
barryoh, maybe that's not on -I22:00
barrywhy would that be the case on 14.10 but not 14.0422:01
barryi will try to install the pacakge and use --system-site-packages22:01
thomibarry: it's odd, on my system I don't get that message, it just seems to... stop...22:02
barrywell, even --system-site-packages isn't very happy22:03
barryso i can't get even as far as you've gotten :(22:03
thomibarry: ahh well, don't worry about it22:05
thomibarry: I can work around this for now, it's not such a big deal22:06
thomiI was hoping you'd say "oh yeah, you need to do X"22:06
barrythomi: yeah, sorry, i tried :)22:06
thomithanks for your help :)22:06
barry"help" :)22:06
thomisure, at least now I know that I was doing the right thing22:07
thomiand that the problem is elsewhere22:07
barryyep22:07
josharensonHi, I assume autopilot works on desktop? My very simple tests fails/crashes because it cannot find "MainView"23:19
balloonsjosharenson, what do you mean?23:19
josharensonballoons, I have a click app that I created in Ubuntu-sdk. There is a file called "run" in app/tests/autopilot (presumably auto-gened by the SDK)23:21
josharensonballoons, when I run "run", it starts my app, and the test errors out almost instantly with the following error23:22
josharensonStateNotFoundError: Object not found with name 'MainView'.23:22
josharensonMy application definitely has a MainView object23:22
balloonsjosharenson, sorry I'm literally walking out the door atm... I'll respond when I return if no one else does23:22
josharensonha ok23:23
josharensonthanks23:23
balloonsjosharenson, look at the core apps for examples that work23:23
balloonsthat should help23:23
balloonslp:ubuntu-clock-app for instance23:23

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