Skip to content

Failed

nose.failure.Failure.runTest (from nosetests)

Failing for the past 1 build (Since Failed#84 )
Took 0 ms.

Error Message

Cannot infer number of levels from empty list
-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Creating document list from TXT files ...
preprocessing: DEBUG: 0 entries in document list.
preprocessing: INFO: Creating document labels ...
preprocessing: DEBUG: Document labels available
testing: INFO: Length of id_types: 0
testing: INFO: Length of doc_ids: 0
--------------------- >> end captured logging << ---------------------

Stacktrace

  File "/usr/lib/python3.5/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.5/unittest/case.py", line 601, in run
    testMethod()
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/testing.py", line 37, in <module>
    sparse_bow = pre.create_mm(doc_labels, doc_tokens, id_types, doc_ids)
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 406, in create_mm
    sparse_index = _create_sparse_index(largecounter)
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 381, in _create_sparse_index
    sparse_index = pd.MultiIndex.from_tuples(tuples, names = ["doc_id", "token_id"])
  File "/mnt/data/jenkins/shiningpanda/jobs/62c67c92/virtualenvs/d41d8cd9/lib/python3.5/site-packages/pandas/indexes/multi.py", line 973, in from_tuples
    raise TypeError('Cannot infer number of levels from empty list')
Cannot infer number of levels from empty list
-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Creating document list from TXT files ...
preprocessing: DEBUG: 0 entries in document list.
preprocessing: INFO: Creating document labels ...
preprocessing: DEBUG: Document labels available
testing: INFO: Length of id_types: 0
testing: INFO: Length of doc_ids: 0
--------------------- >> end captured logging << ---------------------