Giter Site home page Giter Site logo

cyflann's Issues

Travis setup

Might be nice. Have it build and upload conda packages (and pip wheels?) too.

use the c++ api directly

Why not? It'll avoid a layer of indirection and maybe be simpler.

Probably conflicts with #6, but might make #9 easier.

Failed to install throuch pip or setup.py on OS X

Environment:

  • OS X El Capitan 10.11.6
  • Python: 2.7.11
  • Numpy: 1.11.1
  • Pip: 8.1.2
  • FLANN: stable 1.8.4 (installed via Homebrew)

Could not install by either:

pip install cyflann

Or setup.py after checking out the code:

python setup.py install

Error message was:

...
cyflann/index.c:254:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^
1 error generated.
error: command 'clang' failed with exit status 1

Interface incompatability

It would probably be nice if cyflann were a drop-in replacement for pyflann, in case anyone other than py-sdm is ever going to want to use it.

Compile to a single library file ?

Hi Dougal,

Thanks for doing this. I'm pretty new to Cython and my C/C++ is from 20 years ago. I'd ideally like to wrap the FLANN C++ code in Cython and then compile it all to a single .so / .pyd file. Is this possible or will there always be two libs (one Cython, one FLANN native) ?

Thanks

Ian

test error

$ python test_vs_pyflann.py 
Traceback (most recent call last):
  File "test_vs_pyflann.py", line 4, in <module>
    import cyflann
  File "/home/magnolia/cyflann/cyflann/__init__.py", line 1, in <module>
    from .index import FLANNParameters, FLANNIndex, set_distance_type
ImportError: /home/magnolia/cyflann/cyflann/index.so: undefined symbol: DEFAULT_FLANN_PARAMETERS

OSX: better support for nonstandard install paths

Passing an absolute path to the library name doesn't seem to be doing it for me anymore; not sure if this is a change in newer OSX versions or if I just didn't test appropriately earlier. Should manually run install_name_tool to fix it after compilation; example.

compile flann with setup.py install?

Would it be possible to actually compile FLANN with this thing? So that pip install cyflann would work even if you didn't have flann installed. (Though you'd still need cmake, unless I wanted to really go crazy.)

Would probably need the option of linking to a system install of flann also, though.

doesn't compile with cython 0.20.*

Because of the struct/dict conversion issue discussed here and here.

Dunno of a workaround, other than (a) manually enumerating all the possible options or (b) disabling as_dict() / __repr__() (which uses it).

build issue on OSX

(From djsutherland/py-sdm#32)

I am using anaconda and set up an environment as described. When I run:

 pip install 'https://github.com/dougalsutherland/py-sdm/tarball/master#egg=sdm-0.1.0dev'

I get the following error:

 ImportError: The Cython extension requires cyflann to be installed before compilation.

 Install cyflann (e.g. `pip install cyflann`), and then try again.

I just ran pip install cyflann and it still raises this exception.

Running python -c 'import cyflann' gives me another error:

ImportError: dlopen(/Users/wgmueller/anaconda/envs/py-sdm2/lib/python2.7/site-packages/cyflann/index.so, 2): Symbol not found: _DEFAULT_FLANN_PARAMETERS
Referenced from: /Users/wgmueller/anaconda/envs/py-sdm2/lib/python2.7/site-packages/cyflann/index.so
Expected in: dynamic lookup

Any suggestions?

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.