#719: BibClassify: rdflib should be optional dependency
-------------------------+--------------------
 Reporter:  simko        |      Owner:  rchyla
     Type:  defect       |     Status:  new
 Priority:  major        |  Milestone:  v1.0
Component:  BibClassify  |    Version:
 Keywords:               |
-------------------------+--------------------
 The `rdflib` dependency is optional in the INSTALL file; there are Invenio
 installations that may not want to run BibClassify.  However, after commit
 [62eaad18a0dbd19fa23ca12549f4f1dcf400c335], the `rdflib` dependency is
 hard in the code, so stuff like this happens:

 {{{
 Traceback (most recent call last):
 File "/opt/invenio/bin/inveniocfg", line 33, in ?
 main()
 File "/usr/lib64/python2.4/site-packages/invenio/inveniocfg.py", line
 1172, in main
 cli_cmd_run_unit_tests(conf)
 File "/usr/lib64/python2.4/site-packages/invenio/inveniocfg.py", line 728,
 in cli_cmd_run_unit_tests
 build_and_run_unit_test_suite()
 File "/usr/lib64/python2.4/site-packages/invenio/testutils.py", line 334,
 in build_and_run_unit_test_suite
 module = __import__('invenio.' + base, globals(), locals(),
 ['TEST_SUITE'])
 File "/usr/lib64/python2.4/site-packages/invenio/bibclassify_tests.py",
 line 45, in ?
 import bibclassify_engine
 File "/usr/lib64/python2.4/site-packages/invenio/bibclassify_engine.py",
 line 50, in ?
 import bibclassify_ontology_reader as reader
 File "/usr/lib64/python2.4/site-
 packages/invenio/bibclassify_ontology_reader.py", line 46, in ?
 import rdflib
 ImportError: No module named rdflib
 }}}

 The dependency on `rdflib` should be made optional again.

-- 
Ticket URL: <http://invenio-software.org/ticket/719>
Invenio <http://invenio-software.org>

Reply via email to