Traceback (most recent call last):


 "rpi.py", line 316, in <module>

with picamera.PiCamera(resolution='VGA', framerate=30) as camera:


 "/usr/local/lib/python3.4/dist-packages/picamera/camera.py", line 433, in __init__

self._init_preview()


 "/usr/local/lib/python3.4/dist-packages/picamera/camera.py", line 513, in _init_preview

self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])


 "/usr/local/lib/python3.4/dist-packages/picamera/renderers.py", line 558, in __init__

self.renderer.inputs[0].connect(source).enable()


 "/usr/local/lib/python3.4/dist-packages/picamera/mmalobj.py", line 2212, in enable

prefix="Failed to enable connection")


 "/usr/local/lib/python3.4/dist-packages/picamera/exc.py", line 184, in mmal_check

raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources`

Traceback (most recent call last):


 "...\lib\runpy.py", line 194, in _run_module_as_main

return _run_code(code, main_globals, None,


 "...\lib\runpy.py", line 87, in _run_code

exec(code, run_globals)


 "...\lib\site-packages\spacy\__main__.py", line 4, in <module>

setup_cli()


 "...\lib\site-packages\spacy\cli\_util.py", line 65, in setup_cli

command(prog_name=COMMAND)


 "...\lib\site-packages\click\core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "...\lib\site-packages\click\core.py", line 782, in main

rv = self.invoke(ctx)


 "...\lib\site-packages\click\core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "...\lib\site-packages\click\core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "...\lib\site-packages\click\core.py", line 610, in invoke

return callback(*args, **kwargs)


 "...\lib\site-packages\typer\main.py", line 497, in wrapper

return callback(**use_params)
# type: ignore


 "...\lib\site-packages\spacy\cli\train.py", line 56, in train_cli

nlp = init_nlp(config, use_gpu=use_gpu)


 "...\lib\site-packages\spacy\training\initialize.py", line 51, in init_nlp

nlp.initialize(lambda: train_corpus(nlp), sgd=optimizer)


 "...\lib\site-packages\spacy\language.py", line 1232, in initialize

proc.initialize(get_examples, nlp=self, **p_settings)


 "...\lib\site-packages\spacy\pipeline\textcat.py", line 326, in initialize

validate_get_examples(get_examples, "TextCategorizer.initialize")


 "spacy\training\example.pyx", line 62, in spacy.training.example.validate_get_examples


 "spacy\training\example.pyx", line 41, in spacy.training.example.validate_examples


 "...\lib\site-packages\spacy\training\corpus.py", line 131, in __call__

for real_eg in examples:


 "...\lib\site-packages\spacy\training\corpus.py", line 153, in make_examples

for reference in reference_docs:


 "...\lib\site-packages\spacy\training\corpus.py", line 188, in read_docbin

for doc in docs:


 "...\lib\site-packages\spacy\tokens\_serialize.py", line 135, in get_docs

doc.user_data.update(user_data)
TypeError: 'NoneType' object is not iterable
