should not try to load ctypes DLL on Windows (or any platform for that matter)

Issue #2 resolved
Sridhar Ratnakumar
created an issue

Running "python ..." should not be using ctypes to load curl library (when you only need to find the version). This makes it impossible to build the package on a machine different than the one on which it will be used. Please the see the full Windows build log at:


Traceback (most recent call last):

File "", line 8, in <module>

from pylibcurl import __version__

File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\", line 2, in <module>

from curl import Curl

File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\pylibcurl\", line 7, in <module>

import lib

File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\pylibcurl\", line 10, in <module>

native = ctypes.cdll.libcurl

File "C:\Python26\lib\", line 423, in getattr__

dll = self._dlltype(name)

File "C:\Python26\lib\", line 353, in init__

self._handle = _dlopen(self._name, mode)

WindowsError: [Error 126] The specified module could not be found }}}

Comments (3)

  1. Sridhar Ratnakumar reporter

    Thx, but have you tested your fix? "from pylibcurl import about" will import automatically.

    One solution is to have a pylibcurl/VERSION.txt and "read" the version information from that. Let author name/email be in

  2. Log in to comment