This is my log in macos:
(.venv-beta) jacobo@lola prodigy rel.manual test en_core_web_sm ./prodigy_relations_annot_output.json --label SUBJECT,OBJECT
Using 2 label(s): SUBJECT, OBJECT
Starting the web server at http://localhost:8080 ...
Open the app in your browser and start annotating!
Task exception was never retrieved
future: <Task finished coro=<RequestResponseCycle.run_asgi() done, defined at /Users/jacobo/.venv-beta/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py:383> exception=ValueError('Trailing data')>
Traceback (most recent call last):
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 388, in run_asgi
self.logger.error(msg, exc_info=exc)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/init.py", line 1407, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/init.py", line 1514, in _log
self.handle(record)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/init.py", line 1523, in handle
if (not self.disabled) and self.filter(record):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/init.py", line 751, in filter
result = f.filter(record)
File "cython_src/prodigy/util.pyx", line 120, in prodigy.util.ServerErrorFilter.filter
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 385, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in call
return await self.app(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/fastapi/applications.py", line 140, in call
await super().call(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/applications.py", line 134, in call
await self.error_middleware(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/errors.py", line 178, in call
raise exc from None
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/errors.py", line 156, in call
await self.app(scope, receive, _send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/cors.py", line 140, in simple_response
await self.app(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/base.py", line 25, in call
response = await self.dispatch_func(request, self.call_next)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/prodigy/app.py", line 198, in reset_db_middleware
response = await call_next(request)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/base.py", line 45, in call_next
task.result()
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/middleware/base.py", line 38, in coro
await self.app(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/exceptions.py", line 73, in call
raise exc from None
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/exceptions.py", line 62, in call
await self.app(scope, receive, sender)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/routing.py", line 590, in call
await route(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/routing.py", line 208, in call
await self.app(scope, receive, send)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/routing.py", line 41, in app
response = await func(request)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/fastapi/routing.py", line 129, in app
raw_response = await run_in_threadpool(dependant.call, **values)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/starlette/concurrency.py", line 25, in run_in_threadpool
return await loop.run_in_executor(None, func, *args)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/prodigy/app.py", line 418, in get_session_questions
return _shared_get_questions(req.session_id, excludes=req.excludes)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/prodigy/app.py", line 389, in _shared_get_questions
tasks = controller.get_questions(session_id=session_id, excludes=excludes)
File "cython_src/prodigy/core.pyx", line 160, in prodigy.core.Controller.get_questions
File "cython_src/prodigy/components/feeds.pyx", line 68, in prodigy.components.feeds.SharedFeed.get_questions
File "cython_src/prodigy/components/feeds.pyx", line 73, in prodigy.components.feeds.SharedFeed.get_next_batch
File "cython_src/prodigy/components/feeds.pyx", line 169, in prodigy.components.feeds.RepeatingFeed.get_session_stream
File "cython_src/prodigy/components/feeds.pyx", line 135, in prodigy.components.feeds.SessionFeed.validate_stream
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/toolz/itertoolz.py", line 376, in first
return next(iter(seq))
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/prodigy/recipes/rel.py", line 135, in preprocess_stream
for doc, eg in nlp.pipe(data_tuples, as_tuples=True):
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/language.py", line 778, in pipe
for doc, context in izip(docs, contexts):
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/language.py", line 819, in pipe
for doc in docs:
File "nn_parser.pyx", line 248, in pipe
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/util.py", line 481, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "nn_parser.pyx", line 248, in pipe
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/util.py", line 481, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "pipes.pyx", line 401, in pipe
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/util.py", line 481, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/language.py", line 804, in
docs = (self.make_doc(text) for text in texts)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/spacy/language.py", line 769, in
texts = (tc[0] for tc in text_context1)
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/prodigy/recipes/rel.py", line 133, in
data_tuples = ((eg["text"], copy.deepcopy(eg)) for eg in stream)
File "cython_src/prodigy/components/filters.pyx", line 37, in filter_duplicates
File "cython_src/prodigy/components/filters.pyx", line 13, in filter_empty
File "cython_src/prodigy/components/loaders.pyx", line 24, in _rehash_stream
File "cython_src/prodigy/components/loaders.pyx", line 150, in JSON
File "/Users/jacobo/.venv-beta/lib/python3.7/site-packages/srsly/_json_api.py", line 38, in json_loads
return ujson.loads(data)
ValueError: Trailing data