Issues where macports python fails but system python works

Joshua Root jmr at macports.org
Tue May 5 07:55:46 PDT 2009


David Osguthorpe wrote:
> Hi,
> 
> I know the macports developers dont like using Apple supplied stuff
> but here is an inverse case - where the system supplied python works
> but macports python doesnt.
> 
> running macports python with a python script that has worked for a year or so
> (from Panther to Leopard) gives the following errors:
> 
>> Traceback (most recent call last):
>>  File "ofx.py", line 179, in <module>
>>    client.doQuery(query, argv[1]+"_"+argv[3]+"_"+dtnow+".ofx")
>>  File "ofx.py", line 144, in doQuery
>>    f = urllib2.urlopen(request)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 124, in urlopen
>>    return _opener.open(url, data)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 381, in open
>>    response = self._open(req, data)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 404, in _open
>>    'unknown_open', req)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 360, in _call_chain
>>    result = func(*args)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 1140, in unknown_open
>>    raise URLError('unknown url type: %s' % type)
>> urllib2.URLError: <urlopen error unknown url type: https>

<http://trac.macports.org/wiki/FAQ#WhycantIimportfooinPython2.5>

You probably need to install py25-socket-ssl. Note that we went with the
"batteries included" option in python26, and people regularly complain
about that too:

<http://trac.macports.org/wiki/FAQ#pydeps>

If you're seeing an error like the above when running something
installed by a port, it's missing a dependency, and you should file a
ticket.

- Josh


More information about the macports-dev mailing list