I'm hoping someone can help me with this isse. I upgraded my indivo from 2.0 to develop branch in order to take advantage of smart v0.5 schemas and now I have this problem relating to smart-commons:
Any help would be appreciated.
No handlers could be found for logger "rdflib.term"
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 219, in __call__
self.load_middleware()
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
mod = import_module(mw_module)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/data/indivo_server/indivo/middlewares/authentication.py", line 8, in <module>
from indivo.accesscontrol import security
File "/opt/data/indivo_server/indivo/accesscontrol/__init__.py", line 6, in <module>
from access_rule import AccessRule
File "/opt/data/indivo_server/indivo/accesscontrol/access_rule.py", line 4, in <module>
from indivo.views import *
File "/opt/data/indivo_server/indivo/views/__init__.py", line 24, in <module>
from documents import *
File "/opt/data/indivo_server/indivo/views/documents/__init__.py", line 10, in <module>
from document import *
File "/opt/data/indivo_server/indivo/views/documents/document.py", line 16, in <module>
from indivo.document_processing.document_utils import DocumentUtils
File "/opt/data/indivo_server/indivo/document_processing/__init__.py", line 193, in <module>
loader.import_schemas()
File "/opt/data/indivo_server/indivo/document_processing/__init__.py", line 65, in import_schemas
for schema_name, schema_etree, transform_func in self.discover_schema_dirs():
File "/opt/data/indivo_server/indivo/document_processing/__init__.py", line 125, in discover_schema_dirs
transformation_func = transform_handler(schema_dir)
File "/opt/data/indivo_server/indivo/document_processing/__init__.py", line 163, in _get_transform_from_py
reload(module)
File "/opt/data/indivo_server/indivo/../indivo/schemas/data/core/rdf/transform.py", line 3, in <module>
from indivo.rdf import parser
File "/opt/data/indivo_server/indivo/rdf/parser.py", line 5, in <module>
from .transforms import *
File "/opt/data/indivo_server/indivo/rdf/transforms/__init__.py", line 1, in <module>
from .medication import MedicationTransform
File "/opt/data/indivo_server/indivo/rdf/transforms/medication.py", line 5, in <module>
from .base import BaseRDFTransform
File "/opt/data/indivo_server/indivo/rdf/transforms/base.py", line 4, in <module>
from smart_common.rdf_tools.rdf_ontology import api_types
File "/opt/data/indivo_server/smart_common/rdf_tools/rdf_ontology.py", line 513, in <module>
parse_ontology(f)
File "/opt/data/indivo_server/smart_common/rdf_tools/rdf_ontology.py", line 480, in parse_ontology
m = parse_rdf(f)
File "/opt/data/indivo_server/smart_common/rdf_tools/util.py", line 44, in parse_rdf
model.default_context.parse(data=string, format="n3")
File "build/bdist.linux-x86_64/egg/rdflib/graph.py", line 1035, in parse
parser.parse(source, self, **args)
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 1887, in parse
TurtleParser.parse(self, source, conj_graph, encoding, turtle=False)
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 1858, in parse
p.loadStream(source.getByteStream())
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 422, in loadStream
return self.loadBuf(stream.read()) # Not ideal
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 428, in loadBuf
self.feed(buf)
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 454, in feed
i = self.directiveOrStatement(s, j)
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 477, in directiveOrStatement
return self.checkDot(argstr, j)
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 1147, in checkDot
"expected '.' or '}' or ']' at end of statement")
File "build/bdist.linux-x86_64/egg/rdflib/plugins/parsers/notation3.py", line 1603, in BadSyntax
raise BadSyntax(self._thisDoc, self.lines, argstr, i, msg)
BadSyntax: at line 6 of <>:
Bad syntax (expected '.' or '}' or ']' at end of statement) at ^ in:
"...ms/" >
<!ENTITY..."
[18/Sep/2014 14:35:45] "POST /oauth/internal/session_create HTTP/1.1" 500 59