[issue5413] urllib ctypes error on Mac OS X Server 10.5

Attila Soki report at bugs.python.org
Wed Apr 1 10:59:01 CEST 2009


Attila Soki <atiware at gmx.net> added the comment:

no luck.
output for t.py:

Traceback (most recent call last):
  File "t.py", line 3, in <module>
    f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
  File "/var/root/pytest/python/lib/python2.6/urllib.py", line 82, in
urlopen
    opener = FancyURLopener()
  File "/var/root/pytest/python/lib/python2.6/urllib.py", line 611, in
__init__
    URLopener.__init__(self, *args, **kwargs)
  File "/var/root/pytest/python/lib/python2.6/urllib.py", line 129, in
__init__
    proxies = getproxies()
  File "/var/root/pytest/python/lib/python2.6/urllib.py", line 1558, in
getproxies
    return getproxies_environment() or getproxies_macosx_sysconf()
  File "/var/root/pytest/python/lib/python2.6/urllib.py", line 1452, in
getproxies_macosx_sysconf
    _CFSetup(sc)
TypeError: _CFSetup() takes exactly 2 arguments (1 given)
Exception AttributeError: "FancyURLopener instance has no attribute
'tempcache'" in <bound method FancyURLopener.__del__ of
<urllib.FancyURLopener instance at 0x372288>> ignored


output for tt.py:

Traceback (most recent call last):
  File "tt.py", line 4, in <module>
    x = sc.CFStringCreateWithCString(0, "HTTPEnable", 0)
  File "/var/root/pytest/python/lib/python2.6/ctypes/__init__.py", line
366, in __getattr__
    func = self.__getitem__(name)
  File "/var/root/pytest/python/lib/python2.6/ctypes/__init__.py", line
371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, CFStringCreateWithCString): symbol
not found

notes:
t.py fails on both with the same error
tt.py runs on Intel/Mac OS X and fails on PPC/Mac OS X Server

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5413>
_______________________________________


More information about the Python-bugs-list mailing list