Tested with Python 3.9, but no 3.9-specific issues popped up
Deployment scripts fail
Backend fails due to cairo
2021-01-20 12:31:43,948 - INFO - shapeflow.server - serving on http://127.0.0.1:7951
2021-01-20 12:31:44,554 - INFO - shapeflow.server - opening a browser window...
ERROR:shapeflow.server:Exception on /favicon.ico [GET]
Traceback (most recent call last):
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 94, in _get_file
return self.get_file(file)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 175, in get_file
raise FileNotFoundError
FileNotFoundError
2021-01-20 12:31:45,512 - WARNING - waitress.queue - Task queue depth is 1
2021-01-20 12:31:45,583 - ERROR - shapeflow.server - 'get_settings' - OSError: no library called "cairo" was found no library called "libcairo-2" was found cannot load library 'libcairo.so.2': dlopen(libcairo.so.2, 2): image not found cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 2): image not found cannot load library 'libcairo-2.dll': dlopen(libcairo-2.dll, 2): image not found
2021-01-20 12:31:45,583 - ERROR - shapeflow.server - 'stop_events' - ImportError: cannot import name 'load' from 'shapeflow.main' (/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/main.py)
2021-01-20 12:31:45,584 - ERROR - shapeflow.server - 'schemas' - ImportError: cannot import name 'load' from 'shapeflow.main' (/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/main.py)
2021-01-20 12:31:45,584 - ERROR - shapeflow.server - 'va/state' - ImportError: cannot import name 'load' from 'shapeflow.main' (/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/main.py)
ERROR:shapeflow.server:Exception on /api/get_settings [GET]
Traceback (most recent call last):
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 98, in _call_api
return self.call_api(address)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 245, in call_api
raise e
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 224, in call_api
result = self.api.dispatch(address, **kwargs)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 285, in api
from shapeflow.main import load
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/main.py", line 21, in <module>
from OnionSVG import check_svg
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/OnionSVG/__init__.py", line 2, in <module>
import cairosvg as csvg
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/cairosvg/__init__.py", line 26, in <module>
from . import surface # noqa isort:skip
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/cairosvg/surface.py", line 9, in <module>
import cairocffi as cairo
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/cairocffi/__init__.py", line 48, in <module>
cairo = dlopen(
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/cairocffi/__init__.py", line 45, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': dlopen(libcairo.so.2, 2): image not found
cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 2): image not found
cannot load library 'libcairo-2.dll': dlopen(libcairo-2.dll, 2): image not found
ERROR:shapeflow.server:Exception on /api/stop_events [POST]
Traceback (most recent call last):
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/yura/temp/test-shapeflow/shapeflow/.venv/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 98, in _call_api
return self.call_api(address)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 245, in call_api
raise e
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 224, in call_api
result = self.api.dispatch(address, **kwargs)
File "/Users/yura/temp/test-shapeflow/shapeflow/shapeflow/server.py", line 285, in api
from shapeflow.main import load
...
cairo
brew install cairo
, backend fails with