[SRU] gnome-activity-journal instantly fails

Bug #2069170 reported by Ken Sharp
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-activity-journal (Ubuntu)
Status tracked in Oracular
Jammy
Fix Released
Undecided
Unassigned
Mantic
Opinion
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned
Oracular
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

gnome-activity-journal fails to run and crashes immediately with the error:

$ gnome-activity-journal
Using the "zeitgeist" python module from /usr/lib/python3/dist-packages/zeitgeist
Traceback (most recent call last):
  File "/bin/gnome-activity-journal", line 119, in <module>
    from src import config
ModuleNotFoundError: No module named 'src'

[ Test Plan ]

install gnome-activity-journal.

Open a terminal and try to execute "/bin/gnome-activity-journal".

If the package is not fixed, it will fail with the above error.

With the fixed package, it will display the interface.

As a sanity check:
1. Open gnome-activity-journal from the menu.
2. From a terminal execute "gnome-activity-journal"
3. From a terminal execute "/usr/bin/gnome-activity-journal".

In all the cases gnome-activity-journal should start wthout any crash.

[ Where problems could occur ]

If 'gnome-activity-journal' was started as '/bin/gnome-activity-journal' then it tries to find its internal module at '/share' folder but '/share' does not exist. The current fix modifes the path and prefixes 'usr' to the path.
Users should not see any new regression to this change, but if the users have copied 'gnome-activity-journal' to some other folder and tries to start from there then the user will face the same problem as this bug and might think that the bug has not been fixed.

[ Other Info ]

It has been fixed in Debian and has synced with Oracular.

[ Original Bug Description ]

$ gnome-activity-journal
Using the "zeitgeist" python module from /usr/lib/python3/dist-packages/zeitgeist
Traceback (most recent call last):
  File "/bin/gnome-activity-journal", line 119, in <module>
    from src import config
ModuleNotFoundError: No module named 'src'

I have zeitgeist installed and zeitgeist-daemon is running.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-activity-journal 1.0.0-3build1
ProcVersionSignature: Ubuntu 6.5.0-35.35~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-35-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Wed Jun 12 17:25:26 2024
PackageArchitecture: all
SourcePackage: gnome-activity-journal
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2019-08-06T11:56:22.315382

Revision history for this message
Ken Sharp (kennybobs) wrote :
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Thanks for reporting the issue. But I could not reproduce the problem in Ubuntu Mate - 22.04.4 image.

The module 'src' is an internal module of gnome-activity-journal.

Can you please try to reinstall gnome-activity-journal and see if you stil have the same problem.
sudo apt-get reinstall gnome-activity-journal

If you still have the same problem after reinstall then can you please paste the output from these two commands:

1. apt-cache policy gnome-activity-journal
2. ls -l /usr/share/gnome-activity-journal/src/

I am moving the bug to Incomplete. Please change the status back to New when you reply.

Changed in gnome-activity-journal (Ubuntu):
status: New → Incomplete
Revision history for this message
Ken Sharp (kennybobs) wrote :

Tried reinstalling and the same occurs. Tried installing in a chroot (with schroot) and the same occurs.

$ apt-cache policy gnome-activity-journal
gnome-activity-journal:
  Installed: 1.0.0-3build1
  Candidate: 1.0.0-3build1
  Version table:
 *** 1.0.0-3build1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status

$ ls -l /usr/share/gnome-activity-journal/src/
total 368
-rw-r--r-- 1 root root 83812 Feb 16 2021 activity_widgets.py
-rw-r--r-- 1 root root 2585 Feb 1 2021 blacklist.py
-rw-r--r-- 1 root root 43685 Feb 1 2021 common.py
-rw-r--r-- 1 root root 9675 Feb 1 2021 config.py
-rw-r--r-- 1 root root 32155 Feb 1 2021 content_objects.py
-rw-r--r-- 1 root root 6381 Feb 1 2021 external.py
-rw-r--r-- 1 root root 22357 Feb 1 2021 histogram.py
-rw-r--r-- 1 root root 6981 Feb 1 2021 Indicator.py
-rw-r--r-- 1 root root 0 Feb 1 2021 __init__.py
-rw-r--r-- 1 root root 42064 Feb 16 2021 main.py
drwxr-xr-x 1 root root 78 Jun 24 19:49 plugins
drwxr-xr-x 1 root root 656 Jun 24 19:49 __pycache__
-rw-r--r-- 1 root root 3617 Feb 1 2021 sources.py
-rw-r--r-- 1 root root 21358 Feb 1 2021 store.py
-rw-r--r-- 1 root root 79686 Feb 16 2021 supporting_widgets.py

Changed in gnome-activity-journal (Ubuntu):
status: Incomplete → New
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Thanks for the information. I am able to reproduce the issue, and I think you are facing the same problem.

Can you please test the package from the ppa and confirm if it fixes the issue for you.

sudo add-apt-repository ppa:sudipmuk/gnome-activity-journal
sudo apt update
sudo apt install gnome-activity-journal

If you still see the issue then I will add some debug messages to check what is going wrong.

Revision history for this message
Ken Sharp (kennybobs) wrote :

The package from the ppa does indeed fix the issue.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Thanks for confirming. I will test on other releases and prepare an update.

