flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

No Stacktrace, No logs for Errors #226

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Configuring the Clade,as told in the README.txt, on Windows machine.
2.While running the classifier, python classify.py textdir data\socpsy-pages
3.I am getting the following error:
Traceback (most recent call last):
  File "C:\Clade\lib\web\application.py", line 237, in process
    return self.handle()
  File "C:\Clade\lib\web\application.py", line 228, in handle
    return self._delegate(fn, self.fvars, args)
  File "C:\Clade\lib\web\application.py", line 409, in _delegate
    return handle_class(cls)
  File "C:\Clade\lib\web\application.py", line 385, in handle_class
    return tocall(*args)
  File "C:\Clade\server.py", line 133, in GET
    numFound, docs = taxonomy.get_docs_for_category(_solr, term)
  File "C:\Clade\lib\taxonomy.py", line 332, in get_docs_for_category
    return (results.result.numFound, [(doc["doc_id"], doc["title"], doc["score"]) for doc in results])
KeyError: 'doc_id'
127.0.0.1:28284 - - [17/Jul/2013 18:18:09] "HTTP/1.1 GET /ajax/documents" - 500 
Internal Server Error

What is the expected output? What do you see instead?
The classification docs to be load.

What version of the product are you using? On what operating system?
26.Oct.12 - Flax Clade PoC

Please provide any additional information below.
Sometimes, I get this error too:
Traceback (most recent call last):
  File "C:\Clade\lib\web\application.py", line 237, in process
    return self.handle()
  File "C:\Clade\lib\web\application.py", line 228, in handle
    return self._delegate(fn, self.fvars, args)
  File "C:\Clade\lib\web\application.py", line 409, in _delegate
    return handle_class(cls)
  File "C:\Clade\lib\web\application.py", line 385, in handle_class
    return tocall(*args)
  File "C:\Clade\server.py", line 133, in GET
    numFound, docs = taxonomy.get_docs_for_category(_solr, term)
  File "C:\Clade\lib\taxonomy.py", line 331, in get_docs_for_category
    results = query.field_limit(score=True).paginate(rows=10).execute() #FIXME: configurable rows
  File "C:\Clade\lib\sunburnt\search.py", line 599, in execute
    result = self.interface.search(**self.options())
  File "C:\Clade\lib\sunburnt\sunburnt.py", line 212, in search
    return self.schema.parse_response(self.conn.select(params))
  File "C:\Clade\lib\sunburnt\sunburnt.py", line 116, in select
    r, c = self.request(url, **kwargs)
  File "C:\Clade\lib\sunburnt\sunburnt.py", line 33, in request
    return self.http_connection.request(*args, **kwargs)
  File "C:\Clade\httplib2\__init__.py", line 1026, in request
    (response, new_content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "C:\Clade\httplib2\__init__.py", line 854, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:\Clade\httplib2\__init__.py", line 823, in _conn_request
    conn.request(method, request_uri, body, headers)
  File "C:\Python27\Lib\httplib.py", line 958, in request
    self._send_request(method, url, body, headers)
  File "C:\Python27\Lib\httplib.py", line 992, in _send_request
    self.endheaders(body)
  File "C:\Python27\Lib\httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "C:\Python27\Lib\httplib.py", line 814, in _send_output
    self.send(msg)
  File "C:\Python27\Lib\httplib.py", line 790, in send
    self.sock.sendall(data)
  File "C:\Python27\Lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 10053] An established connection was aborted by the software in 
your host machine

Original issue reported on code.google.com by abbas.za...@gmail.com on 17 Jul 2013 at 1:07