Git Product home page Git Product logo

Comments (6)

dfm avatar dfm commented on August 20, 2024

I can't reproduce your error over here (also on an M1 mac) in a fresh conda environment. It looks like some compiler flags might not be getting set properly. I've opened a PR (#161) with some updates to the build infrastructure - can you see if that branch works for you? Alternatively, after I merge that, I can release a new version so that 3.11 binary wheels will be available on PyPI.

from george.

jlillo avatar jlillo commented on August 20, 2024

Thanks a lot for checking. I cloned the main repo into my mac and tried to install it through
sudo python -m pip install -e .

However I get the following error messages:

  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      Traceback (most recent call last):
        File "/Users/lillo_box/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/lillo_box/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/lillo_box/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 181, in prepare_metadata_for_build_editable
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-t42yv91h/overlay/lib/python3.11/site-packages/scikit_build_core/build/__init__.py", line 85, in prepare_metadata_for_build_editable
          return _build_wheel_impl(
                 ^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-t42yv91h/overlay/lib/python3.11/site-packages/scikit_build_core/build/wheel.py", line 132, in _build_wheel_impl
          metadata = get_standard_metadata(pyproject, settings)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-t42yv91h/overlay/lib/python3.11/site-packages/scikit_build_core/settings/metadata.py", line 36, in get_standard_metadata
          new_pyproject_dict["project"][field] = provider.dynamic_metadata(field, config)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-t42yv91h/overlay/lib/python3.11/site-packages/scikit_build_core/metadata/setuptools_scm.py", line 46, in dynamic_metadata
          raise ValueError(msg)
      **ValueError: setuptools-scm was unable to detect version for /Users/lillo_box/Downloads/george-main.**

      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

from george.

dfm avatar dfm commented on August 20, 2024

Are you sure that you cloned the repo? It looks like you might have downloaded the tarball instead? That won't work because of how we generate version numbers based on the git history. You need to make sure you use:

git clone --recursive https://github.com/dfm/george.git

(don't forget the --recursive!)

But, I'll also have the binary wheels pushed to PyPI by later today.

from george.

jlillo avatar jlillo commented on August 20, 2024

You are right. It now works! Thanks a lot. By the way, I have similar problems when trying the installation of celerite and celerite2, just in case you can do a similar fix. I can open an issue in the corresponding repos if needed. Thanks!

from george.

dfm avatar dfm commented on August 20, 2024

Great! Please do open issues on the relevant repos.

from george.

dfm avatar dfm commented on August 20, 2024

A little late, but the latest version is now available on PyPI with Py3.11 and 3.12 binaries!

from george.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.