[Py2exe-users] catia typelib problem
by Michael K Fox other posts by this author
Sep 20 2006 10:34AM messages near this date
Re: [Py2exe-users] py2exe 0.6.5 python2.5 pythoncom troubles.
|
Re: [Py2exe-users] catia typelib problem
I'm using py2exe 0.6.5 and python2.4 on a WinXP box. I am writing an
application that interfaces with Dassault CATIAv5. It runs fine as
regular Python (using win32com.client.gencache.EnsureModule ) but fails
when it has been frozen with py2exe because the constants cannot be
found. I've seen the page in the wiki
<http://www.py2exe.org/index.cgi/IncludingTypelibs> about this and I
have tried solution 3 but the constants still couldn't be found.
Now I'm trying solution 2. CATIA has 102 typelibs so I pasted them
all into the setup.py file:
options = {"py2exe": {"typelibs":
[('{00B6EC0E-BCFE-11D2-9B5B-006094EB7ECA}',0,0,0),
....etc...
('{FE86BC00-D89C-11D2-BE6C-00104B7D1988}',0,0,0)]}},
But then when I run py2exe I get the following error message:
C:\cygwin\usr\project\CSICM> python setup.py py2exe
running py2exe
running build_py
*** generate typelib stubs ***
creating
C:\cygwin\usr\project\CSICM\build\bdist.win32\winexe\temp\win32com
creating
C:\cygwin\usr\project\CSICM\build\bdist.win32\winexe\temp\win32com\gen_p
y
Traceback (most recent call last):
File "setup.py", line 121, in ?
packages = ['kbe_catia']
File "C:\Python24\Lib\distutils\core.py", line 149, in setup
dist.run_commands()
File "C:\Python24\Lib\distutils\dist.py", line 946, in
run_commands
self.run_command(cmd)
File "C:\Python24\Lib\distutils\dist.py", line 966, in
run_command
cmd_obj.run()
File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line
218, in run
self._run()
File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line
249, in _run
self.typelibs)
File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line
1495, in collect_win32com_genpy
makepy.GenerateFromTypeLibSpec(info, bForDemand = False)
File
"C:\Python24\lib\site-packages\win32com\client\makepy.py", line 194, in
GenerateFromTypeLibSpec
tlb = pythoncom.LoadRegTypeLib(typelibCLSID, major, minor,
lcid)
pywintypes.com_error: (-2147312566, 'Error loading type
library/DLL.', None, None)
I googled for this error message and found this
<http://mail.python.org/pipermail/python-win32/2004-September.txt> in
which Mark Hammond states "typelibs can have references to other
typelibs - loading one of these other references is what is failing."
That was back in September, 2004. Has any solution been found for this
problem ?
Mike Fox
> Boeing Commercial Airplane Group
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
Thread:
Michael K Fox
Mark Hammond
Michael K Fox
|