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

Bug#657405: update to 0.7.1?



Could you update the package to more recent 0.7.1?

I did get http://mediagoblin.org/download/mediagoblin-0.7.1.tar.gz
and 'uupdate -u', which seemed to go ok. Then I had to remove 
0001-Fix-Babel-version-restriction.-Onward-and-upward.patch (already
applied in 0.7.1), and package built and installed.

however, running "sudo -i -u mediagoblin /usr/bin/gmg -cf /etc/mediagoblin/default/mediagoblin.ini dbupdate" 
dies with "ImportError: No module named unidecode". 

Installing python-unidecode (or python3-unidecode, I guess) fixes
that, so we should add that dependency for 0.7.1.  Same thing is
needed for "python-jsonschema|python3-jsonschema".

Afterwards, it dies with
  File "/usr/lib/python2.7/dist-packages/mediagoblin/tools/metadata.py", line 25, in <module>
    from pyld import jsonld
ImportError: No module named pyld

and it doesn't seem like there is pyld in debian.
"pip install PyLD" works around that, but we should probably package
it and add it is a dependency?

"gmg dbupdate" then dies with:

"/usr/lib/python2.7/dist-packages/mediagoblin/tools/metadata.py",
line 105, in load_resource
    return file(filename).read()
IOError: [Errno 2] No such file or directory:
'/usr/lib/python2.7/dist-packages/mediagoblin/static/metadata/rdfa11.jsonld'"

manually copying (as I couldn't find how to make it included in package) with:
mkdir -p /usr/lib/python2.7/dist-packages/mediagoblin/static/metadata; cp mediagoblin/static/metadata/rdfa11.jsonld /usr/lib/python2.7/dist-packages/mediagoblin/static/metadata/rdfa11.jsonld


finally allows "gmg dbbupdate" to finish, although it outputs a warning:
sudo -i -u mediagoblin /usr/bin/gmg -cf /etc/mediagoblin/default/mediagoblin.ini dbupdate
WARNING:mediagoblin.init.config:When setting up config section, could not import 'mediagoblin.media_types.image'
-> Updating main mediagoblin tables:
   + Running migration 20, "add_metadata_column"... done.
   + Running migration 21, "fix_privilege_user_association_table"... done.
   + Running migration 22, "add_index_username_field"... done.
   + Running migration 23, "revert_username_index"... done


hmm, I though we fixed that "mediagoblin.media_types.image" warning when we
started depending on python-pil (of which I have 2.5.1-1 installed)?

Anyway, to actually run the server I also needed to do 
"pip install exifread", to that too probably neeeds to be packaged.

I don't know how easy it is to package additional python modules? 
For perl and CPAN, that is 5-minute-job with dh-make-perl, but I
don't see dh-make-python...  Anyway, those dependencies on two new
python modules seems to be only real obstacle to getting 0.7.1 to
be packaged... Also, once created, how easy is to add them in debian
archive? Any idea how to proceed here?

Also, as mentioned before, I'd like to help with automating some of
manual tasks in README.Debian.  As I'm not a DD and don't have R/W
access to anonscm.debian.org, I though about cloning repo from
http://anonscm.debian.org/cgit/collab-maint/mediagoblin.git/
somewhere else (github) and then periodically when I have something
accomplished asking here for merge?  Is there a prefered way?

-- 
Opinions above are GNU-copylefted.


Reply to: