Opened 5 years ago

Closed 23 months ago

#5523 closed defect (fixed)

Requires pyexiv2 unavailable for Python 3.x

Reported by: Jonas Smedegaard Owned by:
Priority: critical Milestone: 0.11.0
Component: programming Keywords:
Cc: Parent Tickets:

Description

mediagoblin.media_types_raw_image imports pyexiv2 which is only available for Python 2.x.

According to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823761#15 the related py3exiv2 provide a different API, and that bugreport mentions instead moving to gexiv2, available and gir module.

Subtickets

Change History (2)

comment:1 Changed 3 years ago by Ben Sturmfels

Milestone: 0.11.0
Priority: majorcritical
Status: newaccepted

This issue was a blocker in Jonas' work to package MediaGoblin for Debian in 2017. We're not expecting him to continue work if we fix this, but we definitely should fix it so that someone can potentially continue his work.

comment:2 Changed 23 months ago by Ben Sturmfels

Resolution: fixed
Status: acceptedclosed

I've updated the documentation for enabling the raw image plugin on Python 3.

The following works on Debian 10 and has been added to our test Debian 10 Dockerfile:

sudo apt install libexiv2-dev libboost-python-devn
./bin/pip install py3pyexiv2

I see that python3-py3exiv2 is available for Debian Sid (future Debian 12). I haven't tested it, but I would expect it to replace the above installation from PyPI.

Confusingly the pyexiv2 package on PyPI is a completely different and unrelated piece of software that is incompatible with MediaGoblin.

Note: See TracTickets for help on using tickets.