I am getting the following error which I have traced back to the presence of an mlapp file that is located in a subfolder of the matlab_src_dir.
Traceback (most recent call last):
File "c:\git\model\documentation\.venv\lib\site-packages\sphinx\events.py", line 96, in emit
results.append(listener.handler(self.app, *args))
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\matlab.py", line 844, in analyze
mat_types.analyze(app)
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 136, in analyze
recursive_find_all(root)
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 75, in recursive_find_all
o.safe_getmembers()
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 458, in safe_getmembers
value = self.getter(key, None)
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 522, in getter
entity = MatObject.matlabify(".".join([self.package, name]))
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 289, in matlabify
return MatObject.parse_mlappfile(mlappfile, name, path)
File "c:\git\model\documentation\.venv\lib\site-packages\sphinxcontrib\mat_types.py", line 402, in parse_mlappfile
docstring = "\n\n".join(doc)
TypeError: sequence item 0: expected str instance, NoneType found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\git\model\documentation\.venv\lib\site-packages\sphinx\cmd\build.py", line 279, in build_main
app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
File "c:\git\model\documentation\.venv\lib\site-packages\sphinx\application.py", line 262, in __init__
self._init_builder()
File "c:\git\model\documentation\.venv\lib\site-packages\sphinx\application.py", line 335, in _init_builder
self.events.emit('builder-inited')
File "c:\git\model\documentation\.venv\lib\site-packages\sphinx\events.py", line 107, in emit
raise ExtensionError(__("Handler %r for event %r threw an exception") %
sphinx.errors.ExtensionError: Handler <function analyze at 0x000001992BCFF280> for event 'builder-inited' threw an exception (exception: sequence item 0: expected str instance, NoneType found)
Extension error (sphinxcontrib.matlab):
Handler <function analyze at 0x000001992BCFF280> for event 'builder-inited' threw an exception (exception: sequence item 0: expected str instance, NoneType found)
After temporarily removing the mlapp file, the build proceeds without issues.
If I open the mlapp file as a zip and locate the coreProperties.xml and appMetadata.xml files, they have the following content:
I am getting the following error which I have traced back to the presence of an mlapp file that is located in a subfolder of the
matlab_src_dir
.After temporarily removing the mlapp file, the build proceeds without issues.
If I open the mlapp file as a zip and locate the
coreProperties.xml
andappMetadata.xml
files, they have the following content:coreProperties.xml
(some fields redacted):appMetadata.xml
(some fields redacted):Hope this is sufficient!