[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: HELP! Configuration: dbupdate error
From: |
classroom |
Subject: |
RE: HELP! Configuration: dbupdate error |
Date: |
Fri, 22 Nov 2019 15:09:02 +0100 |
Hi Boris,
I used Python3 as you suggested. Compiling went fine after that. Yet dbupdate
is producing new errors:
(mediagoblin) mediagoblin@lms:/srv/*.*.*/mediagoblin$ ./bin/gmg dbupdate
Traceback (most recent call last):
File "./bin/gmg", line 10, in <module>
sys.exit(main_cli())
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/gmg_commands/__init__.py",
line 111, in main_cli
setup_func = import_component(command_struct['setup'])
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/tools/common.py",
line 34, in import_component
__import__(module_name)
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/gmg_commands/shell.py",
line 21, in <module>
from mediagoblin.gmg_commands import util as commands_util
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/gmg_commands/util.py",
line 18, in <module>
from mediagoblin import app
File "/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/app.py",
line 30, in <module>
from mediagoblin.db.util import check_db_up_to_date
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/db/util.py",
line 20, in <module>
from mediagoblin.db.models import MediaEntry, Tag, MediaTag, Collection
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/db/models.py",
line 40, in <module>
from mediagoblin.db.mixin import UserMixin, MediaEntryMixin, \
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/db/mixin.py",
line 40, in <module>
from mediagoblin.tools.text import cleaned_markdown_conversion
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/tools/text.py",
line 20, in <module>
from lxml.html.clean import Cleaner
ModuleNotFoundError: No module named 'lxml'
After 'pip install lxml' a new error occurs:
(mediagoblin) mediagoblin@lms:/srv/*.*.*/mediagoblin$ ./bin/gmg dbupdate
Traceback (most recent call last):
File "./bin/gmg", line 10, in <module>
sys.exit(main_cli())
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/gmg_commands/__init__.py",
line 111, in main_cli
setup_func = import_component(command_struct['setup'])
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/tools/common.py",
line 34, in import_component
__import__(module_name)
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/gmg_commands/reprocess.py",
line 25, in <module>
from mediagoblin.submit.lib import run_process_media
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/submit/lib.py",
line 32, in <module>
from mediagoblin.processing.task import ProcessMedia
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/mediagoblin/processing/task.py",
line 176, in <module>
tasks.register(ProcessMedia)
File
"/srv/*.*.*/mediagoblin/lib/python3.7/site-packages/celery/app/registry.py",
line 32, in register
type(task).__name__))
celery.exceptions.InvalidTaskError: Task class 'type' must specify .name
attribute
Any suggestions?
______________________________________________________________________________________________________________
Hi Boris,
Thank you for your help! Before configuration I set to default and checked
Python as v 3.7 through 'update-alternatives --config python'.
I am confused...
Regards,
Peter
-----Oorspronkelijk bericht-----
Van: Mediagoblin-devel <mediagoblin-devel-bounces+classroom=address@hidden>
Namens address@hidden
Verzonden: zondag 10 november 2019 18:00
Aan: address@hidden
Onderwerp: Mediagoblin-devel Digest, Vol 4, Issue 2
Send Mediagoblin-devel mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/mediagoblin-devel
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific than "Re:
Contents of Mediagoblin-devel digest..."
Today's Topics:
1. Re: Configuration: gmg dbupdate error (Boris Bobrov)
----------------------------------------------------------------------
Message: 1
Date: Sat, 9 Nov 2019 18:10:39 +0100
From: Boris Bobrov <address@hidden>
To: address@hidden
Subject: Re: Configuration: gmg dbupdate error
Message-ID: <address@hidden>
Content-Type: text/plain; charset=windows-1252
Hi,
It seems that you must use python3 instead of python2.
It might be a good idea to disable all our python2-related things at all.
On 09.11.2019 17:00, Peter van Bussel wrote:
> Dear Alll,
>
>
>
> I am new to MediaGoblin. Configuration seemed to have gone fine untill
> starting the database (Postgresql).
>
>
>
> mediagoblin@lms:/srv/*.*.*/mediagoblin$ ./bin/gmg dbupdate
>
> Traceback (most recent call last):
>
> File "./bin/gmg", line 11, in <module>
>
> load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
>
> File "/srv/*.*.*/mediagoblin/mediagoblin/gmg_commands/__init__.py",
> line 111, in main_cli
>
> setup_func = import_component(command_struct['setup'])
>
> File "/srv/*.*.*/mediagoblin/mediagoblin/tools/common.py", line 34,
> in import_component
>
> __import__(module_name)
>
> File
> "/srv/*.*.*/mediagoblin/mediagoblin/gmg_commands/batchaddmedia.py",
> line 33, in <module>
>
> from mediagoblin.tools.metadata import compact_and_validate
>
> File "/srv/*.*.*/mediagoblin/mediagoblin/tools/metadata.py", line
> 27, in <module>
>
> from jsonschema import validate, FormatChecker,
> draft4_format_checker
>
> File
> "/srv/*.*.*/mediagoblin/local/lib/python2.7/site-packages/jsonschema-3
> .1.1-py2.7.egg/jsonschema/__init__.py",
> line 31, in <module>
>
> import importlib_metadata
>
> File
> "/srv/*.*.*/mediagoblin/local/lib/python2.7/site-packages/importlib_me
> tadata-0.23-py2.7.egg/importlib_metadata/__init__.py",
> line 9, in <module>
>
> import zipp
>
> File
> "/srv/*.*.*/mediagoblin/local/lib/python2.7/site-packages/zipp-0.6.0-p
> y2.7.egg/zipp.py",
> line 12, in <module>
>
> import more_itertools
>
> File "build/bdist.linux-x86_64/egg/more_itertools/__init__.py", line
> 1, in <module>
>
> File
> "/srv/*.*.*/mediagoblin/local/lib/python2.7/site-packages/more_itertoo
> ls-7.2.0-py2.7.egg/more_itertools/more.py",
> line 340
>
> def _collate(*iterables, key=lambda a: a, reverse=False):
>
> ^
>
> SyntaxError: invalid syntax
>
>
>
> Any help would be appreciated!
>
>
>
> Peter
>
------------------------------
Subject: Digest Footer
_______________________________________________
Mediagoblin-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/mediagoblin-devel
------------------------------
End of Mediagoblin-devel Digest, Vol 4, Issue 2
***********************************************
- RE: HELP! Configuration: dbupdate error,
classroom <=