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 Chris Caron
Recipients Chris Caron, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2017-10-10.23:57:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507679847.7.0.213398074469.issue31741@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not doing anything unusual.

Just to recap, I installed Python27 (in Windows 7 in my case- but this problem happens in Windows 10 too).

I did use `pip` to install packages as you'll see in the screenshot.  But even if i rename the `C:\Python27\Lib\site-packages\backports` to `ignoreme-backports`.  When i change the PYTHONPATH (from within sys.path.insert(0, 'new_path/that/has/a/backports/dir/in/it');

import backports
print backports.__path__
# always prints: C:\Python27\Lib\site-packages\backports

The problem arises because the following code won't work in my program:

from import import ssl_match_hostname

^^ That throws an exception that the package doesn't exist.  It's debugging it to the __path__ being incorrect that caused me to create this ticket.
History
Date User Action Args
2017-10-10 23:57:28Chris Caronsetrecipients: + Chris Caron, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower
2017-10-10 23:57:27Chris Caronsetmessageid: <1507679847.7.0.213398074469.issue31741@psf.upfronthosting.co.za>
2017-10-10 23:57:27Chris Caronlinkissue31741 messages
2017-10-10 23:57:27Chris Caroncreate