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

Getting error while installation. #95

Open
ajaykhoj opened this issue Nov 18, 2023 · 1 comment
Open

Getting error while installation. #95

ajaykhoj opened this issue Nov 18, 2023 · 1 comment

Comments

@ajaykhoj
Copy link

ajaykhoj commented Nov 18, 2023

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

@dfm
Copy link
Member

dfm commented Nov 20, 2023

Thanks! This was an incompatibility introduced in the most recent PyMC/PyTensor release. Once #94 is merged, it should work again.

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

No branches or pull requests

2 participants