Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib seems to be broken #15

Open
phdowling opened this issue Aug 30, 2016 · 1 comment
Open

lib seems to be broken #15

phdowling opened this issue Aug 30, 2016 · 1 comment

Comments

@phdowling
Copy link

phdowling commented Aug 30, 2016

I'm trying out this simple example:

>>> import spotlight
>>> SPOTLIGHT_URL = "http://spotlight.sztaki.hu:2222/rest/annotate"
>>> annotations = spotlight.annotate(SPOTLIGHT_URL, "President Obama", confidence=0.4, support=20)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/spotlight/__init__.py", line 161, in annotate
    response.raise_for_status()
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 840, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://spotlight.sztaki.hu:2222/rest/annotate

The same happens for my own installation of spotlight. Are we sending out an incompatible request?

@originell
Copy link
Contributor

Maintenance of this repository has stopped. You can find a new, maintained, version at https://github.com/aolieman/pyspotlight

that might also fix your bug ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants