This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients Anthony Sottile, Chris Billington, Ivan.Pozdeev, SilentGhost, __Vano, barry, brett.cannon, cheryl.sabella, christian.heimes, eric.smith, eric.snow, ethan smith, ionelmc, jaraco, mhammond, ncoghlan, pitrou, steve.dower, takluyver, terry.reedy, veky
Date 2019-02-26.23:31:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <2832BB08-0306-4A98-BE70-7C475E83E4B4@python.org>
In-reply-to <1551214361.63.0.240756004462.issue33944@roundup.psfhosted.org>
Content
On Feb 26, 2019, at 12:52, Ionel Cristian Mărieș <report@bugs.python.org> wrote:
> 
> Something bad was installed with sudo but suddenly sudo is not acceptable for debugging? This seems crazy.

Your sudo may not be my sudo. :)  Let’s say I update my Ubuntu desktop and a new version of package with a pth breaks.  Maybe I didn’t even know I was doing that, via automated updates, or management portal, etc.  Now a poor user who depends on this has their code break.  How do *they* debug the problem?

FWIW, `sudo pip install` should just be banned IMHO :).

> How exactly are pth files hard to debug? Are those files hard to edit? They sure are, but the problem ain't the point where they are run, it's the fact that a big lump of code is stuffed on a single line. Lets fix that instead!

For sure.  But here’s the thing: you need to know *which* pth file is problematic.  Which means you have to debug the entire startup process where pth files are loaded.  That means you’re not really debugging pth files themselves (often), but site.py.  Debugging site.py for an installed Python is not trivial.  Hopefully you are at least not squeamish about editing a system file and breaking Python worse than the original bug. <wink>
History
Date User Action Args
2019-02-26 23:31:47barrysetrecipients: + barry, mhammond, brett.cannon, terry.reedy, jaraco, ncoghlan, pitrou, eric.smith, christian.heimes, ionelmc, SilentGhost, __Vano, eric.snow, takluyver, steve.dower, veky, Ivan.Pozdeev, Anthony Sottile, ethan smith, cheryl.sabella, Chris Billington
2019-02-26 23:31:47barrylinkissue33944 messages
2019-02-26 23:31:47barrycreate