[TIP] virtualenv 1.11 causes tox to fail while installing dependencies on Windows 7

holger krekel holger at merlinux.eu
Tue Jan 14 02:20:07 PST 2014


Hi Marius,

On Tue, Jan 14, 2014 at 10:03 +0200, Marius Gedminas wrote:
> I think I've got the same problem.
> 
> Summary: Jenkins slave on Windows.  Tox fails to install trivial
> dependencies, doesn't give a reason.
> 
> On Mon, Jan 13, 2014 at 06:51:41AM +0000, holger krekel wrote:
> > On Sun, Jan 12, 2014 at 23:04 +0000, Chris Withers wrote:
> > > One thing to note: virtualenv 1.11 was released on 2014-01-02 and
> > > appears to tie in nicely with when all of my problems started.
> > 
> > The log seems to be incomplete and it is hard to read because of the
> > line wrappings.  Please send me the contents of ``tox.ini`` and
> > the full output log (from redirecting output) both as attachments.
> 
> Here's the console output of 'tox -e py27 -vv':
> https://jenkins.gedmin.as/job/restview-on-windows/14/console
> 
> Here's the tox log directory:
> https://jenkins.gedmin.as/job/restview-on-windows/ws/.tox/py27/log/
> (it only has a log of a successful virtualenv creation, it doesn't say
> why it failed to install mock)

I am irritated why it doesn't display the executed command.
Maybe a single "-v" will show it?

> I've a gut feeling that this is not tox's fault per se, but the unclear
> error reporting is something that tox should improve.

Yes.  There seem to be new virtualenv/pip changes that cause this.
Maybe tox should fixate its virtualenv instead of using a >= dependencies
given the history of virtualenv/pip upgrade related issues.

> BTW here's a curious fact: if I launch a command prompt manually and
> run 'tox' in that directory, tox works! [*]  It fails only when I run it
> from Jenkins. [+]
> 
>   [*] as in "runs tests", which fail, because Windows, but also tox
>   emits some interesting complaints I don't quite understand --
>     WARNING:test command found but not installed in testenv
>     cmd: c:\python27\scripts\pip-script.py
>     env: c:\buildslave\workspace\restview-on-windows\.tox\py27
>     Maybe forgot to specify a dependency?
> 
>   [+] I think the difference might be that my ~/.bashrc adds
>   c:/python27/scripts to $PATH, so when I run tox in Git Bash
> 
> > Also you might try a new candidate:
> > 
> >     pip install -i https://devpi.net/hpk/dev/ "tox>=1.7.0.dev1"
> 
> "Could not find any downloads that satisfy" blah blah.  Probably pip 1.5
> really really doesn't like installing stuff from not-PyPI, and I just
> need to specify some magic option.

No, it was devpi-server that fails with pip-1.5.  I just fixed that
and so the above tox-installation line should work now (it does for me).
If you could repeat the run with tox-1.7.0.dev1 and "-v" that might help.

best,
holger

> 
> Marius Gedminas
> -- 
> "Nobody will ever need more than 640k RAM!"
>                                 -- Bill Gates, 1981
> "Windows 95 needs at least 8 MB RAM."
>                                 -- Bill Gates, 1996
> "Nobody will ever need Windows 95."
>                                 -- logical conclusion



> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python




More information about the testing-in-python mailing list