Traceback (most recent call last):
File "/usr/local/bin/sandbox-storage", line 5, in <module>
from sandbox_storage.__main__ import run
File "/usr/local/lib/python3.9/site-packages/sandbox_storage/__main__.py", line 10, in <module>
app = get_app()
File "/usr/local/lib/python3.9/site-packages/sandbox_storage/api.py", line 94, in get_app
pyramid_config.scan(".")
File "/usr/local/lib/python3.9/site-packages/pyramid/config/__init__.py", line 799, in __exit__
self.commit()
File "/usr/local/lib/python3.9/site-packages/pyramid/config/actions.py", line 151, in commit
self.action_state.execute_actions(introspector=self.introspector)
File "/usr/local/lib/python3.9/site-packages/pyramid/config/actions.py", line 311, in execute_actions
reraise(
File "/usr/local/lib/python3.9/site-packages/pyramid/util.py", line 732, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.9/site-packages/pyramid/config/actions.py", line 307, in execute_actions
callable(*args, **kw)
File "/usr/local/lib/python3.9/site-packages/pyramid_openapi3/__init__.py", line 201, in register
spec_dict = read_yaml_file(filepath)
File "/usr/local/lib/python3.9/site-packages/openapi_spec_validator/schemas.py", line 22, in read_yaml_file
with open(path) as fh:
pyramid.exceptions.ConfigurationExecutionError: <class 'FileNotFoundError'>: [Errno 2] No such file or directory: '/workspace/sandbox_storage/openapi.yaml'
in:
Line 82 of file /usr/local/lib/python3.9/site-packages/sandbox_storage/api.py:
pyramid_config.pyramid_openapi3_spec(
Static file must somehow be included with setuptools: https://stackoverflow.com/questions/7522250/how-to-include-package-data-with-setuptools-distutils