Comments (6)
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.
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.
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.
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.
Great! Please do open issues on the relevant repos.
from george.
A little late, but the latest version is now available on PyPI with Py3.11 and 3.12 binaries!
from george.
Related Issues (20)
- yaml dependency
- Build fails on mac catalina HOT 2
- Questions about the model fitting example HOT 9
- Failed to import KernelInterface HOT 2
- Unable to update values on a custom mean model. HOT 2
- How to copy a GP object? HOT 2
- Coregionalization
- str of Matern32Kernels HOT 2
- "metric" is linear but "metric_bounds" is log HOT 3
- python setup.py install error -- couldn't find Eigen headers HOT 2
- Adding custom kernel issue HOT 2
- kerne has no attribute kernel HOT 5
- Is there any plan to separate C++ lib HOT 1
- Support for parameters with `CallableModel`
- [documentation] meaning of HODLRSolver parameters: min_size and tol HOT 3
- White noise: Different value for different instruments modelled by the same kernel HOT 1
- Uncertainties blow up HOT 1
- White noise bounds HOT 1
- Random seed / rng for sampling from GP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from george.