Changed in gnome-activity-journal (Ubuntu):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in gnome-activity-journal (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in gnome-activity-journal (Ubuntu Noble):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in gnome-activity-journal (Ubuntu Oracular):
status: In Progress → Fix Committed
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in gnome-activity-journal (Ubuntu Mantic):
status: New → Opinion
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Oracular should be fixed after it syncs with Debian.
Mantic will reach its EOL on 11th July. Considering the 7 days aging and SRU review and then verification, I will skip Mantic and directly fix Jammy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-activity-journal - 1.0.0.19.g1e469ff-1

---------------
gnome-activity-journal (1.0.0.19.g1e469ff-1) unstable; urgency=medium

  * New upstream version 1.0.0.19.g1e469ff
    - Remove upstream applied patches.
  * Update Standards-Version to 4.6.2
  * Use correct internal module path to fix a runtime failure. (LP: #2069170)
  * Use importlib, imp is not available in Python3.12. (LP: #2071547)

 -- Sudip Mukherjee <email address hidden> Sun, 30 Jun 2024 13:34:55 +0100

Changed in gnome-activity-journal (Ubuntu Oracular):
status: Fix Committed → Fix Released
summary: - gnome-activity-journal instantly fails
+ [SRU] gnome-activity-journal instantly fails
description: updated
Changed in gnome-activity-journal (Ubuntu Noble):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Uploaded and is waiting for SRU review now.

Changed in gnome-activity-journal (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Ken, or anyone else affected,

Accepted gnome-activity-journal into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-activity-journal/1.0.0-3ubuntu0.24.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-activity-journal (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Ken, or anyone else affected,

Accepted gnome-activity-journal into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-activity-journal/1.0.0-3ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-activity-journal (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Ken Sharp (kennybobs) wrote (last edit ):

Looks good in Jammy and Noble.

$ apt show gnome-activity-journal
Package: gnome-activity-journal
Version: 1.0.0-3ubuntu0.1

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Ken, please be specific about what version of gnome-activity-journal you tested.

Revision history for this message
Jeremy Bícha (jbicha) wrote (last edit ):

I successfully completed the test cases on Ubuntu Desktop 22.04.4 LTS using gnome-activity-journal 1.0.0-3ubuntu0.1.

However, I was unable to reproduce the original crash there with gnome-activity-journal 1.0.0-3build1. This is similar to what Sudip said in comment 2. But the fix doesn't make gnome-activity-journal worse and if it fixes the issue for the original reporter, Ken Sharp, I think we should still go ahead with this update.

Jeremy Bícha (jbicha)
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that gnome-activity-journal from noble-proposed has fixed the bug for me.

Test done:

install gnome-activity-journal and confirm that it fails to open as in #2071547

Added noble-proposed to apt sources.
install gnome-activity-journal from noble-proposed.

Confirmed that gnome-activity-journal now opens.
confirmed that gnome-activity-journal still opens when "/bin/gnome-activity-journal" is executed in a terminal.

Also, followd the testplan for the sanity test and confirmed gnome-activity-journal opens on all the cases/

Package tested:

$ apt-cache policy gnome-activity-journal
gnome-activity-journal:
  Installed: 1.0.0-3ubuntu0.24.04.1
  Candidate: 1.0.0-3ubuntu0.24.04.1
  Version table:
 *** 1.0.0-3ubuntu0.24.04.1 100
        100 http://gb.archive.ubuntu.com/ubuntu noble-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.0.0-3build1 500
        500 http://gb.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that gnome-activity-journal from jammy-proposed has fixed the bug for me.

Test done:

install gnome-activity-journal and try to open "/bin/gnome-activity-journal" and confirm that it fails to open.

Added jammy-proposed to apt sources.
install gnome-activity-journal from jammy-proposed.

confirmed that gnome-activity-journal opens when "/bin/gnome-activity-journal" is executed in a terminal.

Also, followd the testplan for the sanity test and confirmed gnome-activity-journal opens on all the cases/

Package tested:

$ apt-cache policy gnome-activity-journal
gnome-activity-journal:
  Installed: 1.0.0-3ubuntu0.1
  Candidate: 1.0.0-3ubuntu0.1
  Version table:
 *** 1.0.0-3ubuntu0.1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     1.0.0-3build1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Not sure why @jbicha was unable to reproduce the problem. I thought it was quite easy to reproduce.

However attaching a screenshot from Jammy showing the problem.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-activity-journal - 1.0.0-3ubuntu0.24.04.1

---------------
gnome-activity-journal (1.0.0-3ubuntu0.24.04.1) noble; urgency=medium

  * Use correct internal module path to fix a runtime failure. (LP: #2069170)
  * Use importlib, imp is not available in Python3.12. (LP: #2071547)

 -- Sudip Mukherjee <email address hidden> Tue, 02 Jul 2024 10:58:35 +0100

Changed in gnome-activity-journal (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gnome-activity-journal has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-activity-journal - 1.0.0-3ubuntu0.1

---------------
gnome-activity-journal (1.0.0-3ubuntu0.1) jammy; urgency=medium

  * Use correct internal module path to fix a runtime failure. (LP: #2069170)

 -- Sudip Mukherjee <email address hidden> Tue, 02 Jul 2024 11:13:04 +0100

Changed in gnome-activity-journal (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.