Git Product home page Git Product logo

Comments (14)

erikbern avatar erikbern commented on May 18, 2024

Did you try the latest code? I think I actually fixed this yesterday

ae74624

from annoy.

erikbern avatar erikbern commented on May 18, 2024

The underlying python C extension doesn't handle kw arguments so well but I solved it by a dumb wrapper on the Python side

from annoy.

Horace89 avatar Horace89 commented on May 18, 2024

ok, I'll test it again tomorrow. Thank you.

from annoy.

Horace89 avatar Horace89 commented on May 18, 2024

Yes, I confirm that I use the latest version of Annoy (1.5.2), and the described bug still occurs. I'm on Python 3.4.3.

from annoy.

erikbern avatar erikbern commented on May 18, 2024

When I meant latest version I meant bleeding edge github master.

I updated master but didn't push it to pypi. I can bump the version and
push. I keep forgetting to do that so in glad you reminded me :)

On Friday, November 13, 2015, Horace89 [email protected] wrote:

Yes, I confirm that I use the latest version of Annoy (1.5.2), and the
described bug still occurs. I'm on Python 3.4.3.


Reply to this email directly or view it on GitHub
#114 (comment).

from annoy.

erikbern avatar erikbern commented on May 18, 2024

I bumped the version to 1.6.0 and pushed it to PyPI

from annoy.

dudevil avatar dudevil commented on May 18, 2024

@erikbern
I'm having trouble installing annoy through pip after this update:

Installing collected packages: annoy
  Found existing installation: annoy 1.5.2
    Uninstalling annoy:
      Successfully uninstalled annoy
  Running setup.py install for annoy
    building 'annoy.annoylib' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/annoymodule.cc -o build/temp.linux-x86_64-2.7/src/annoymodule.o -O3 -march=native -ffast-math
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/annoymodule.cc:16:24: fatal error: kissrandom.h: No such file or directory
     #include "kissrandom.h"
                            ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Clonning and running python setup.py install works fine.

from annoy.

erikbern avatar erikbern commented on May 18, 2024

let me take a look at it

from annoy.

erikbern avatar erikbern commented on May 18, 2024

I had forgotten to include src/kissrandom.h in setup.py.

I added it and pushed 1.6.1.

Sorry about the inconvenience

from annoy.

erikbern avatar erikbern commented on May 18, 2024

hm still not working – not sure what's going on. let me try again

from annoy.

erikbern avatar erikbern commented on May 18, 2024

try again – had to bump to 1.6.2 :(

from annoy.

dudevil avatar dudevil commented on May 18, 2024

Works great now. Thanks for the quick fix!

from annoy.

piskvorky avatar piskvorky commented on May 18, 2024

That's what I call rapid development! :)

Btw PyPI treats rc1, rc2 tags as proper releases, which pip will ignore when users ask to install (a good option for release checking).

from annoy.

Horace89 avatar Horace89 commented on May 18, 2024

It's working great now! Thanks!

from annoy.

Related Issues (20)

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.