Re: [firedrake] pytest error in parallel
Hi Lawrence, I added a path to the nonlinear slice code in my PYTHONPATH and passed all the tests! I still have 1 pytest-warnings. Should I care about it? All the best, Hiroe On 6 April 2016 at 09:52, Mitchell, Lawrence <lawrence.mitchell@imperial.ac.uk> wrote:
Dear Hiroe,
On 05/04/16 17:03, Hiroe Yamazaki wrote:
Dear All,
I re-installed firedrake with the install script. After it has been installed, I get the following error when I do a parrallel test with pytest.
E CalledProcessError: Command 'mpiexec -n 2 /home/hyamazak/firedrake/bin/python -c "import test_nonlinear_gw_nh_novort; test_nonlinear_gw_nh_novort.test_total_energy_parallel()"' returned non-zero exit status 1
How can I fix it? The full error message is found here:
https://gist.github.com/anonymous/b87288483d6b1d22543e267c9142c315
It looks like the problem is to do with the spawned subprocess not finding your nonlinear slice code. Is this package available in your PYTHONPATH, or do you somehow rely on running the tests from a particular directory?
Cheers,
Lawrence
On 06/04/16 10:04, Hiroe Yamazaki wrote:
Hi Lawrence,
I added a path to the nonlinear slice code in my PYTHONPATH and passed all the tests!
Great. I recommend doing this as follows, making your code installable as a python package and then "pip install"ing it in your firedrake virtualenv in "editable" mode.
I still have 1 pytest-warnings. Should I care about it?
Ummm, maybe, I don't know what the warning is. Lawrence
participants (2)
- 
                
                Hiroe Yamazaki
- 
                
                Lawrence Mitchell