Your message dated Tue, 18 Jun 2019 02:38:34 +0000
with message-id <[email protected]>
and subject line Bug#930270: fixed in mu-editor 1.0.2+dfsg-3
has caused the Debian Bug report #930270,
regarding mu-editor: debugger broken.
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 [email protected]
immediately.)


-- 
930270: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930270
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mu-editor Severity: important x-debbugs-cc: [email protected] x-debbugs-cc: 
[email protected] x-debbugs-cc: [email protected] Ben Nuttal recently informed 
my that trying to use the "debug" button in mu-editor in Debian buster results 
in

Traceback (most recent call last):

File "/usr/share/mu-editor/mu/mu-debug.py", line 4, in <module>

from mu.app import debug

ModuleNotFoundError: No module named 'mu'

Investigation shows that this is the result of failure to find mu-related 
python modules. mu-editor itself finds them because the mu-editor executable 
(AFTER following the symlink) is located in /usr/share/mu-editor but the 
mu-debug helper script is in a subdirectory and so does not find them.

The simplest fix seems to be to adjust sys.path[0] in mu-debug.py I whipped up 
(and tested) a patch to do that. While working on that I noticed that the clean 
target was broken, so I fixed that too. knowledgejunkie: are you ok if I go 
ahead and NMU this and ask the release team for an unblock? (if I get no 
response i'll NMU in 5 days, but I'd really like to move sooner given how 
little time is available before release)

diff -Nru mu-editor-1.0.2+dfsg/debian/changelog 
mu-editor-1.0.2+dfsg/debian/changelog
--- mu-editor-1.0.2+dfsg/debian/changelog       2019-02-28 02:43:16.000000000 
+0000
+++ mu-editor-1.0.2+dfsg/debian/changelog       2019-06-13 02:03:44.000000000 
+0000
@@ -1,3 +1,12 @@
+mu-editor (1.0.2+dfsg-2.1) unstable; urgency=medium
+
+  * Non-Maintainer upload.
+  * Adjust sys.path[0] in mu/mu-debug.py so that debugger works
+    (Closes: ???)
+  * Fix clean target.
+
+ -- Peter Michael Green <[email protected]>  Thu, 13 Jun 2019 02:03:44 +0000
+
 mu-editor (1.0.2+dfsg-2) unstable; urgency=medium
 
   * d/gbp.conf: use pristine-tar
diff -Nru mu-editor-1.0.2+dfsg/debian/patches/mu-debug-alter-sys.path.patch 
mu-editor-1.0.2+dfsg/debian/patches/mu-debug-alter-sys.path.patch
--- mu-editor-1.0.2+dfsg/debian/patches/mu-debug-alter-sys.path.patch   
1970-01-01 00:00:00.000000000 +0000
+++ mu-editor-1.0.2+dfsg/debian/patches/mu-debug-alter-sys.path.patch   
2019-06-13 02:03:44.000000000 +0000
@@ -0,0 +1,23 @@
+Description:  Adjust sys.path[0] in mu/mu-debug.py so that debugger works
+ Debian installs mu-editor's modules in a directory that is not on the
+ global python path. mu-editor finds the modules through sys.path[0]
+ pointing at /usr/share/mu-editor, unfortunately for mu-debug.py 
+ sys.path[0] is /usr/share/mu-editor/mu, so the modules are not found
+ adjust sys.path[0] in mu-editor.py to fix this issue
+Author: Peter Michael Green <[email protected]>
+Last-Update: 2019-06-13
+
+--- mu-editor-1.0.2+dfsg.orig/mu/mu-debug.py
++++ mu-editor-1.0.2+dfsg/mu/mu-debug.py
+@@ -1,6 +1,11 @@
+ #!/usr/bin/env python3
+ import os
+ import sys
++
++#Remove last path element from sys.path[0] so that mu modules can be found 
relative to this executable.
++import os.path
++sys.path[0] = os.path.dirname(sys.path[0])
++
+ from mu.app import debug
+ 
+ 
diff -Nru mu-editor-1.0.2+dfsg/debian/patches/series 
mu-editor-1.0.2+dfsg/debian/patches/series
--- mu-editor-1.0.2+dfsg/debian/patches/series  2019-02-28 02:43:16.000000000 
+0000
+++ mu-editor-1.0.2+dfsg/debian/patches/series  2019-06-13 02:03:44.000000000 
+0000
@@ -8,3 +8,4 @@
 remove-non-dfsg-images-from-docs
 remove-non-dfsg-resources
 test_app_icon_as_string
+mu-debug-alter-sys.path.patch
diff -Nru mu-editor-1.0.2+dfsg/debian/rules mu-editor-1.0.2+dfsg/debian/rules
--- mu-editor-1.0.2+dfsg/debian/rules   2019-02-28 02:43:16.000000000 +0000
+++ mu-editor-1.0.2+dfsg/debian/rules   2019-06-13 02:03:44.000000000 +0000
@@ -27,6 +27,9 @@
 override_dh_auto_clean:
        dh_auto_clean
        rm -rf docs/html
+       rm -f debian/mu-editor.1
+       rm -f debian/mu-editor.1.md
+       rm -rf .pytest_cache
 
 override_dh_auto_build:
        dh_auto_build

--- End Message ---
--- Begin Message ---
Source: mu-editor
Source-Version: 1.0.2+dfsg-3

We believe that the bug you reported is fixed in the latest version of
mu-editor, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nick Morrott <[email protected]> (supplier of updated mu-editor 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 [email protected])


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

Format: 1.8
Date: Tue, 18 Jun 2019 01:34:00 +0100
Source: mu-editor
Binary: mu-editor mu-editor-doc
Architecture: source
Version: 1.0.2+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Python Applications Packaging Team 
<[email protected]>
Changed-By: Nick Morrott <[email protected]>
Description:
 mu-editor  - simple editor for beginner Python programmers
 mu-editor-doc - simple editor for beginner Python programmers (documentation)
Closes: 930270
Changes:
 mu-editor (1.0.2+dfsg-3) unstable; urgency=medium
 .
   * d/patches: add update-rtp-for-mu-debug (Closes: #930270)
     - adapted from patch from Peter Green
Checksums-Sha1:
 de0266f32cc84a2c7d03861895a693e2c8b6bb28 2715 mu-editor_1.0.2+dfsg-3.dsc
 f082a8786473f59e47b142e3b1ff82a931d1e5fa 11048 
mu-editor_1.0.2+dfsg-3.debian.tar.xz
Checksums-Sha256:
 a2ee4e6004249e786db1d764b93cb158b0b710352067a7d3f52c4b63a8a55bd7 2715 
mu-editor_1.0.2+dfsg-3.dsc
 b6f325a9f1e8d2520b89fd6a7707ec78ec8ca2c27d80d45c885a2914fe700ab1 11048 
mu-editor_1.0.2+dfsg-3.debian.tar.xz
Files:
 6013e3a9b39bf4340c9a119707ebb5b4 2715 python optional 
mu-editor_1.0.2+dfsg-3.dsc
 0301bf5c7b42c08c56b4847b9e24ea42 11048 python optional 
mu-editor_1.0.2+dfsg-3.debian.tar.xz

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

iQJIBAEBCAAyFiEEU0DQATYMplbjSX63DEjqKnqP/XsFAl0ISS0UHHBsdWd3YXNo
QGRlYmlhbi5vcmcACgkQDEjqKnqP/XtVUhAAjIxmYTZ9hgAF0ffT8CJenpWvILya
VWDnzZJz/c1o6IzpyKMkGk+juHZq1xJLC1XaZZeBPhrwCNiIQSWm5Qyo5bz8vkvv
LofvudlrxTdBVIDh4/AWFwvfby5S8kmNw1dZu0t1ISMtmRNnPTJdIQwMbbX0enUf
fD7Z/QOZB9310ImteXLtXcLRAwCPN9Mo/qrXAb2Vz0rrDwRz4HRRtJtUdPIPqk/C
y3QqcJ3twp3dOK2jZwHqcEt2t8nZ9k4UKxPCGXtZWEcqjQhUqrajLbKn39RmnP2v
FpfIgMC0xzJg52Gcgg4gBvK+lYVtF2KPaJfEdPEUBeCAURorpkPwVk0NTyerfvui
YjX5ynk5U1WlkghEVOYQll5mZV3uH2HULZG0zCOTbMwiCaBVyBCyB2T2MFyM90Et
6z0J8pTTpXJZC/7p2zvEwAcE+/vz/i7uXOQn0Eq5xdhA6VUBYrXtnFBl+zqzUxXi
OuBSzgmpttrdn9uwP7mm0+jKVggEESYbBSHZgfFUp3/iCegJOfDX8B/8bVav6onw
e5LfDUO3Y9gccxzTnotSrkE3F7IhEhmzDb3dk1cBb6PVYViMQaOletSJp5HO6hRx
gqKJ3QNomVLSGriRJFni2yIBVQXswfupZyvx5SnikTDwfnoFAkzQ5fjlx9Wc6ejH
F8boEXLccR2kp3E=
=wXyD
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to