Error on projection
ludovic-carre opened this issue · 0 comments
ludovic-carre commented
Trying to project posts give the following error:
Internal Server Error: /dictionary/I:/tables/
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 33, in t_parse
return self.parser.parse(s, lexer=self.lexer)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 43, in p_error
raise InvalidScript(msg)
ieml.exceptions.InvalidScript: Invalid arguments to create a script. Syntax error at ',' (1, 27)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py", line 86, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py", line 267, in wrapper
ieml.dictionary.term(pk)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/tools.py", line 15, in term
dictionary = Dictionary()
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 47, in __call__
cls._instance = load_dictionary_from_cache(version)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/version.py", line 290, in load_dictionary_from_cache
return pickle.load(fp)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 182, in __setstate__
self._populate(scripts=state['scripts'], relations=state['relations'])
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 146, in _populate
root = script(root)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/operator.py", line 18, in script
s = ScriptParser().parse(arg)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 35, in t_parse
raise CannotParse(s, str(e))
ieml.exceptions.CannotParse: Unable to parse the following string 'n.-S:.U:.-'B:.-'S:.-',M:.-',M:.-',_'. Invalid arguments to create a script. Syntax error at ',' (1, 27)
Internal Server Error: /dictionary/I:/relations/
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 33, in t_parse
return self.parser.parse(s, lexer=self.lexer)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 43, in p_error
raise InvalidScript(msg)
ieml.exceptions.InvalidScript: Invalid arguments to create a script. Syntax error at 'n' (1, 12)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py", line 86, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py", line 267, in wrapper
ieml.dictionary.term(pk)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/tools.py", line 15, in term
dictionary = Dictionary()
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 47, in __call__
cls._instance = load_dictionary_from_cache(version)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/version.py", line 290, in load_dictionary_from_cache
return pickle.load(fp)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 182, in __setstate__
self._populate(scripts=state['scripts'], relations=state['relations'])
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 146, in _populate
root = script(root)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/operator.py", line 18, in script
s = ScriptParser().parse(arg)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 35, in t_parse
raise CannotParse(s, str(e))
ieml.exceptions.CannotParse: Unable to parse the following string 'f.o.-f.o.-',n.i.-f.i.-',x.-O:.-',_M:.-',_;+f.o.-f.o.-',n.i.-f.i.-',x.-O:.-',_E:F:.-',_;'. Invalid arguments to create a script. Syntax error at 'n' (1, 12)
Internal Server Error: /dictionary/
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 33, in t_parse
return self.parser.parse(s, lexer=self.lexer)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 43, in p_error
raise InvalidScript(msg)
ieml.exceptions.InvalidScript: Invalid arguments to create a script. Syntax error at '.' (1, 13)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py", line 86, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py", line 292, in list
data = serializers.TermSerializer(Dictionary(), many=True).data
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 47, in __call__
cls._instance = load_dictionary_from_cache(version)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/version.py", line 290, in load_dictionary_from_cache
return pickle.load(fp)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 182, in __setstate__
self._populate(scripts=state['scripts'], relations=state['relations'])
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 146, in _populate
root = script(root)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/operator.py", line 18, in script
s = ScriptParser().parse(arg)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/script/parser/parser.py", line 35, in t_parse
raise CannotParse(s, str(e))
ieml.exceptions.CannotParse: Unable to parse the following string 'f.o.-f.o.-',n.i.-f.i.-',x.-O:.-',_M:.-',_;+f.o.-f.o.-',n.i.-f.i.-',x.-O:.-',_E:F:.-',_;'. Invalid arguments to create a script. Syntax error at '.' (1, 13)
[22/Aug/2017 14:38:31] "GET /dictionary/I%3A/tables/ HTTP/1.1" 500 17000
[22/Aug/2017 14:38:31] "GET /dictionary/ HTTP/1.1" 500 16978
[22/Aug/2017 14:38:31] "GET /dictionary/I%3A/relations/ HTTP/1.1" 500 17116
Internal Server Error: /dictionary/projection/
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py", line 86, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py", line 386, in projection
usl = ieml.usl.tools.usl(post.usl.ieml)
File "/usr/lib/python3.6/site-packages/ieml/usl/tools.py", line 21, in usl
return USLParser().parse(arg)
File "/usr/lib/python3.6/site-packages/ieml/usl/parser/parser.py", line 28, in parse
return self.parser.parse(s, lexer=self.lexer)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 1118, in parseopt_notrack
p.callable(pslice)
File "/usr/lib/python3.6/site-packages/ieml/usl/parser/parser.py", line 42, in p_usl
p[0] = Usl(IEMLParser().parse(p[1]))
File "/usr/lib/python3.6/site-packages/ieml/syntax/parser/parser.py", line 53, in parse
return self.parser.parse(s, lexer=self.lexer)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3.6/site-packages/ply/yacc.py", line 1118, in parseopt_notrack
p.callable(pslice)
File "/usr/lib/python3.6/site-packages/ieml/syntax/parser/parser.py", line 97, in p_script
p[0] = _build(term(p[1]))
File "/usr/lib/python3.6/site-packages/ieml/dictionary/tools.py", line 15, in term
dictionary = Dictionary()
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 47, in __call__
cls._instance = load_dictionary_from_cache(version)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/version.py", line 290, in load_dictionary_from_cache
return pickle.load(fp)
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 182, in __setstate__
self._populate(scripts=state['scripts'], relations=state['relations'])
File "/usr/lib/python3.6/site-packages/ieml/dictionary/dictionary.py", line 154, in _populate
roots[root_ss[s.singular_sequences[0]]].append(s)