Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test installation under MS-Windows #497

Closed
gdmcbain opened this issue Oct 14, 2020 · 7 comments
Closed

test installation under MS-Windows #497

gdmcbain opened this issue Oct 14, 2020 · 7 comments
Assignees

Comments

@gdmcbain
Copy link
Contributor

There have been some infrastructural changes recently, so it was thought to be a good idea to check that installation remains as smooth as it has been under MS-Windows. I'll do this and report back.

@gdmcbain gdmcbain self-assigned this Oct 14, 2020
@gdmcbain
Copy link
Contributor Author

In an Anaconda PowerShell Prompt (Miniconda3), with conda version 4.8.5, Python version 3.8.3.final.0:

conda deactivate
conda create -n skfem-msw python
conda activate skfem-msw
pip install scikit-fem

This brings in scikit-fem 2.2.1, meshio 4.3.0, numpy 1.19.2, scipy 1.5.2

git clone [email protected]:kinnala/scikit-fem
python scikit-fem\docs\examples\ex01.py

This raises ModuleNotFoundError for matplotlib. I could have done pip install scikit-fem[full]. (I think it's right that matplotlib is not brought in by default; it brings in a lot of other stuff and might not be needed when skfem is used as an internal library.) Pressing on.

pip install matplotlib
python scikit-fem\docs\examples\ex01.py
mspaint .\scikit-fem\docs\examples\ex01_solution.png

Looks good.

@gdmcbain
Copy link
Contributor Author

conda install pytest-xdist
pytest -n auto .\scikit-fem\tests\

Results:

FAILED scikit-fem/tests/test_examples.py::TestEx23::runTest - ModuleNotFoundError: No module named 'pacopy'
FAILED scikit-fem/tests/test_examples.py::TestEx27::runTest - ModuleNotFoundError: No module named 'pacopy'
FAILED scikit-fem/tests/test_examples.py::TestEx28::runTest - ModuleNotFoundError: No module named 'pygmsh'
FAILED scikit-fem/tests/test_examples.py::TestEx32::runTest - ModuleNotFoundError: No module named 'pygmsh'
FAILED scikit-fem/tests/test_examples.py::TestEx09::runTest - AssertionError: 0.05528672844403534 != 0.05528520791811...
================================ 5 failed, 168 passed, 38 warnings in 72.81s (0:01:12) ================================

@gdmcbain
Copy link
Contributor Author

Let's try that again.

pip install pacopy==0.1.2 pygmsh<7
pytest -n auto .\scikit-fem\tests\

This time:

=============================================== short test summary info ===============================================
FAILED scikit-fem/tests/test_examples.py::TestEx32::runTest - ModuleNotFoundError: No module named 'pyamg'
FAILED scikit-fem/tests/test_examples.py::TestEx09::runTest - AssertionError: 0.05528672844403534 != 0.05528520791811...
================================ 2 failed, 171 passed, 41 warnings in 70.44s (0:01:10) ================================

@gdmcbain
Copy link
Contributor Author

One more:

pip install pyamg
pytest -n auto .\scikit-fem\tests\

which gives

=============================================== short test summary info ===============================================
FAILED scikit-fem/tests/test_examples.py::TestEx32::runTest - FileNotFoundError: [WinError 2] The system cannot find ...
FAILED scikit-fem/tests/test_visuals.py::CallDrawQuad::runTest - _tkinter.TclError: Can't find a usable tk.tcl in the...
FAILED scikit-fem/tests/test_visuals.py::CallPlot3::runTest - _tkinter.TclError: Can't find a usable tk.tcl in the fo...
================================ 3 failed, 170 passed, 45 warnings in 69.62s (0:01:09) ================================

@gdmcbain
Copy link
Contributor Author

That TestEx09 passes after installing PyAMG is pure #469.

@gdmcbain
Copy link
Contributor Author

TestEx32 is missing Gmsh. It'd be nice to rewrite the test so that it didn't need that; see #490. (I'm not sure whether #491 would work under Windows though. My experiences with Docker and Windows have been very rocky.)

pip install gmsh
python .\scikit-fem\docs\examples\ex32.py

No good, still FileNotFoundError for Gmsh. (I suspect that that's a pygmsh bug as gmsh 4.6.0 is on $env:PATH and can be invoked from the Anaconda PowerShell Prompt. No bug fixes for pygmsh<7 though.)

@gdmcbain
Copy link
Contributor Author

Summary:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant