GithubHelp home page GithubHelp logo

Python Version? about pysph HOT 15 CLOSED

pypr avatar pypr commented on July 28, 2024
Python Version?

from pysph.

Comments (15)

Kekushke avatar Kekushke commented on July 28, 2024

Sample output. Python 3.7.3 with PySPH Release 1.0a6
========================== short test summary info ============================ FAILED base/tests/test_octree.py::TestOctreeFor1DDataset::test_levels_in_tree FAILED base/tests/test_octree.py::TestOctreeFor1DDataset::test_parent_for_node FAILED base/tests/test_octree.py::TestOctreeFor1DDataset::test_plot_root - Ty... FAILED base/tests/test_octree.py::TestOctreeFor1DDataset::test_sum_of_indices_lengths_equals_total_number_of_particles FAILED base/tests/test_octree.py::TestCompressedOctreeFor1DDataset::test_levels_in_tree FAILED base/tests/test_octree.py::TestCompressedOctreeFor1DDataset::test_parent_for_node FAILED base/tests/test_octree.py::TestCompressedOctreeFor1DDataset::test_plot_root FAILED base/tests/test_octree.py::TestCompressedOctreeFor1DDataset::test_sum_of_indices_lengths_equals_total_number_of_particles FAILED parallel/tests/test_parallel.py::DumpLoadTestCase::test_dump_and_load_work_in_parallel FAILED solver/tests/test_solver_utils.py::TestOutputNumpy::test_dump_and_load_with_constants FAILED solver/tests/test_solver_utils.py::TestOutputNumpy::test_dump_and_load_with_partial_data_dump FAILED solver/tests/test_solver_utils.py::TestOutputNumpy::test_dump_and_load_works_by_default FAILED solver/tests/test_solver_utils.py::TestOutputNumpy::test_dump_and_load_works_with_compress FAILED solver/tests/test_solver_utils.py::TestOutputNumpy::test_that_output_array_information_is_saved FAILED solver/tests/test_solver_utils.py::TestOutputNumpyV1::test_load_works_with_dump_version1 FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_be_able_to_update_particle_arrays FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_correctly_update_domain FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_on_2d_data FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_when_arrays_have_different_props FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_with_changed_data FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_with_explicit_points_in_constructor FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_with_explicit_points_without_z FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_with_ghost_particles FAILED tools/tests/test_interpolator.py::TestInterpolator::test_should_work_with_multiple_arrays FAILED tools/tests/test_interpolator.py::TestInterpolator::test_that_set_interpolation_points_works FAILED tools/tests/test_sph_evaluator.py::TestSPHEvaluator::test_evaluation FAILED tools/tests/test_sph_evaluator.py::TestSPHEvaluator::test_evaluation_with_domain_manager FAILED tools/tests/test_sph_evaluator.py::TestSPHEvaluator::test_updating_particle_arrays = 28 failed, 681 passed, 267 skipped, 58 deselected, 110 warnings

from pysph.

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

@Kekushke -- we build constantly on windows and Linux (and I personally use a Mac) so the requirements certainly work. Can you please let me know what platform, what python distribution you have used and the exact steps you followed? As regards Python versions, we test on 3.8 and 3.7 and it works on 3.6 as well.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Here is the environment and procedure :
Platform: Ubuntu 18.04
Python: 3.7.3
GCC: 8.3.0
Steps:
STEP1 : APT Installs build-essential python-dev libomp-dev openmpi-bin libopenmpi-dev libtrilinos-zoltan-dev python-pip python3 python3-venv
STEP2: Create python3 venv for using pip3, and activate the venv
STEP4: Download PySPH: 1.0a6.tar.gz
STEP5: Uncompressed and run pip3 --no-cache-dir requirements.txt and also for requirements-test.txt, and mpi4py.
STEP6: export ZOLTAN variables to use apt installed libraries
STEP7: make clean, make cleanall, python setup.py build and python setup.py install
STEP8: pysph -v test
Many tests fail.
Please note no special pip3 steps for pyzoltan as in the instructions at readthedocs.io. What is the right way to install pyzoltan for this version?
Anything I am missing? Suggestions for which pysph version to use? I think some requirements are not probably set to be == that could be the problem. Anything to do with gcc version?

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Looks like pyzoltan is built without inclusion by pip3 install pyzoltan as per the build log. If pip3 install pyzoltan is executed before build and install, ALL tests fail.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

After super clean install, still exact same error log as in posted in the 2nd message in the thread above:
28 failed, 681 passed, 267 skipped, 58 deselected, 85 warnings

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Some more information:
13 errors are TypeError
8 errors are UnicodeDecodeError
6 errors are ValueError

from pysph.

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

Please use master and not the pip version i.e. STEP4: Download PySPH: 1.0a6.tar.gz. The pip version will almost certainly be broken. Do the following, git clone the pysph repo, then run pip -r requirements.txt, since you need pyzoltan, pip install pyzoltan then python setup.py install or python setup.py develop.

There were a lot of bugs fixed due to changes with numpy upstream that are fixed in master. If things are still broken, can you send me at least one of the 28 test errors.

In any case this issue tells me that we absolutely have to push a release so things are easier to install -- even if we think there is a lot more to fix and do.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Many thanks to you. I will try this.

from pysph.

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

Thanks, do let us know if master is broken, our CI tests all use master as do me and others using pysph.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Update: I managed to get a very old version to work for my work. It was struggle. I think for each release here on GitHub, it will be useful to have author provided requirements.txt and should separately also include dump of pip3 freeze; version of python, version of gcc, cython etc. This will allow to replicate any release made in the past. Currently, it is difficult to go back or forward due to too many varying conditions of dependencies. Great work here, but if it is made even more easy to install, it will be very useful. Many thanks again.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Update: Hi! Used MASTER using your notes. Got through, but got 6 XFAIL errors in pysph/base/tests/test_nnps.py::ExtendedZOrderNNPSSubdividedAsymTestCase::test_neighbors_* tests.
Again thanks. :-)

from pysph.

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

@Kekushke -- this is a good idea, to include explicit requirements for a release. The xfail means expected failures, so I think those can be safely ignored. Those are experimental NNPS algorithms that are almost never used except if you are doing research in NNPS. So I think you should be good at this point. We are working towards a release though so hopefully this weekend or so that should happen.

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

Many thanks for your note. I will continue to test MASTER. I will definitely try new release when out. In new release it will be good to include not only requirements.txt but also separate dump of pip3 freeze, version number of gcc, version number of zoltan, version number of pyzoltan and all other dependencies etc. to recreate an old snapshot when needed. Again thanks :-)

from pysph.

prabhuramachandran avatar prabhuramachandran commented on July 28, 2024

This is now fixed for the latest 1.0b1 release: https://github.com/pypr/pysph/releases/tag/1.0b1

from pysph.

Kekushke avatar Kekushke commented on July 28, 2024

from pysph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.