Opened 4 years ago

Closed 4 years ago

#60955 closed defect (fixed)

py38-scikit-learn: depends on `threadpoolctl`.

Reported by: iangow (Ian Gow) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-scikit-learn

Description (last modified by mf2k (Frank Schima))

It seems py38-scikit-learn depends on threadpoolctl, but this dependency isn't coded in.

Mac-Pro Downloads % python3                                         
Python 3.8.5 (default, Jul 21 2020, 18:31:18) 
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from sklearn.cluster import AgglomerativeClustering
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sklearn/cluster/__init__.py", line 6, in <module>
    from ._spectral import spectral_clustering, SpectralClustering
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sklearn/cluster/_spectral.py", line 18, in <module>
    from ._kmeans import k_means
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py", line 18, in <module>
    from threadpoolctl import threadpool_limits
ModuleNotFoundError: No module named 'threadpoolctl'

Change History (3)

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting and add the port maintainer(s) to Cc (port info --maintainers py38-scikit-learn), if any.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: set to stromnov
Port: py-scikit-learn added; py38-scikit-learn removed
Status: newassigned
Summary: `py38-scikit-learn` depends on `threadpoolctl`.py38-scikit-learn: depends on `threadpoolctl`.

comment:3 Changed 4 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: assignedclosed

In 965144d59bb448507108cf284daa01241005ab3f/macports-ports (master):

py-scikit-learn: add py-threadpoolctl dependency

Closes: #60955

Note: See TracTickets for help on using tickets.