Trying to get FreeImagePy to work.

Iain King iainking at gmail.com
Fri May 26 09:54:28 EDT 2006


I've installed ctypes and FreeImagePy.  When I do this:

>>> import FreeImagePy
>>> f = FreeImagePy.Image()

I get:
find
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
1952, in _
_init__
    super(Image, self).__init__(libraryName)
  File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
376, in __
init__
    self.__lib = self.__internlLibrary(libraryName)
  File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
313, in __
init__
    self.lib = C.windll.find(libraryName)
  File "ctypes\__init__.py", line 370, in __getattr__
    dll = self._dlltype(name)
  File "ctypes\__init__.py", line 296, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Errno 126] The specified module could not be found

I put a 'print self._name' in the ctypes __init__ file, just before
line 296 - it's printing out the 'find' just before the error.
So, in what specific way have  I screwed up the install?

Iain




More information about the Python-list mailing list