[MacPorts] #60955: py38-scikit-learn: depends on `threadpoolctl`. (was: `py38-scikit-learn` depends on `threadpoolctl`.)

MacPorts noreply at macports.org
Tue Aug 4 16:34:09 UTC 2020


#60955: py38-scikit-learn: depends on `threadpoolctl`.
------------------------------+----------------------
  Reporter:  iangow           |      Owner:  stromnov
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  py-scikit-learn  |
------------------------------+----------------------
Changes (by mf2k):

 * status:  new => assigned
 * owner:  (none) => stromnov
 * port:  py38-scikit-learn => py-scikit-learn


Old description:

> 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'
> ```

New description:

 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'
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/60955#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list