jsocol / jsocol/sphinxapi

AssertionError

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
23
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I did not get how to use this, Can you please give any documentation, I have implement sphinx search in php now i am going to implement this in python but geting error

python3

import sphinxapi

client = sphinxapi.SphinxClient()

client.SetServer('127.0.0.1',9312)

client.Query("english","language_index")

geting error
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.4/dist-packages/sphinxapi/init.py", line 579, in Query
assert (len(self._reqs) == 0)
AssertionError

Please can anyone help me to sort this

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sphinxapi/init.py at Query, especially the assertion involving _reqs, and reproduce the Python 3.4 snippet against the configured Sphinx server. Determine whether the reported call or client state causes the AssertionError; done should include a confirmed explanation or correction and usable documentation for the Python client.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.