~mediagoblin/mediagoblin#59: 
Unable to build v0.14.0 on AlmaLinux 9.5

I am following the step-by-step guide to installing MediaGoblin here.

Since rabbitmq-server is not available by default on AlmaLinux 9.x, I was able to get it setup by following RabbitMQ's upstream instructions here.

I am stuck on the make step under "Install MediaGoblin".

Below is a PrivateBin link with the stdout/stderr shown when running through this step: https://bin.linux.pizza/?ff1480ed2fa7c694#CCt8FxTXFmut26Q6cc7UoWW7QGE5CrANQ3Zin5XHo8aW

  • From the output above, I tried installing boost, which included boost-python3
  • I believe I found the required audio & video packages to install within docs/source/siteadmin/media-types.rst - could not find an equiv AlmaLinux package for python3-gstreamer1.

I then tried make again, and here is the result:
https://bin.linux.pizza/?1fdf4a3e77d194a2#Ef1Xpkbd1yvVsBPTiewt52srFpJa9doLZ1Z1x3zERvur

Any ideas on what to try next to fix this?

Status
REPORTED
Submitter
~jahway603
Assigned to
No-one
Submitted
a month ago
Updated
9 days ago
Labels
No labels applied.

~sturm 30 days ago

Those pastebin links will expire in a few days, so here's the key part of that output:

  error: can't copy 'licenses/*': doesn't exist or not a regular file
  ----------------------------------------
  ERROR: Failed building wheel for mediagoblin
Failed to build mediagoblin
ERROR: Could not build wheels for mediagoblin, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 21.3.1; however, version 25.0.1 is available.
You should consider upgrading via the '/srv/mediagoblin.example.org/mediagoblin/bin/python3 -m pip install --upgrade pip' command.
make: *** [Makefile:87: /srv/mediagoblin.example.org/mediagoblin/./lib/python3.9/site-packages/mediagoblin-0.14.0.dist-info/] Error 1

~sturm 30 days ago

"~jahway603" outgoing@sr.ht writes:

Since rabbitmq-server is not available by default on AlmaLinux 9.x, I was able to get it setup by following RabbitMQ's upstream instructions here.

If you'd prefer, you can also use Redis:

[celery] broker_url = "redis://"

I am stuck on the make step under "Install MediaGoblin".

Below is a PrivateBin link with the stdout/stderr shown when running through this step: https://bin.linux.pizza/?ff1480ed2fa7c694#CCt8FxTXFmut26Q6cc7UoWW7QGE5CrANQ3Zin5XHo8aW

We fixed a similar error "can't copy 'licenses/*'" seen in Debian 11 on the master branch back in October (c70e444c). Could you please try that branch and see if this is resolved for you?

The issue appears to be that slightly older versions of Python, Setuptools, Pip or similar don't support the wildcard syntax in setup.cfg's "options.data_files" config.

For what it's worth, we do have a Fedora CI build which might offer some clues as to what the appropriate OS packages are called:

https://git.sr.ht/~mediagoblin/mediagoblin/tree/master/item/.builds/fedora-39.yml

~jahway603 14 days ago

I believe the gstreamer1 package name may be the equivalent of that on AlmaLinux.

I tried to add commit c70e444c in there and it still would not build.

I then decided to try the latest commit acd9d04f, ran into errors & was still unable to build. I saw some type of error about mediagoblin/tests/test_ldap.py:32: could not import 'ldap': No module named 'ldap', so then installed the python3-ldap package, tried to build again, and then that ldap error went away but it was still not able to build.

Do you have an optimal place to past error logs? Any ideas?

~shtrom 9 days ago

Hey there,

On Sat 12 Apr 2025 at 02:23:15 +0000, ~jahway603 wrote:

I then decided to try the latest commit acd9d04f, ran into errors & was still unable to build. I saw some type of error about mediagoblin/tests/test_ldap.py:32: could not import 'ldap': No module named 'ldap', so then installed the python3-ldap package, tried to build again, and then that ldap error went away but it was still not able to build.

This is odd: ldap should be detected as missing, and the tests skipped.

Do you have an optimal place to past error logs? Any ideas?

Looks like SourceHut has one: https://paste.sr.ht/. The output of your configure script, as well as config.log would be useful to see.

-- Olivier Mehani shtrom+mediagoblin@ssji.net PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE F5F9 F012 A6E2 98C6 6655 Confidentiality cannot be guaranteed on emails sent or received unencrypted.

Register here or Log in to comment, or comment via email.