<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Package: mu-editor
Severity: important
x-debbugs-cc: <a class="moz-txt-link-abbreviated" href="mailto:ntoll@ntoll.org">ntoll@ntoll.org</a>
x-debbugs-cc: <a class="moz-txt-link-abbreviated" href="mailto:ben@raspberrypi.org">ben@raspberrypi.org</a>
x-debbugs-cc: <a class="moz-txt-link-abbreviated" href="mailto:knowledgejunkie@gmail.com">knowledgejunkie@gmail.com</a>

Ben Nuttal recently informed my that trying to use the "debug" button in mu-editor in Debian buster results in
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><blockquote type="cite"><meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->Traceback (most recent call last):</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">  File "/usr/share/mu-editor/mu/mu-debug.py", line 4, in <module></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">    from mu.app import debug</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">ModuleNotFoundError: No module named 'mu'<!--EndFragment--></p><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></blockquote>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.
</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">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)



<!--EndFragment--></p></p></body></html>