Skip to content

OMMBV pip install started failing #62

@sapols

Description

@sapols

Describe the bug
I'm not sure what changed but I'm no longer able to pip install OMMBV in various environments, including my personal MacBook and inside GitHub Actions. I first noticed this when the PyHC environment pipeline failed in GitHub trying to pip install OMMBV. The ultimate cause of the failure seems to be ModuleNotFoundError: No module named 'distutils.msvccompiler'.

To Reproduce
Steps to reproduce the behavior:

  1. Run pip install OMMBV

Expected behavior
I'd expect OMMBV to install but it fails.

Desktop (please complete the following information):

  • OS: macOS Sonoma & Ubuntu 22.04

Additional context
Here's the error output I keep getting:

Collecting OMMBV
  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]
      <string>:18: DeprecationWarning:
      
        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools < 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html
      
      
      Traceback (most recent call last):
        File "/Users/shpo9723/opt/anaconda3/envs/python_3_10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/shpo9723/opt/anaconda3/envs/python_3_10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/shpo9723/opt/anaconda3/envs/python_3_10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 18, in <module>
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/numpy/distutils/core.py", line 24, in <module>
          from numpy.distutils.command import config, config_compiler, \
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/numpy/distutils/command/config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "/private/var/folders/4f/t664wvxn4nd8864qfqwknh7r008q5h/T/pip-build-env-9wawv888/overlay/lib/python3.10/site-packages/numpy/distutils/mingw32ccompiler.py", line 27, in <module>
          from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

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