Skip to content

pip install of probml-utils fails #713

@chaikens

Description

@chaikens

Command

(probml) seth@turtle:/data/Software/probml-utils$ pip install -e .
Obtaining file:///data/Software/probml-utils

fails with

      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]
 note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'numpy' when getting requirements to build wheel

Here's the whole output:

(probml) seth@turtle:/data/Software/probml-utils$ pip install -e .
Obtaining file:///data/Software/probml-utils
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: arviz in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (0.23.4)
Requirement already satisfied: jaxlib in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (0.9.0.1)
Requirement already satisfied: jax in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (0.9.0.1)
Collecting jaxopt (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached jaxopt-0.8.5-py3-none-any.whl.metadata (3.3 kB)
Requirement already satisfied: jupyter in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (1.1.1)
Requirement already satisfied: matplotlib in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (3.10.8)
Requirement already satisfied: scikit-learn in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (1.8.0)
Requirement already satisfied: scipy in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (1.17.0)
Requirement already satisfied: graphviz in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (0.21)
Collecting distrax==0.1.3 (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached distrax-0.1.3-py3-none-any.whl.metadata (13 kB)
Collecting umap-learn (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached umap_learn-0.5.11-py3-none-any.whl.metadata (26 kB)
Requirement already satisfied: pandas in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from probml_utils==0.1.dev1+g638ebb99f) (3.0.1)
Collecting TexSoup (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached TexSoup-0.3.1-py3-none-any.whl.metadata (3.4 kB)
Collecting firebase_admin (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached firebase_admin-7.1.0-py3-none-any.whl.metadata (1.7 kB)
Collecting regex (from probml_utils==0.1.dev1+g638ebb99f)
  Using cached regex-2026.1.15-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (40 kB)
Requirement already satisfied: absl-py>=0.9.0 in /data/Software/miniconda3/envs/probml/lib/python3.12/site-packages (from distrax==0.1.3->probml_utils==0.1.dev1+g638ebb99f) (2.4.0)
Collecting chex>=0.0.7 (from distrax==0.1.3->probml_utils==0.1.dev1+g638ebb99f)
  Using cached chex-0.1.91-py3-none-any.whl.metadata (18 kB)
Collecting numpy<1.23,>=1.18.0 (from distrax==0.1.3->probml_utils==0.1.dev1+g638ebb99f)
  Using cached numpy-1.22.4.zip (11.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "/data/Software/miniconda3/envs/probml/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
        File "/data/Software/miniconda3/envs/probml/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/Software/miniconda3/envs/probml/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 137, in get_requires_for_build_wheel
          backend = _build_backend()
                    ^^^^^^^^^^^^^^^^
        File "/data/Software/miniconda3/envs/probml/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 70, in _build_backend
          obj = import_module(mod_path)
                ^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/Software/miniconda3/envs/probml/lib/python3.12/importlib/__init__.py", line 90, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 999, in exec_module
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "/tmp/pip-build-env-l9_nvhbb/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
          import setuptools.version
        File "/tmp/pip-build-env-l9_nvhbb/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
          import pkg_resources
        File "/tmp/pip-build-env-l9_nvhbb/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2172, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'numpy' when getting requirements to build wheel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions