Error starting docker container
Closed this issue · 3 comments
123None commented
I am unable to start the docker container.
It logs the following error:
docker logs f4a77ab6deb2286015d7809da8923df0b48bcddf671350daa6dfd27d0087ab10
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/site-packages/pb/__main__.py", line 35, in <module>
app = create_app()
File "/usr/local/lib/python3.6/site-packages/pb/pb.py", line 81, in create_app
app.url_map.update()
File "/usr/local/lib/python3.6/site-packages/werkzeug/routing.py", line 1358, in update
self._rules.sort(key=lambda x: x.match_compare_key())
File "/usr/local/lib/python3.6/site-packages/werkzeug/routing.py", line 1358, in <lambda>
self._rules.sort(key=lambda x: x.match_compare_key())
File "/usr/local/lib/python3.6/site-packages/pb/routing.py", line 32, in match_compare_key
return not bool(self.namespace_only), bool(self.arguments), -len(self._weights), self._weights
AttributeError: 'Rule' object has no attribute '_weights'
I see the same if I manually try to start the app.
~/pb # python3 -m pb
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/pb/pb/__main__.py", line 35, in <module>
app = create_app()
File "/root/pb/pb/pb.py", line 81, in create_app
app.url_map.update()
File "/usr/local/lib/python3.5/dist-packages/werkzeug/routing.py", line 1358, in update
self._rules.sort(key=lambda x: x.match_compare_key())
File "/usr/local/lib/python3.5/dist-packages/werkzeug/routing.py", line 1358, in <lambda>
self._rules.sort(key=lambda x: x.match_compare_key())
File "/root/pb/pb/routing.py", line 32, in match_compare_key
return not bool(self.namespace_only), bool(self.arguments), -len(self._weights), self._weights
AttributeError: 'Rule' object has no attribute '_weights'
How can I fix that?
buhman commented
Also, should actually probably just pin the versions used, so that docker containers don't randomly break.