Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong version of markupsafe #1

Open
Jesse-Millwood opened this issue Mar 7, 2022 · 0 comments · May be fixed by #2
Open

wrong version of markupsafe #1

Jesse-Millwood opened this issue Mar 7, 2022 · 0 comments · May be fixed by #2

Comments

@Jesse-Millwood
Copy link

I am using this as part of https://github.com/spantaleev/matrix-docker-ansible-deploy.
I configured that ansible setup to use this repository because of the Docker file provided as outlined here: spantaleev/matrix-docker-ansible-deploy#1463 (comment) . I'm using an ARM VPS so I had to configure the ansible setup to do the build as well.

However when running I get this error:

Mar 07 01:29:47 server systemd[1]: Started matrix-registration.
Mar 07 01:29:48 server matrix-registration[631626]: Traceback (most recent call last):
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/bin/matrix-registration", line 5, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from matrix_registration.app import cli
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/matrix_registration/__init__.py", line 1, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from . import api
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/matrix_registration/api.py", line 9, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from flask import (
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 14, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from jinja2 import escape
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from .environment import Environment
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from .defaults import BLOCK_END_STRING
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
Mar 07 01:29:48 server matrix-registration[631626]:   File "/usr/local/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
Mar 07 01:29:48 server matrix-registration[631626]:     from markupsafe import soft_unicode
Mar 07 01:29:48 server matrix-registration[631626]: ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/site-packages/markupsafe/__init__.py)
Mar 07 01:29:48 server systemd[1]: matrix-registration.service: Main process exited, code=exited, status=1/FAILURE
Mar 07 01:29:48 server systemd[1]: matrix-registration.service: Failed with result 'exit-code'.

This is being run in a systemd service with the exec line:

ExecStart=/usr/bin/env docker run --rm --name matrix-registration \
			--log-driver=none \
			--user=997:1002 \
			--cap-drop=ALL \
			--network=matrix \
			--mount type=bind,src=/matrix/matrix-registration/config,dst=/config,ro \
			--mount type=bind,src=/matrix/matrix-registration/data,dst=/data \
			localhost/zeratax/matrix-registration:latest \
			serve

There does seem to be a similar error regarding the markupsafe package here: pallets/markupsafe#284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant