Impossible to upgrade to version 5.9.2

50 views
Skip to first unread message

christop...@epfl.ch

unread,
Jan 24, 2024, 11:36:48 AMJan 24
to claw-users
Hi,
I wanted to use the Boussinesq extension in Geoclaw. I tried to upgrade the current version (5.9.0) to the last one (5.9.2), but the upgrade fails. According to the release notes, the build process is now based on Meson, but this new procedure runs into trouble on the three machines I have tested. I got the message attached below. What can be done?
Best regards,
Christophe

Obtaining clawpack from git+https://github.com/clawpack/clawpa...@v5.9.2#egg=clawpack
  Cloning https://github.com/clawpack/clawpack.git (to revision v5.9.2) to ./src/clawpack
  Running command git clone --filter=blob:none --quiet https://github.com/clawpack/clawpack.git /home/ancey/clawpack2024/clawpack/pyclaw/src/clawpack
  Running command git checkout -q 84be0d766c353753eca52c9fe9a1f15f08966df7
  Resolved https://github.com/clawpack/clawpack.git to commit 84be0d766c353753eca52c9fe9a1f15f08966df7
  Running command git submodule update --init --recursive -q
  Checking if build backend supports build_editable ... done
ERROR: Exception:
Traceback (most recent call last):
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
    return func(self, options, args)
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 377, in run
    requirement_set = resolver.resolve(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 76, in resolve
    collected = self.factory.collect_root_requirements(root_reqs)
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 534, in collect_root_requirements
    reqs = list(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 490, in _make_requirements_from_install_req
    cand = self._make_base_candidate_from_link(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 207, in _make_base_candidate_from_link
    self._editable_candidate_cache[link] = EditableCandidate(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 318, in __init__
    super().__init__(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
    self.dist = self._prepare()
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare
    dist = self._prepare_distribution()
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 328, in _prepare_distribution
    return self._factory.preparer.prepare_editable_requirement(self._ireq)
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 696, in prepare_editable_requirement
    dist = _get_prepared_distribution(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 71, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 67, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 569, in prepare_metadata
    and self.supports_pyproject_editable()
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 247, in supports_pyproject_editable
    return "build_editable" in self.pep517_backend._supported_features()
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 153, in _supported_features
    return self._call_hook('_supported_features', {})
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/home/ancey/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/home/ancey/anaconda3/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'

Kyle Mandli

unread,
Jan 24, 2024, 12:14:53 PMJan 24
to claw-users
Randy or Marsha will probably need to help you with this one but right now I do not believe that the Boussinesq extension has adopted the new build system (Meson).  You should be able to use it without fully installing PyClaw though.

Kyle
--
You received this message because you are subscribed to the Google Groups "claw-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to claw-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/claw-users/7a60410f-9c9a-46a4-8b74-bbd5eca023d5n%40googlegroups.com.

David Ketcheson

unread,
Jan 24, 2024, 12:25:52 PMJan 24
to claw-users
I think you need to

pip install meson-python

If this isn't in the current install instructions, we should add it.

Christophe Ancey

unread,
Jan 24, 2024, 12:29:18 PMJan 24
to claw-...@googlegroups.com
I tried, but I failed to integrate geoclaw_1d into Clawpack 5.9.0. When I ran bouss_wavetank_matsuyama, I got an error with the assignment
rundata.grid_data.grid_type = grid_type clawpack
implying that grid_type is not defined in my geoclaw version.

I am reluctant to change the core elements. After a number of changes I made to fix the issue, Clawpack 5.9.0 now fails on my machine. I have tried to repair it, but the "easy" solution indicated here
http://www.clawpack.org/installing_pip.html#install-quick-all
using
pip install --user --no-build-isolation -e ./
does not work.



***************************************************************************************************
Christophe ANCEY
Hydraulics and Geophysical Fluid Dynamics Group
École Polytechnique Fédérale de Lausanne

EPFL/ENAC/IIC/LHE
station 18 Ecublens
CH 1015 LAUSANNE
SWITZERLAND

tel. : +41(0)21 693 32 87
http://lhe.epfl.ch
http://en.ancey.ch




De : claw-...@googlegroups.com <claw-...@googlegroups.com> de la part de Kyle Mandli <kyle....@gmail.com>
Envoyé : mercredi 24 janvier 2024 18:14:41
À : claw-users; claw-...@googlegroups.com
Objet : Re: [claw-users] Impossible to upgrade to version 5.9.2
 

Christophe Ancey

unread,
Jan 24, 2024, 12:45:58 PMJan 24
to claw-...@googlegroups.com

Now it works. What is strange is that I installed meson-python via Anaconda, but it failed. There is probably a conflict somewhere... Best, C


***************************************************************************************************
Christophe ANCEY
Hydraulics and Geophysical Fluid Dynamics Group
École Polytechnique Fédérale de Lausanne

EPFL/ENAC/IIC/LHE
station 18 Ecublens
CH 1015 LAUSANNE
SWITZERLAND

tel. : +41(0)21 693 32 87
http://lhe.epfl.ch
http://en.ancey.ch




De : claw-...@googlegroups.com <claw-...@googlegroups.com> de la part de David Ketcheson <dke...@gmail.com>
Envoyé : mercredi 24 janvier 2024 18:25:51
À : claw-users

Objet : Re: [claw-users] Impossible to upgrade to version 5.9.2
You received this message because you are subscribed to a topic in the Google Groups "claw-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/claw-users/g_KDNoq2SOI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to claw-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/claw-users/d8b8eb22-b29a-4bbf-83c5-b272770d7d77n%40googlegroups.com.

Kyle Mandli

unread,
Jan 24, 2024, 12:48:02 PMJan 24
to claw-...@googlegroups.com
Paths more than likely as Meson is a build system.  Not sure though, kind of gave up a bit on understanding that part of things.

Kyle

Randall J LeVeque

unread,
Jan 24, 2024, 4:11:34 PMJan 24
to claw-...@googlegroups.com
Hi Christoph,

Glad to hear you were able to get things installed.  But just to clarify about geoclaw 1d and Boussinesq solvers, these are not in the latest release v5.9.2.  We hope to release v5.10.0 before long with these included. 

The 1d code (including Boussinesq) was originally in a separate repository that I think you found,
but that is now out of date, and the up-to-date code was recently committed to the master branch of  clawpack/geoclaw, including the wavetank example you cited,
    
The 2d Boussinesq is not quite ready yet, and is currently on a separate branch of clawpack/geoclaw,
See also these examples:
We are looking for more people to test the current version, so please contact me directly if you're interested.

Some documentation is also under development; the current version is on the dev branch of clawpack/doc and visible at:


Reply all
Reply to author
Forward
0 new messages