Message 334170 - Python tracker

Message334170

Author pitrou
Recipients chrullrich, davin, eryksun, ned.deily, paul.moore, pitrou, steve.dower, tim.golden, zach.ware
Date 2019-01-21.19:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548100358.51.0.689100856472.issue35797@roundup.psfhosted.org>
In-reply-to
Content
Hmm, if multiprocessing exhibits the problem, I wouldn't be surprised if some third-party libraries also do.  I think `sys.executable` should really point to the proper executable.

> But changing sys.executable to _not_ be the venv one will break anyone who doesn't correctly inherit environment variables (specifically, __PYVENV_LAUNCHER__, but this is deliberately not documented ;) ). 

Well, it will also break if other environment variables are required, e.g. PYTHONPATH.  Usually you want to inherit environment variables (including such fundamental stuff such as HOME), because you don't know which ones are actually required for a given workload.

So I think "breaking if environment variables are not inherited" is a less severe failure mode than this issue is.
History
Date User Action Args
2019-01-21 19:52:39pitrousetrecipients: + pitrou, paul.moore, tim.golden, ned.deily, zach.ware, eryksun, steve.dower, chrullrich, davin
2019-01-21 19:52:38pitrousetmessageid: <1548100358.51.0.689100856472.issue35797@roundup.psfhosted.org>
2019-01-21 19:52:38pitroulinkissue35797 messages
2019-01-21 19:52:38pitroucreate