Comments (3)
1.0a6 is very old, I believe these are long fixed in master. If possible could you try with master? We will push a new release in a week or two and at that point I think these should be gone.
from pysph.
Dear @prabhuramachandran thank you for the feedback and sorry for the late reply.
I have update the PySPH version to 879a303 and now it seems that there is only one test that fails:
$ python3 -m pytest pysph -v
...
============================================================= FAILURES =============================================================
_____________________________________________ TestOpenMPExamples.test_ldcavity_example _____________________________________________
self = <pysph.parallel.tests.test_openmp.TestOpenMPExamples testMethod=test_ldcavity_example>
def test_ldcavity_example(self):
dt=1e-4; tf=200*dt
serial_kwargs = dict(timestep=dt, tf=tf, pfreq=500)
extra_parallel_kwargs = dict(openmp=None)
# Note that we set nprocs=1 here since we do not want
# to run this with mpirun.
self.run_example(
'cavity.py', nprocs=1, atol=1e-14,
serial_kwargs=serial_kwargs,
> extra_parallel_kwargs=extra_parallel_kwargs
)
pysph/parallel/tests/test_openmp.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pysph/parallel/tests/example_test_case.py:113: in run_example
timeout=timeout, path=MY_DIR
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
filename = 'cavity.py', args = ['--timestep=0.0001', '--tf=0.02', '--pfreq=500', '--fname=cavity', '--directory=/tmp/tmpma72sw6n']
nprocs = 1, timeout = 300, path = '/home/antonio/debian/git/pysph/pysph/parallel/tests'
def run(filename, args=None, nprocs=2, timeout=30.0, path=None):
"""Run a python script with MPI or in serial (if nprocs=1). Kill process
if it takes longer than the specified timeout.
Parameters:
-----------
filename - filename of python script to run under mpi.
args - List of arguments to pass to script.
nprocs - number of processes to run (1 => serial non-mpi run).
timeout - time in seconds to wait for the script to finish running,
else raise a RuntimeError exception.
path - the path under which the script is located
Defaults to the location of this file (__file__), not curdir.
"""
if args is None:
args = []
file_path = abspath(join(path, filename))
cmd = [sys.executable, file_path] + args
if nprocs > 1:
cmd = ['mpiexec', '-n', str(nprocs)] + cmd
print('running test:', cmd)
process = Popen(cmd, stdout=PIPE, stderr=PIPE)
timer = Timer(timeout, kill_process, [process])
timer.start()
out, err = process.communicate()
timer.cancel()
retcode = process.returncode
if retcode:
msg = 'test ' + filename + ' failed with returncode ' + str(retcode)
print(out.decode('utf-8'))
print(err.decode('utf-8'))
print('#'*80)
print(msg)
print('#'*80)
> raise RuntimeError(msg)
E RuntimeError: test cavity.py failed with returncode 1
pysph/tools/run_parallel_script.py:54: RuntimeError
------------------------------------------------------- Captured stdout call -------------------------------------------------------
running test: ['/usr/bin/python3', '/home/antonio/debian/git/pysph/pysph/parallel/tests/cavity.py', '--timestep=0.0001', '--tf=0.02', '--pfreq=500', '--fname=cavity', '--directory=/tmp/tmpma72sw6n']
Traceback (most recent call last):
File "/home/antonio/debian/git/pysph/pysph/parallel/tests/cavity.py", line 3, in <module>
from pysph.examples.cavity import LidDrivenCavity
ModuleNotFoundError: No module named 'pysph'
################################################################################
test cavity.py failed with returncode 1
################################################################################
It seems to be something not too critical.
I still haven't had the chance to to test other platforms (including i386) on which tests was failing with previous version [1].
[1] https://buildd.debian.org/status/package.php?p=pysph
from pysph.
After recent updates on dependencies all seems to work in Debian Sid on amd64 platforms.
Closing.
from pysph.
Related Issues (20)
- 26 errors when testing PySPH by <pysph test> HOT 4
- No traitsui.toolkits plugin could be loaded for qt4 HOT 9
- numpy problem np.load: ValueError: Object arrays cannot be loaded when allow_pickle=False HOT 2
- I get "OSError: [WinError 6] The handle is invalid" when trying to run pysph examples HOT 6
- Error trying to view pysph examples (windows 10, anaconda, python 3.7.4) HOT 5
- Question: Inlet / Outlet with multiple fluids HOT 2
- Facing error while running dam_break_3d HOT 1
- For 3D_DAM BREAK I was not able to get .npz file HOT 1
- Intermittent error in pysph.parallel.tests.test_parallel.MPIReduceArrayTestCase.test_parallel_reduce HOT 5
- ValueError when running elliptical_drop example HOT 1
- Wondering if this can be implemented to work with or in blender HOT 1
- Issue with using pysph view HOT 2
- Process on GPU killed after long run and/or restart HOT 5
- cull_factor is not initialized in code HOT 1
- Possible bug in TransportVelocityStep HOT 2
- cannot run gas dynamic example in GPU
- Some confusion about using pysph HOT 1
- : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
- ERROR: Failed building wheel for PySph HOT 5
- how to use TVF wall boundary for solid HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysph.