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 Gerrit.Holl
Recipients Gerrit.Holl, THRlWiTi, brett.cannon, mitya57, pitrou, remram, torsten
Date 2018-11-29.16:16:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543508205.32.0.788709270274.issue22543@psf.upfronthosting.co.za>
In-reply-to
Content
There is a thread on StackOverflow related to this problem:

https://stackoverflow.com/q/42495641/974555

The (currently only and accepted) answer proposes as a workaround to set the PYTHONPATH variable, as the contents of those apparently *are* already in sys.path at the time warnings._processoptions is called, unlike site-packages.  So manually adding site-packages to the PYTHONPATH variable does circumvent this problem (tested in Python 3.7.1).
History
Date User Action Args
2018-11-29 16:16:45Gerrit.Hollsetrecipients: + Gerrit.Holl, brett.cannon, pitrou, THRlWiTi, torsten, mitya57, remram
2018-11-29 16:16:45Gerrit.Hollsetmessageid: <1543508205.32.0.788709270274.issue22543@psf.upfronthosting.co.za>
2018-11-29 16:16:45Gerrit.Holllinkissue22543 messages
2018-11-29 16:16:45Gerrit.Hollcreate