Failing the installation tests on Mac #2885
Unanswered
hwoo749
asked this question in
Firedrake support
Replies: 1 comment 8 replies
-
We should first check that your Firedrake install succeeded. Please post |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm using Homebrew Python 3.11.3 on macOS 12.15.1.
After installing firedrake and running the test installation command: pytest tests/regression/ -k "poisson_strong or stokes_mini or dg_advection", I get the following errors.
'''
(firedrake) hw@wifi-452-91-423-678 firedrake % pytest tests/regression/ -k "poisson_strong or stokes_mini or dg_advection"
========================================================== test session starts ==========================================================
platform darwin -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /Users/hw/firedrake/src/firedrake
configfile: setup.cfg
plugins: anyio-3.6.2, benchmark-4.0.0
collected 5 items / 154 errors
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/_pytest/main.py", line 322, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_hooks.py", line 265, in call
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_callers.py", line 39, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/_pytest/main.py", line 333, in pytest_collection
INTERNALERROR> session.perform_collect()
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/_pytest/main.py", line 668, in perform_collect
INTERNALERROR> hook.pytest_collection_modifyitems(
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_hooks.py", line 265, in call
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/Users/hw/firedrake/lib/python3.11/site-packages/pluggy/_callers.py", line 39, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/Users/hw/firedrake/src/firedrake/tests/conftest.py", line 20, in pytest_collection_modifyitems
INTERNALERROR> from firedrake.utils import complex_mode, SLATE_SUPPORTS_COMPLEX
INTERNALERROR> ModuleNotFoundError: No module named 'firedrake'
'''
After trying this command: python -m pytest tests/regression/ -k "poisson_strong or stokes_mini or dg_advection"
The final error message says module not found for petsc4py rather than firedrake : INTERNALERROR> import petsc4py
INTERNALERROR> ModuleNotFoundError: No module named 'petsc4py'
I have installed PETSc and uninstalled anaconda - how do I go about passing the tests and fixing this issue?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions