Attempting installation of clawpack on ubuntu.

20 views
Skip to first unread message

Michael Jensen

unread,
Feb 10, 2024, 5:14:18 AMFeb 10
to claw-users
Please see the following installation command, and the resulting output, and error.  I happen to have python3.10 installed so that I can use bpy (blender-python).  For the purposes of doing that, I have a special folder setup with a virtual environment.  Seeing python3.10 mentioned in the below errors, makes me wonder if this is the cause of the problem..

eriadar@eriadar-Latitude-E7440:~$ pip install --src=$HOME/clawpack_src --no-build-isolation -e     git+https://github.com/clawpack/clawpa...@v5.9.2#egg=clawpack
Defaulting to user installation because normal site-packages is not writeable
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 ./clawpack_src/clawpack
  Running command git clone --filter=blob:none --quiet https://github.com/clawpack/clawpack.git /home/eriadar/clawpack_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/eriadar/.local/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
    return func(self, options, args)
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 377, in run
    requirement_set = resolver.resolve(
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 76, in resolve
    collected = self.factory.collect_root_requirements(root_reqs)
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 534, in collect_root_requirements
    reqs = list(
  File "/home/eriadar/.local/lib/python3.10/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/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 207, in _make_base_candidate_from_link
    self._editable_candidate_cache[link] = EditableCandidate(
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 315, in __init__
    super().__init__(
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
    self.dist = self._prepare()
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
    dist = self._prepare_distribution()
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 325, in _prepare_distribution
    return self._factory.preparer.prepare_editable_requirement(self._ireq)
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 696, in prepare_editable_requirement
    dist = _get_prepared_distribution(
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 71, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 67, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 571, in prepare_metadata
    and self.supports_pyproject_editable()
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 257, in supports_pyproject_editable
    return "build_editable" in self.pep517_backend._supported_features()
  File "/home/eriadar/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 153, in _supported_features
    return self._call_hook('_supported_features', {})
  File "/home/eriadar/.local/lib/python3.10/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/eriadar/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'

David Ketcheson

unread,
Feb 10, 2024, 5:16:30 AMFeb 10
to claw-users
The problem is simply that you haven't installed the packaging system we now use, i.e. Meson.  Simply do

pip install meson-python ninja

Let me know if you still run into any problems.

David
Reply all
Reply to author
Forward
0 new messages