|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
Compiling COM server with Py2exe
Hi all, I've found wh2fax an Hylafax client which uses a COM server written in Python, which comes as .py file (exactly 2 files hfaxcom.py and hfaxlib.py). Now I want to use that COM server with other programs and to ease distribution I'd like to compile it with py2exe.
Right now I'm getting errors like: Quote:
I'm on win2k with python22 and a recent py2exe. setup.py contains the following Quote:
Has anyone already accomplished this? Can you help me? I know absolutely nothing about python, just need the com server ![]() Thanks in advance.
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#2
|
||||
|
||||
|
Hi Pabloj,
I haven't tested this but I looked at the code....The pywintypes module actually replaces references to itself with a link to a dll called pywintypesXX.dll Where XX is the python version. Unless Py2exe handles this as a special case it will not know how to include the dll. I suggest the solution will be to either manually copy pywintypes22.dll to the directory of your program or you can include it in the list of files of your py2exe script. Code:
setup(name="hylafaxutil", scripts=["hfaxcom"],
data_files = [(r"location_of_dll",[pywintypes22.dll,])]
)
You never know.. ![]() Grim: Last edited by Grim Archon : January 19th, 2004 at 05:59 AM. |
|
#3
|
||||
|
||||
|
I'try and let you know the results.
Thank you very much!!!! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Compiling COM server with Py2exe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|