Your message dated Sun, 12 Jan 2020 14:38:48 +0000
with message-id <e1iqeo8-0004ng...@fasolo.debian.org>
and subject line Bug#947032: fixed in mnemosyne 2.6.1+ds-1+deb10u1
has caused the Debian Bug report #947032,
regarding from PIL import Image ModuleNotFoundError No module named PIL
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
947032: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947032
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mnemosyne
Version: 2.6.1+ds-1

This issue began on first mnemosyne run post install after adjusting font and 
screen layout properties using its prefs screen.

On exiting the first use of the prefs screen, and on each subsequent mnemosyne 
start, this exception happened:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 262, in <module>
    debug_file=options.debug_file)
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 234, in initialise
    self.start_review()
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 357, in start_review
    self.config()["study_mode"]))
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/controllers/default_controller.py",
 line 103, in set_study_mode
    study_mode.activate()
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/study_modes/scheduled_forgotten_new.py",
 line 23, in activate
    self.review_controller().reset(new_only=False)
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py",
 line 53, in reset
    self.show_new_question()
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py",
 line 115, in show_new_question
    self.update_dialog()
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py",
 line 194, in update_dialog
    self.update_qa_area(redraw_all)
  File 
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py",
 line 234, in update_qa_area
    w.clear_answer()
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/review_wdgt.py", line 
251, in clear_answer
    self.update_stretch_factors()
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/review_wdgt.py", line 
147, in update_stretch_factors
    self.estimate_height(self.question_text)
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/review_wdgt.py", line 
114, in estimate_height
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'

Mnemosyne exits with an error code after reporting the error.

Installed the python3 and mnemosyne packages with --no-install-recommends, but 
their 'apt-cache show' outputs, though likely not enough information, do not 
indicate that PIL or Pillow are recommended packages of either.

$ cat /etc/issue
Debian GNU/Linux 10

Python 2 is not installed on the host experiencing the issue:

$ python
-bash: python: command not found

$ which python

$ python3 --version
Python 3.7.3

$ dpkg --status python3
...
Source: python3-defaults
Version: 3.7.3-1
Replaces: python3-minimal (<< 3.1.2-2)
Provides: python3-profiler
Depends: python3.7 (>= 3.7.3-1~), libpython3-stdlib (= 3.7.3-1)
Pre-Depends: python3-minimal (= 3.7.3-1)
...

$ cd /usr/lib/python3/dist-packages/mnemosyne
$ grep -R ' PIL '
pyqt_ui/review_wdgt.py:        from PIL import Image

This fixed it:

$ sudo apt-get install python3-pil

Perhaps this exception can be avoided by just adding python3-pil to the 
mnemosyne package's 'Depends' attribute.

Thanks!

--- End Message ---
--- Begin Message ---
Source: mnemosyne
Source-Version: 2.6.1+ds-1+deb10u1

We believe that the bug you reported is fixed in the latest version of
mnemosyne, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 947...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <a...@debian.org> (supplier of updated mnemosyne package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 10 Jan 2020 18:49:36 +0100
Source: mnemosyne
Architecture: source
Version: 2.6.1+ds-1+deb10u1
Distribution: buster
Urgency: medium
Maintainer: Robert Lemmen <rober...@semistable.com>
Changed-By: Andreas Beckmann <a...@debian.org>
Closes: 947032
Changes:
 mnemosyne (2.6.1+ds-1+deb10u1) buster; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Julien Puydt ]
   * Add depends on PIL (Closes: #947032).
Checksums-Sha1:
 cda078ccf5e048da92ab0a18aa97785265b0670a 2043 mnemosyne_2.6.1+ds-1+deb10u1.dsc
 07a2f4393a98932cdd4ea29e3f15926a4090afde 14628 
mnemosyne_2.6.1+ds-1+deb10u1.debian.tar.xz
 230e1fb64255e26f2e92f8adcba51156b6bd35f4 9921 
mnemosyne_2.6.1+ds-1+deb10u1_source.buildinfo
Checksums-Sha256:
 8c2a2fc1af8bcd88c8b11ed097b16af17335c7c233f4bb3b2702d92ffaa0f125 2043 
mnemosyne_2.6.1+ds-1+deb10u1.dsc
 2ba8b8dc796fdc6ddcfc4f387e0800fc558722d9669b8321b4c42da01062589d 14628 
mnemosyne_2.6.1+ds-1+deb10u1.debian.tar.xz
 70be7de3787d9fb568bf3b4f82f49c769c9999652fc2df8e216cb94a8a9298ca 9921 
mnemosyne_2.6.1+ds-1+deb10u1_source.buildinfo
Files:
 a4777d6c46a0f51cb94f7a01424d4d1b 2043 misc optional 
mnemosyne_2.6.1+ds-1+deb10u1.dsc
 f780a3144900472efd4785a2e13a4e01 14628 misc optional 
mnemosyne_2.6.1+ds-1+deb10u1.debian.tar.xz
 55c627091dbdeb4e8f5de663b62e5fee 9921 misc optional 
mnemosyne_2.6.1+ds-1+deb10u1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAl4Y0bkQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCHD7D/9LM28fEtFh3Muu+nVca0XEWSOV9wPDizj8
PllTjvS28zD6BCyXu1KHkNaIaHDe+vETMMtgsYl5nwyVIA8JtE+2tquTVPPfRPCe
I4pBWA2zDhYGa/jv274SPri6msEhukclxTIhO4z3O4E0XiTMN9V0qtHH9YwigZyP
MVgRZb2hA0A/0cCPraAsJfRP6wUm75ItrHCZexta7Is0+lHmQCh6YTNBi2pPFhLH
FTY+wI+zZC2QLqGIR7y6e+HoyaSP/NirKD3T0fXjQyv3Cd8MBxFk1UihZPNAGAad
YwdxsaNFMCE1xEAPKpsNGIgwaD1k+HBvH89vs7tRme0gp9gprE6cOPGqamPnKHAD
J2+5jrDdPMq1ZuuLX41lwlGS575qP6tHI6/F159zop1gKfZttia/DsmeB8VzDtF/
JuSYzGqQHjt2RLfE2TWRpk04aBuqUcB1p3DmlLIl66Tf39VR//lpdYh4qSkqiQOV
KGiCs1xZKAIzbqFvvamTo1uxRpDekRK8m7a12AVy0H3uNC4L6htvcAHJT2TXqMOK
rUKyxFQvHa0vVVil1o4+AoHlUpQ1jWnFOYYtJqUEvEGWGHMqr7VhwxDcE/8kagCc
Y5GB6JXAbihjPYqqS71N5eR2D3PiY4x9kVt8g2DMezlynG2nDXq5gbAfToDUNxB1
FeTpySfGGw==
=WEMs
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to