1. Askar Yusupov
  2. pylibcurl
  3. Issues
Issue #2 resolved

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

Sridhar Ratnakumar
created an issue

Running "python setup.py ..." 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: http://code.activestate.com/pypm/pylibcurl/0.7.5/

{{{

Traceback (most recent call last):

File "setup.py", line 8, in <module>

from pylibcurl import __version__

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

from curl import Curl

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

import lib

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

native = ctypes.cdll.libcurl

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

dll = self._dlltype(name)

File "C:\Python26\lib\ctypes__init.py", 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 init.py automatically.

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

  2. Log in to comment