The installation fails on my MacBook Pro with M1 chip.
I also tried on a MacBook Pro with an Intel chip (and the same OS version) and on a Linux system: the installation was successful on both configurations.
It seems to be related with the installation of arch. I've tried to pip install arch==5.0.1
and it also failed with the same logs.
_____________________________________________ LibraryTest.test_stratified_bootstrap_runs_and_tasks _____________________________________________
self = <library_test.LibraryTest testMethod=test_stratified_bootstrap_runs_and_tasks>, task_bootstrap = True
@parameterized.named_parameters(
dict(testcase_name="runs_only", task_bootstrap=False),
dict(testcase_name="runs_and_tasks", task_bootstrap=True))
def test_stratified_bootstrap(self, task_bootstrap):
"""Tests StratifiedBootstrap."""
bs = rly.StratifiedBootstrap(
self._x, y=self._y, z=self._z, task_bootstrap=task_bootstrap)
> for data, kwdata in bs.bootstrap(5):
tests/rliable/library_test.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.9/site-packages/arch/bootstrap/base.py:694: in bootstrap
yield self._resample()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Stratified Bootstrap(no. pos. inputs: 1, no. keyword inputs: 2, ID: 0x15b353a00)
def _resample(self) -> Tuple[Tuple[ArrayLike, ...], Dict[str, ArrayLike]]:
"""
Resample all data using the values in _index
"""
indices = self._index
> assert isinstance(indices, np.ndarray)
E AssertionError
env/lib/python3.9/site-packages/arch/bootstrap/base.py:1294: AssertionError
_______________________________________________ LibraryTest.test_stratified_bootstrap_runs_only ________________________________________________
self = <library_test.LibraryTest testMethod=test_stratified_bootstrap_runs_only>, task_bootstrap = False
@parameterized.named_parameters(
dict(testcase_name="runs_only", task_bootstrap=False),
dict(testcase_name="runs_and_tasks", task_bootstrap=True))
def test_stratified_bootstrap(self, task_bootstrap):
"""Tests StratifiedBootstrap."""
bs = rly.StratifiedBootstrap(
self._x, y=self._y, z=self._z, task_bootstrap=task_bootstrap)
> for data, kwdata in bs.bootstrap(5):
tests/rliable/library_test.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.9/site-packages/arch/bootstrap/base.py:694: in bootstrap
yield self._resample()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Stratified Bootstrap(no. pos. inputs: 1, no. keyword inputs: 2, ID: 0x15b2ff1f0)
def _resample(self) -> Tuple[Tuple[ArrayLike, ...], Dict[str, ArrayLike]]:
"""
Resample all data using the values in _index
"""
indices = self._index
> assert isinstance(indices, np.ndarray)
E AssertionError
env/lib/python3.9/site-packages/arch/bootstrap/base.py:1294: AssertionError
It seems like there are breaking changes between arch 5.0.1 and arch 5.2.0.
Maybe this issue can be solved by updating this dependency to it's current version.