- 论坛徽章:
- 0
|
再补充一点
有时候用py2exe打包pygtk时pango包会出运行时错误
解决的办法是重新拷贝pango的那个DLL
我也是在google上找到的
大家可以看下面的原文
- I saw a very similar error message when using PyGtk & py2exe on
- windows...perhaps it is something similar.
- I was using py2exe to package up all the files needed to run my PyGtk
- program, including DLLs. It was copying the Pango DLL from my Gtk
- installation but not some of the data files Pango needed (which were
- installed along with Gtk in C:\GTK).
- When I ran my program, it found the copied DLL but wasn't able to find
- the data files. I found two ways to fix the problem:
- 1) copy the data files from C:\GTK and put them next to the Pango DLL.
- In my case I had to copy C:\GTK\lib, C:\GTK\share, and one other
- directory from C:\GTK which slips my mind at the moment
- 2) delete the copied pango DLL. My program then used the one installed
- in C:\GTK and was able to find the data files in C:\GTK
- So, could your program be finding a 2nd copy of the pango DLL somewhere?
- -Mark Ive
复制代码 |
|