Fwd: Problem with cairo dll's

김성철 <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hello




I installed wxPython 3.0 on a standard Python 2.7.6 installation 64bit. After wxPython 3.0, I check if cairo dll's are installed.


Then I proceed to the installation of the demo, but cairo demos don't work. Demo raises a RuntimeError, "Unable to find the Cairo shared library". (see attached picture)
_path_with_file) returns the following error message:



Traceback (most recent call last):
I tried to research the problem a little bit. Inside module wx.lib.wxcairo, in function _findCairoLib and after following the calls to ctypes, it seems that the function ctypes.util.find_library is unable to find the installed libcairo-2.dll (which is installed in C:ToolsPython27Libsite-packageswx-3.0-mswwx) because the path is not in the environment variable %PATH%. In the command line I try set PATH=%PATH%;C:ToolsPython27Libsite-packageswx-3.0-mswwx. Then I open a python interpreter and I can assure ctypes.util.find_library("libcairo-2")returns the correct path to file C:ToolsPython27Libsite-packageswx-3.0-mswwxlibcairo-2.dll, but the ctypes.CDLL(previous
File "<stdin>", line 1, in <module>
File "C:ToolsPython27libctypes__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application


Now I'm stuck! My platform is Windows 7 Python 2.7.6 64bit, wxpython-3.0-64bit. All builds are standard builds for the Internet.Any help would be greatly appreciated,












Thank you.






---------------------------------------


Seongcheol Kim


Assistant Engineer,


Inspection Equipment R&D Team,


Manufacturing Technology Center,


Samsung Electronics Co., Ltd.


Mobile: +82-10-3766-6084


Email : [email protected]

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.