Message261305
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' |
|
Date |
User |
Action |
Args |
2016-03-07 17:01:28 | ned.deily | set | recipients:
+ ned.deily, bugbee |
2016-03-07 17:01:28 | ned.deily | set | messageid: <1457370088.76.0.952367873965.issue26498@psf.upfronthosting.co.za> |
2016-03-07 17:01:28 | ned.deily | link | issue26498 messages |
2016-03-07 17:01:28 | ned.deily | create | |
|