By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

fail to install FreeImagepy in windows 7 64bits

P: 1
Hello

After install the last freeImagePy package from the website (http://freeimagepy.sourceforge.net/), and I tried to run a test, Im getting the following error:

>>> import FreeImagePy
Exception on load dll freeimage :[Error 193] %1 is not a valid Win32 application
C:\Python26\lib\site-packages\FreeImagePy\library.py:90: FunctionNotFound: Error on bind FreeImage_Initialise.
warn("Error on bind %s." % function[0], CO.FunctionNotFound)
.
.
.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python26\lib\site-packages\spyderlib\interpreter.py", line 47, in _import
result = self.builtin_import(name, globals, locals, fromlist, level)
File "C:\Python26\lib\site-packages\FreeImagePy\__init__.py", line 35, in <module>
_FI = freeimage()
File "C:\Python26\lib\site-packages\FreeImagePy\FreeImagePy.py", line 84, in __init__
self.__lib = library.internlLibrary(libraryName)
File "C:\Python26\lib\site-packages\FreeImagePy\library.py", line 93, in __init__
self.lib.FreeImage_SetOutputMessage(self.funct_pri ntErrors)
AttributeError: 'internlLibrary' object has no attribute 'lib'
>>> import FreeImagePy
Exception on load dll freeimage :[Error 193] %1 is not a valid Win32 application
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python26\lib\site-packages\spyderlib\interpreter.py", line 47, in _import
result = self.builtin_import(name, globals, locals, fromlist, level)
File "C:\Python26\lib\site-packages\FreeImagePy\__init__.py", line 38, in <module>
except constants.FreeImagePy_LibraryNotFound:
NameError: name 'constants' is not defined

What could be the error? Any idea in how to fixed?

Best regards

german
Nov 29 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.