After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707527 - zeitgeist: More python3 porting
zeitgeist: More python3 porting
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Plugins (other)
unspecified
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 727729 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-05 02:25 UTC by Jeremy Bicha
Modified: 2018-05-24 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
zeitgeist: More python3 porting (2.49 KB, patch)
2013-09-05 02:25 UTC, Jeremy Bicha
needs-work Details | Review
Latest python3 changes for rbzeitgeist.py (1.38 KB, patch)
2014-07-18 13:08 UTC, gnome.vrb
needs-work Details | Review
zeitgeist: Use zeitgeist via Gobject introspection (7.72 KB, patch)
2016-11-27 13:01 UTC, gnome.vrb
none Details | Review

Description Jeremy Bicha 2013-09-05 02:25:43 UTC
This still isn't enough for the zeitgeist plugin to work on Ubuntu 13.10.

  • File "/usr/lib/rhythmbox/plugins/rbzeitgeist/rbzeitgeist.py", line 35 in <module>
    from zeitgeist.client import ZeitgeistClient
ImportError: No module named 'zeitgeist'

I think it needs to be ported to the Zeitgeist 2 gobject introspection bindings
Comment 1 Jeremy Bicha 2013-09-05 02:25:46 UTC
Created attachment 254143 [details] [review]
zeitgeist: More python3 porting
Comment 2 Andrei Dziahel 2014-04-29 21:45:08 UTC
This issue affects me too.

Rhythmbox 3.0.2 (& 3.0.1), openSUSE 13.1
Comment 3 gnome.vrb 2014-07-18 13:06:52 UTC
(In reply to comment #0)
> This still isn't enough for the zeitgeist plugin to work on Ubuntu 13.10.
> 
> 

This is because rhythmbox now uses python plugins based on python3 and not python2.

sid@unstable:~/temp/zeitgeist$ dpkg -L python-zeitgeist
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-zeitgeist
/usr/share/doc/python-zeitgeist/copyright
/usr/share/doc/python-zeitgeist/changelog.Debian.gz
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/zeitgeist
/usr/lib/python2.7/dist-packages/zeitgeist/_ontology.py
/usr/lib/python2.7/dist-packages/zeitgeist/__init__.py
/usr/lib/python2.7/dist-packages/zeitgeist/client.py
/usr/lib/python2.7/dist-packages/zeitgeist/datamodel.py
/usr/lib/python2.7/dist-packages/zeitgeist/mimetypes.py

So, for this above zeitgeist python package needs to be reworked for python3, and probably this should come in a separate python3-zeitgeist package ( which should take a while ). Please refer to https://bugzilla.gnome.org/show_bug.cgi?id=727729 for quick workaround patch for zeitgeist package, which should make things working !!

For any comments related to the zeitgeist python package, please update https://bugzilla.gnome.org/show_bug.cgi?id=727729. Not this bug.

This bug will be used as a tracker bug for all python3 changes that will need to go to the rhythmbox zeitgeist plugin in /usr/lib/rhythmbox/plugins/rbzeitgeist/rbzeitgeist.py
Comment 4 gnome.vrb 2014-07-18 13:08:59 UTC
Created attachment 281091 [details] [review]
Latest python3 changes for rbzeitgeist.py

Latest python3 changes for /usr/lib/rhythmbox/plugins/rbzeitgeist/rbzeitgeist.py
Comment 5 Jonathan Matthew 2014-07-19 01:06:06 UTC
*** Bug 727729 has been marked as a duplicate of this bug. ***
Comment 6 Jonathan Matthew 2014-07-19 09:14:10 UTC
The plugin needs to be rewritten to use zeitgeist through gobject introspection.  It appears the zeitgeist python modules will not be updated to work with python 3.

The zeitgeist python examples would probably be useful for anyone wishing to convert the rhythmbox plugin: http://cgit.freedesktop.org/zeitgeist/zeitgeist/tree/examples/python/

They are not python 3 compatible, but they demonstrate how to use zeitgeist via gobject introspection, which is also possible in python 3.
Comment 7 Laurent Bigonville 2015-12-06 18:05:30 UTC
Has anybody looked at this?

With more and more distributions switching to python3, it might be interesting to have this module converted
Comment 8 gnome.vrb 2016-11-27 13:01:40 UTC
Created attachment 340841 [details] [review]
zeitgeist: Use zeitgeist via Gobject introspection
Comment 9 GNOME Infrastructure Team 2018-05-24 17:58:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/1304.