celerite2
celerite2 copied to clipboard
Getting error while installation.
Hi, I was trying to install celerite2 from source code following the instructions in the documentation. But while testing the code I got an error:
python -m pytest -v python/test ─╯
=================================================================================== test session starts ===================================================================================
platform darwin -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0 -- /opt/anaconda3/envs/pymc/bin/python
cachedir: .pytest_cache
rootdir: /Users/ajaysharma/celerite2
configfile: pyproject.toml
plugins: cov-4.1.0
collected 0 items / 1 error
========================================================================================= ERRORS ==========================================================================================
______________________________________________________________________________ ERROR collecting test session ______________________________________________________________________________
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/main.py:749: in collect
for x in self._collectfile(path):
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/main.py:588: in _collectfile
ihook = self.gethookproxy(fspath)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/main.py:555: in gethookproxy
my_conftestmodules = pm._getconftestmodules(
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/config/__init__.py:609: in _getconftestmodules
mod = self._importconftest(conftestpath, importmode, rootpath)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/config/__init__.py:657: in _importconftest
self.consider_conftest(mod)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/config/__init__.py:739: in consider_conftest
self.register(conftestmodule, name=conftestmodule.__file__)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/_pytest/config/__init__.py:491: in register
ret: Optional[str] = super().register(plugin, name)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/pluggy/_manager.py:164: in register
hook._maybe_apply_history(hookimpl)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/pluggy/_hooks.py:559: in _maybe_apply_history
res = self._hookexec(self.name, [method], kwargs, False)
/opt/anaconda3/envs/pymc/lib/python3.11/site-packages/pluggy/_manager.py:115: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
python/test/pymc/conftest.py:13: in pytest_configure
pytensor.config.gcc.cxxflags = "-Wno-c++11-narrowing"
E AttributeError: 'PyTensorConfigParser' object has no attribute 'gcc'
================================================================================= short test summary info =================================================================================
ERROR - AttributeError: 'PyTensorConfigParser' object has no attribute 'gcc'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================
Please help me to resolve this error. Any help would be appreciated.
Sys info. : Mac OS M1 chip - version 14.1.1 Python - latest version
Thanks! This was an incompatibility introduced in the most recent PyMC/PyTensor release. Once https://github.com/exoplanet-dev/celerite2/pull/94 is merged, it should work again.