Bug 246727 - science/py-scikit-sparse fails with AssertionError
Summary: science/py-scikit-sparse fails with AssertionError
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
Depends on:
Reported: 2020-05-25 20:36 UTC by chris
Modified: 2020-05-25 22:28 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (yuri)


Note You need to log in before you can comment on or make changes to this bug.
Description chris 2020-05-25 20:36:27 UTC
The following python code:

from sklearn import preprocessing 
from sklearn.cluster import AffinityPropagation

Produces this trace back after installing py37-scikit-sparse:

Traceback (most recent call last):
  File "./network", line 6, in <module>
    from sklearn import preprocessing 
  File "/usr/local/lib/python3.7/site-packages/sklearn/__init__.py", line 74, in <module>
    from .base import clone
  File "/usr/local/lib/python3.7/site-packages/sklearn/base.py", line 20, in <module>
    from .utils import _IS_32BIT
  File "/usr/local/lib/python3.7/site-packages/sklearn/utils/__init__.py", line 25, in <module>
    from .fixes import np_version
  File "/usr/local/lib/python3.7/site-packages/sklearn/utils/fixes.py", line 18, in <module>
    import scipy.stats
  File "/usr/local/lib/python3.7/site-packages/scipy/stats/__init__.py", line 367, in <module>
    from .stats import *
  File "/usr/local/lib/python3.7/site-packages/scipy/stats/stats.py", line 173, in <module>
    from . import distributions
  File "/usr/local/lib/python3.7/site-packages/scipy/stats/distributions.py", line 10, in <module>
    from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
  File "/usr/local/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py", line 24, in <module>
    from scipy import optimize
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/__init__.py", line 387, in <module>
    from ._minimize import *
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/_minimize.py", line 30, in <module>
    from ._trustregion_constr import _minimize_trustregion_constr
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/__init__.py", line 4, in <module>
    from .minimize_trustregion_constr import _minimize_trustregion_constr
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py", line 11, in <module>
    from .equality_constrained_sqp import equality_constrained_sqp
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py", line 5, in <module>
    from .projections import projections
  File "/usr/local/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py", line 9, in <module>
    from sksparse.cholmod import cholesky_AAt
  File "sksparse/cholmod.pyx", line 240, in init sksparse.cholmod

This was discovered after installing py37-networkx which depends on py37-scikit-sparse.