[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error install mediagoblin using docker
From: |
irene |
Subject: |
Re: Error install mediagoblin using docker |
Date: |
Fri, 05 Mar 2021 04:36:04 +0000 |
March 4, 2021 11:21 PM, "Ben Sturmfels" <ben@sturm.com.au> wrote:
> On Fri, 05 Mar 2021, Jesús E via wrote:
>
> I'm curious about why this failed though, as apart from one failing test
> in the test suite, that image is building successfully for me on a Debian
> Buster base image. I use the following command to build with no local
> build context:
>
> docker build -t mediagoblin-python3 - < Dockerfile-debian-python3-sqlite
>
> Irene, can you please try the above and see if it's any better for you?
> I've made significant updates to this Docker file in the last week, so
> please do a git pull first (Dockerfile was previously referencing an out
> of date personal branch of mine).
>
> Regards,
> Ben
I did the update today before submitting this issue, I have the latest commit
(0c0f966368aa2998ebdd3d17d23af86bacb77646) and it failed when using docker with
debian: buster, I just tried debian: sid and it goes fine, however
# Run the tests.
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
^^ has errors
```
...
=================================== FAILURES ===================================
_________________________ TestAPI.test_can_post_image __________________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_api.py", line 134, in
test_can_post_image
assert data["object"]["fullImage"]["url"].endswith("unknown.jpe")
AssertionError: assert False
+ where False = <built-in method endswith of str object at
0x7f2dc337d570>('unknown.jpe')
+ where <built-in method endswith of str object at 0x7f2dc337d570> =
'http://localhost/mgoblin_media/media_entries/1/unknown.jfif'.endswith
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
_____________________________ test_register_views ______________________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_auth.py", line 84, in
test_register_views
test_app.post(
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 371, in post
return self._gen_request('POST', url, params=params, headers=headers,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 752, in _gen_request
return self.do_request(req, status=status,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 623, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/usr/lib/python3/dist-packages/webob/request.py", line 1309, in send
status, headers, app_iter, exc_info = self.call_application(
File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in
call_application
app_iter = application(self.environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/lint.py",
line 201, in lint_app
iterator = application(environ, start_response_wrapper)
File "/opt/mediagoblin/mediagoblin/app.py", line 346, in __call__
return self.call_backend(environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/Werkzeug-0.16.1-py3.9.egg/werkzeug/middleware/shared_data.py",
line 220, in __call__
return self.app(environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 280, in call_backend
return self._finish_call_backend(request, environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 322, in _finish_call_backend
response = controller(request)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 307, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 368, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/auth/views.py", line 55, in register
if request.method == 'POST' and register_form.validate():
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 318, in validate
return super(Form, self).validate(extra)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 150, in validate
if not field.validate(self, extra):
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 226, in validate
stop_validation = self._run_validation_chain(form, chain)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 246, in _run_validation_chain
validator(form, self)
File "/opt/mediagoblin/mediagoblin/auth/tools.py", line 59, in
_normalize_field
wtforms.validators.Email()(form, field)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/validators.py",
line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
__________________________ test_authentication_views ___________________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_auth.py", line 404, in
test_authentication_views
response = test_app.post(
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 371, in post
return self._gen_request('POST', url, params=params, headers=headers,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 752, in _gen_request
return self.do_request(req, status=status,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 623, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/usr/lib/python3/dist-packages/webob/request.py", line 1309, in send
status, headers, app_iter, exc_info = self.call_application(
File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in
call_application
app_iter = application(self.environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/lint.py",
line 201, in lint_app
iterator = application(environ, start_response_wrapper)
File "/opt/mediagoblin/mediagoblin/app.py", line 346, in __call__
return self.call_backend(environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/Werkzeug-0.16.1-py3.9.egg/werkzeug/middleware/shared_data.py",
line 220, in __call__
return self.app(environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 280, in call_backend
return self._finish_call_backend(request, environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 322, in _finish_call_backend
response = controller(request)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 368, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/auth/views.py", line 94, in login
if login_form.validate():
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 318, in validate
return super(Form, self).validate(extra)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 150, in validate
if not field.validate(self, extra):
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 226, in validate
stop_validation = self._run_validation_chain(form, chain)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 246, in _run_validation_chain
validator(form, self)
File "/opt/mediagoblin/mediagoblin/auth/tools.py", line 59, in
_normalize_field
wtforms.validators.Email()(form, field)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/validators.py",
line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
----------------------------- Captured stderr call -----------------------------
WARNI [mediagoblin.auth.views] Failed login attempt from None
WARNI [mediagoblin.auth.views] Failed login attempt from None
WARNI [mediagoblin.auth.views] Failed login attempt from None
WARNI [mediagoblin.auth.views] Failed login attempt from None
------------------------------ Captured log call -------------------------------
WARNING mediagoblin.auth.views:views.py:114 Failed login attempt from None
WARNING mediagoblin.auth.views:views.py:114 Failed login attempt from None
WARNING mediagoblin.auth.views:views.py:114 Failed login attempt from None
WARNING mediagoblin.auth.views:views.py:114 Failed login attempt from None
________________________ TestUserEdit.test_email_change ________________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_edit.py", line 119, in
test_email_change
test_app.post(
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 371, in post
return self._gen_request('POST', url, params=params, headers=headers,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 752, in _gen_request
return self.do_request(req, status=status,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 623, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/usr/lib/python3/dist-packages/webob/request.py", line 1309, in send
status, headers, app_iter, exc_info = self.call_application(
File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in
call_application
app_iter = application(self.environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/lint.py",
line 201, in lint_app
iterator = application(environ, start_response_wrapper)
File "/opt/mediagoblin/mediagoblin/app.py", line 346, in __call__
return self.call_backend(environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/Werkzeug-0.16.1-py3.9.egg/werkzeug/middleware/shared_data.py",
line 220, in __call__
return self.app(environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 280, in call_backend
return self._finish_call_backend(request, environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 322, in _finish_call_backend
response = controller(request)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 47, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 74, in
new_controller_func
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/edit/views.py", line 473, in change_email
if request.method == 'POST' and form.validate():
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 318, in validate
return super(Form, self).validate(extra)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 150, in validate
if not field.validate(self, extra):
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 226, in validate
stop_validation = self._run_validation_chain(form, chain)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 246, in _run_validation_chain
validator(form, self)
File "/opt/mediagoblin/mediagoblin/auth/tools.py", line 59, in
_normalize_field
wtforms.validators.Email()(form, field)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/validators.py",
line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
_____________________ TestMetaDataEdit.test_edit_metadata ______________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_edit.py", line 261, in
test_edit_metadata
assert context['form'].errors['media_metadata'][0]['identifier'][0] ==
expected
KeyError: 'identifier'
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> a98c1a320e88,
Image media type initial migration
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 071abb33d1da,
OpenID plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
_________________ TestPersonaPlugin.test_authentication_views __________________
Traceback (most recent call last):
File "/opt/mediagoblin/mediagoblin/tests/test_persona.py", line 153, in
test_authentication_views
_test_registration()
File "/usr/lib/python3.9/unittest/mock.py", line 1337, in patched
return func(*newargs, **newkeywargs)
File "/opt/mediagoblin/mediagoblin/tests/test_persona.py", line 92, in
_test_registration
res = persona_plugin_app.post(
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 371, in post
return self._gen_request('POST', url, params=params, headers=headers,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 752, in _gen_request
return self.do_request(req, status=status,
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/app.py",
line 623, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/usr/lib/python3/dist-packages/webob/request.py", line 1309, in send
status, headers, app_iter, exc_info = self.call_application(
File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in
call_application
app_iter = application(self.environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WebTest-2.0.35-py3.9.egg/webtest/lint.py",
line 201, in lint_app
iterator = application(environ, start_response_wrapper)
File "/opt/mediagoblin/mediagoblin/app.py", line 346, in __call__
return self.call_backend(environ, start_response)
File
"/opt/mediagoblin/lib/python3.9/site-packages/Werkzeug-0.16.1-py3.9.egg/werkzeug/middleware/shared_data.py",
line 220, in __call__
return self.app(environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 280, in call_backend
return self._finish_call_backend(request, environ, start_response)
File "/opt/mediagoblin/mediagoblin/app.py", line 322, in _finish_call_backend
response = controller(request)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 307, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/decorators.py", line 368, in wrapper
return controller(request, *args, **kwargs)
File "/opt/mediagoblin/mediagoblin/plugins/persona/views.py", line 104, in
register
if register_form.validate():
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 318, in validate
return super(Form, self).validate(extra)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/form.py",
line 150, in validate
if not field.validate(self, extra):
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 226, in validate
stop_validation = self._run_validation_chain(form, chain)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/fields/core.py",
line 246, in _run_validation_chain
validator(form, self)
File "/opt/mediagoblin/mediagoblin/auth/tools.py", line 59, in
_normalize_field
wtforms.validators.Email()(form, field)
File
"/opt/mediagoblin/lib/python3.9/site-packages/WTForms-2.3.3-py3.9.egg/wtforms/validators.py",
line 332, in __init__
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
---------------------------- Captured stdout setup -----------------------------
Laying foundations for __main__:
+ Laying foundations for Privilege table
---------------------------- Captured stderr setup -----------------------------
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
revision
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> 101510e3a713,
#5382 Removes graveyard items from collections
INFO [alembic.runtime.migration] Running upgrade 101510e3a713 -> 8429e33fdf7,
Remove the Graveyard objects from CommentNotification objects
INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 -> 4066b9f8b84a,
use_comment_link_ids_notifications
INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a -> 3145accb8fe3,
remove tombstone comment wrappers
INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 -> 228916769bd2,
ensure Report.object_id is nullable
INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 -> c7d4840a5592,
Persona plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> afd3d1da5e29,
Subtitle plugin initial migration
INFO [alembic.runtime.migration] Running upgrade 228916769bd2 -> cc3651803714,
add main transcoding progress column to MediaEntry
=============================== warnings summary ===============================
lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413
lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413
/opt/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413:
DeprecationWarning: invalid escape sequence \?
lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577
lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577
/opt/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577:
SyntaxWarning: "is" with a literal. Did you mean "=="?
lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/canvas.py:12
/opt/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/canvas.py:12:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop
working
from collections import MutableSequence, deque
lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/schedules.py:8
/opt/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/schedules.py:8:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop
working
from collections import Iterable, namedtuple
mediagoblin/tests/test_modelmethods.py:139
/opt/mediagoblin/mediagoblin/tests/test_modelmethods.py:139:
DeprecationWarning: invalid escape sequence \
"""
<unknown>:139
<unknown>:139
<unknown>:139
<unknown>:139: DeprecationWarning: invalid escape sequence \
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED mediagoblin/tests/test_api.py::TestAPI::test_can_post_image
FAILED mediagoblin/tests/test_auth.py::test_register_views
FAILED mediagoblin/tests/test_auth.py::test_authentication_views
FAILED mediagoblin/tests/test_edit.py::TestUserEdit::test_email_change
FAILED mediagoblin/tests/test_edit.py::TestMetaDataEdit::test_edit_metadata
FAILED
mediagoblin/tests/test_persona.py::TestPersonaPlugin::test_authentication_views
====== 6 failed, 172 passed, 6 skipped, 10 warnings in 241.39s (0:04:01) =======
The command '/bin/sh -c ./bin/python -m pytest ./mediagoblin/tests --boxed'
returned a non-zero code: 1
```
I had to deactivate the test so that the image can be built, after what Jesus
E. answered me, only the tests fail