mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial run of ./bin/dbupdate fails.


From: Art
Subject: Re: Initial run of ./bin/dbupdate fails.
Date: Sat, 15 Oct 2022 08:16:50 -0700 (PDT)


Hi Andre, All,

comments below...


On Fri, 14 Oct 2022, Andre van Eyssen wrote:

On Thu, 13 Oct 2022, Art wrote:

 I get all sorts of python errors, included below my sig line for your
 reading pleasure. And, as I said, I don't know python.

Plenty of entertaining reading there.

Thanks.

It might help if you set us up with a little more background -- which distribution,

It's on Fedora Server 35 (which will be upgraded sometime this fall).

did you install all the deps from packages, etc?

I certainly followed the dependency guidelines found here:

https://docs.mediagoblin.org/en/master/siteadmin/deploying.html

I ensured _every_ package was in fact installed. There are two lists given there (these are excerpts straight from that page):

---

dnf install automake gcc git-core make nodejs npm \
libffi-devel python3-devel python3-lxml python3-pillow \
virtualenv

And, a bit lower:

dnf install nginx rabbitmq-server

---

And did you have the python venv activated at the time of running the command?

Originally no - nobody said to do that and as I don't know Python, well...

However, subsequently, yes, as previously described:

First this:

export 
PYTHONPATH="/usr/lib/python3.10/site-packages:/usr/src/mediagoblin/lib/python3.10/site-packages"

And then later with just one or the other. They all fail with the same set of errors, already provided, but also included below my "sig line" for your convenience.

--
Andre van Eyssen.                  Phone:     +61 417 211 788
mail:     andre@purplecow.org      http://andre.purplecow.org
About & Contact:          http://www.purplecow.org/andre.html

Thanks for all the help! I SURE want this working!

Rgds,
Art

--
Art Richards
Art@TheTroyPress.com
http://TheTroyPress.com


mediagoblin]$ ./bin/gmg dbupdate Traceback (most recent call last): File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Jinja2 2.11.3 (/usr/src/mediagoblin/lib/python3.10/site-packages/Jinja2-2.11.3-py3.10.egg), Requirement.parse('Jinja2>=3.0'), {'sphinx'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/mediagoblin/./bin/gmg", line 33, in <module>
    sys.exit(load_entry_point('mediagoblin', 'console_scripts', 'gmg')())
File "/usr/src/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 113, in main_cli
    setup_func = import_component(command_struct['setup'])
File "/usr/src/mediagoblin/mediagoblin/tools/common.py", line 34, in import_component
    __import__(module_name)
File "/usr/src/mediagoblin/mediagoblin/gmg_commands/shell.py", line 20, in <module>
    from mediagoblin import mg_globals
File "/usr/src/mediagoblin/mediagoblin/mg_globals.py", line 21, in <module>
    import pkg_resources
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
File "/usr/src/mediagoblin/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Jinja2 2.11.3 (/usr/src/mediagoblin/lib/python3.10/site-packages/Jinja2-2.11.3-py3.10.egg), Requirement.parse('Jinja2>=3.0'), {'sphinx'})
mediagoblin]$



reply via email to

[Prev in Thread] Current Thread [Next in Thread]