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 ned.deily
Recipients bugbee, ned.deily
Date 2016-03-07.17:01:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457370088.76.0.952367873965.issue26498@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, I am unable to reproduce the problem.  My guess is that somehow there is a version mismatch between the Python executable and the dynamic libraries.  This *could* be caused by a number of things, like environment variable settings.  Suggest trying to isolate the problem by checking the following in a bash shell:

$ type python
python is hashed (/usr/local/bin/python)
$ which python
/usr/local/bin/python
$ ls -l $(which python)
lrwxr-xr-x  1 root  wheel  68 Jan  2 23:08 /usr/local/bin/python -> ../../../Library/Frameworks/Python.framework/Versions/2.7/bin/python
$ python -c 'import sys;print(sys.version)'
2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 12:54:16)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
$ /usr/local/bin/python2.7 -c 'import urllib2'
$ env | sort
# look for LD_* and DYLD_* variables
$ python -v -c 'import urllib2'
History
Date User Action Args
2016-03-07 17:01:28ned.deilysetrecipients: + ned.deily, bugbee
2016-03-07 17:01:28ned.deilysetmessageid: <1457370088.76.0.952367873965.issue26498@psf.upfronthosting.co.za>
2016-03-07 17:01:28ned.deilylinkissue26498 messages
2016-03-07 17:01:28ned.deilycreate