Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation broken - pyabcranger issue #66

Open
anastasiakrouglova opened this issue Feb 5, 2024 · 3 comments
Open

Installation broken - pyabcranger issue #66

anastasiakrouglova opened this issue Feb 5, 2024 · 3 comments

Comments

@anastasiakrouglova
Copy link

Hi,

I seem to have an issue on a MacOS 14.1 with Apple M3 Max.

If I run the installation of this package:

python -m pip install sbibm

This error originates from a subprocess and is similar to this issue: diyabc/abcranger#96, opened last week.

My current Python version is 3.11.5.
However, downgrading to Python 3.9.18 and 3.10.13 does not resolve the issue.

Collecting pyabcranger>=0.0.48 (from sbibm)
  Using cached pyabcranger-0.0.70.tar.gz (58 kB)
  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
  ╰─> [106 lines of output]
      PYTHON VERSION : 3.11
      running egg_info
      egg_info (cmake)
      writing dist/pyabcranger.egg-info/PKG-INFO
      writing dependency_links to dist/pyabcranger.egg-info/dependency_links.txt
      writing top-level names to dist/pyabcranger.egg-info/top_level.txt
      Cloning into 'ranger'...
      Cloning into 'wingetopt'...
      -- The CXX compiler identification is AppleClang 15.0.0.15000100
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      Compiler ID : AppleClang
      -- The C compiler identification is AppleClang 15.0.0.15000100
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Found Python: /Users/nastyakrouglova/anaconda3/bin/python (found version "3.11.5") found components: Interpreter Development.Module
      -- [pmm] Using vcpkg executable: /Users/nastyakrouglova/.local/share/pmm/2.1.0/vcpkg-6f7ffeb18f99796233b958aaaf14ec7bd4fb64b2/vcpkg
      CMake Error at build/_pmm/2.1.0/vcpkg.cmake:168 (message):
        Failed find portfile in
        /private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-install-q7br6124/pyabcranger_63824d441ed449369860b427234ea34f/pybind11-nodep!
      Call Stack (most recent call first):
        build/_pmm/2.1.0/vcpkg.cmake:224 (_pmm_vcpkg_copy_custom_ports)
        build/_pmm/2.1.0/main.cmake:46 (_pmm_vcpkg)
        build/_pmm/2.1.0/main.cmake:66 (_pmm_project_fn)
        CMakeLists.txt:83 (pmm)
      
      
      -- Configuring incomplete, errors occurred!
      [git] .gitmodules found. Cloning the submodules if necessary
      [git] cloning https://github.com/fradav/ranger.git to ranger...
      [git] cloning complete.
      [git] cloning https://github.com/alex85k/wingetopt.git to wingetopt...
      [git] cloning complete.
      
      [cmake] configuring CMake project...
      
      Traceback (most recent call last):
        File "/Users/nastyakrouglova/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/nastyakrouglova/anaconda3/lib/python3.11/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/nastyakrouglova/anaconda3/lib/python3.11/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/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 23, in <module>
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/cmaketools/__init__.py", line 98, in setup
          _setup(**setup_args)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 321, in run
          self.find_sources()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/cmaketools/cmakecommands.py", line 72, in find_sources
          mm.run()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 551, in run
          self.add_defaults()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
          sdist.add_defaults(self)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
          super().add_defaults()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
          self._add_defaults_ext()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
          build_ext = self.get_finalized_command('build_ext')
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
          cmd_obj.ensure_finalized()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
          self.finalize_options()
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/cmaketools/cmakecommands.py", line 452, in finalize_options
          self.cmake.configure(self.build_base, **cmake_settings)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/cmaketools/cmakebuilder.py", line 321, in configure
          cmakeutil.configure(".", build_dir, *args, **kwargs)
        File "/private/var/folders/ld/flvgc_x56cqgh3w4r74wm0140000gn/T/pip-build-env-90ml_iw6/overlay/lib/python3.11/site-packages/cmaketools/cmakeutil.py", line 120, in configure
          sp.run(args, env=env, check=True).check_returncode()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/nastyakrouglova/anaconda3/lib/python3.11/subprocess.py", line 571, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['cmake', '.', '-B', 'build', '-DPython_EXECUTABLE=/Users/nastyakrouglova/anaconda3/bin/python', '-DPYABCRANGER=TRUE', '-DUSE_MKL:BOOL=FALSE', '-DCMAKE_BUILD_TYPE:STRING=Release', '-G', 'Ninja', '-DCMAKE_BUILD_TYPE:STRING=Release']' returned non-zero exit status 1.
      [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.

@anastasiakrouglova anastasiakrouglova changed the title Not compatible Installation broken - pyabcranger issue Feb 5, 2024
@anastasiakrouglova
Copy link
Author

I assume that updating pyabcranger inside sbibm to the latest release of 0.0.57  will fix this issue. (see diyabc/abcranger#92)

@jan-matthis
Copy link
Contributor

Thanks for reporting this -- did updating pyabcranger resolve the issue for you?

@anastasiakrouglova
Copy link
Author

Unfortunately it didn't resolve the issue. I get the same issue with pyabcranger , which also originates from a subprocess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants