Code Monkey home page Code Monkey logo

hdbscan-feedstock's Issues

package cannot be used with numpy < 1.14

The 0.8.12 packages error when imported in a conda environment where numpy < 1.14.

Example error with NumPy 1.13
~$ conda create -n example -c conda-forge python=3.6 hdbscan numpy=1.13
Solving environment: done

## Package Plan ##

  environment location: /home/jhelmus/anaconda3/envs/example

  added / updated specs: 
    - hdbscan
    - numpy=1.13
    - python=3.6


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    scipy-1.0.0                |py36_blas_openblas_201        40.3 MB  conda-forge
    scikit-learn-0.19.1        |py36_blas_openblas_201        12.8 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        53.2 MB

The following NEW packages will be INSTALLED:

    blas:            1.1-openblas                  conda-forge
    ca-certificates: 2017.11.5-0                   conda-forge
    hdbscan:         0.8.12-py36_0                 conda-forge
    libgfortran:     3.0.0-1                       defaults   
    ncurses:         5.9-10                        conda-forge
    numpy:           1.13.3-py36_blas_openblas_201 conda-forge [blas_openblas]
    openblas:        0.2.20-7                      conda-forge
    openssl:         1.0.2n-0                      conda-forge
    python:          3.6.4-0                       conda-forge
    readline:        7.0-0                         conda-forge
    scikit-learn:    0.19.1-py36_blas_openblas_201 conda-forge [blas_openblas]
    scipy:           1.0.0-py36_blas_openblas_201  conda-forge [blas_openblas]
    sqlite:          3.20.1-2                      conda-forge
    tk:              8.6.7-0                       conda-forge
    xz:              5.2.3-0                       conda-forge
    zlib:            1.2.11-0                      conda-forge

Proceed ([y]/n)? y


Downloading and Extracting Packages
scipy 1.0.0: ############################################################################################################################################ | 100% 
scikit-learn 0.19.1: #################################################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use:
# > source activate example
#
# To deactivate an active environment, use:
# > source deactivate
#
~$ source activate example
(example) ~$ python -c "import hdbscan"
Traceback (most recent call last):
  File "__init__.pxd", line 1011, in numpy.import_array
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jhelmus/anaconda3/envs/example/lib/python3.6/site-packages/hdbscan/__init__.py", line 1, in <module>
    from .hdbscan_ import HDBSCAN, hdbscan
  File "/home/jhelmus/anaconda3/envs/example/lib/python3.6/site-packages/hdbscan/hdbscan_.py", line 21, in <module>
    from ._hdbscan_linkage import (single_linkage,
  File "hdbscan/dist_metrics.pxd", line 61, in init hdbscan._hdbscan_linkage (hdbscan/_hdbscan_linkage.c:20936)
  File "hdbscan/dist_metrics.pyx", line 13, in init hdbscan.dist_metrics
  File "__init__.pxd", line 1013, in numpy.import_array
ImportError: numpy.core.multiarray failed to import

hdbscan makes use of the numpy C API and needs to express the the numpy versions it is compatible with. The conda-forge documentation has more details on this topic.

PR with a fix will be submitted shortly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.