Comment by ~shtrom on ~mediagoblin/mediagoblin
REPORTED
RESOLVED FIXED~shtrom assigned ~shtrom to #60 on ~mediagoblin/mediagoblin
Ticket created by ~shtrom on ~mediagoblin/mediagoblin
./configure --with-docker && make
fails with
256.8 × Preparing metadata (pyproject.toml) did not run successfully. 256.8 │ exit code: 1 256.8 ╰─> [24 lines of output] 256.8 + meson setup /tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d /tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d/.mesonpy-c2l279qc -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=true --wrap-mode=nofallback --native-file=/tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d/.mesonpy-c2l279qc/meson-python-native-file.ini 256.8 The Meson build system 256.8 Version: 1.8.1 256.8 Source dir: /tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d 256.8 Build dir: /tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d/.mesonpy-c2l279qc 256.8 Build type: native build 256.8 Project name: pygobject 256.8 Project version: 3.52.3 256.8 C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14+deb12u1) 12.2.0") 256.8 C linker for the host machine: cc ld.bfd 2.40 256.8 Host machine cpu family: x86_64 256.8 Host machine cpu: x86_64 256.8 Program python3 found: YES (/opt/mediagoblin/bin/python3) 256.8 Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1 256.8 Run-time dependency python found: YES 3.11 256.8 Did not find CMake 'cmake' 256.8 Found CMake: NO 256.8 Run-time dependency girepository-2.0 found: NO (tried pkgconfig and cmake) 256.8 Not looking for a fallback subproject for the dependency girepository-2.0 because: 256.8 Use of fallback dependencies is disabled. 256.8 256.8 ../meson.build:31:9: ERROR: Dependency 'girepository-2.0' is required but not found. 256.8 256.8 A full log can be found at /tmp/pip-install-4ixoduf5/pygobject_e06a4ca398504db0a4a4ab1e54780a8d/.mesonpy-c2l279qc/meson-logs/meson-log.txt 256.8 [end of output]
This is due to
gir1.2-girepository-2.0
not being available in bookworm [0].We could bump the docker container to trixie, but we'd lose support for earlier distros.
Instead, we can pin PyGobject to <3.51
[0] https://packages.debian.org/bookworm/gir1.2-girepository-2.0-dev
Comment by ~shtrom on ~mediagoblin/mediagoblin
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 thepython3-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.
Comment by ~shtrom on ~mediagoblin/mediagoblin
Could we provide a replacement? Perhaps Shift or Alt? I fear Ctrl/Cmd might be too overloaded on Macs already.
-- 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.
Comment by ~shtrom on ~mediagoblin/mediagoblin
Agree.
-- 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.
~shtrom has made progress towards this in the build/Docker improvements we've just merged, but after discussion we realised that we need to be careful to minimise the impact on anyone upgrading an existing install.
These configure, build and Docker changes have now been merged into master. Thanks for your work here ~shtrom!
pdf.js can be put into bower.json. That's one less submodule.
Just wanted to note that ~shtrom looked at this and it's a little more complicated than on first glance. We cannot use pdfjs-dist at the moment because the viewer.html that we rely on is not included. See https://github.com/mozilla/pdf.js/issues/5609.
Comment by ~shtrom on ~mediagoblin/mediagoblin
On Thu 27 Jun 2024 at 03:38:53 +0000, ~sturm wrote:
The key is that we would manage that automatically, rather than making that the user's problem to coordinate. From their perspective, they run one command and the system is ready to go.
Yep, that's be great!
gmg serve
-- 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.