odd problem with makepy

Mike C. Fletcher mcfletch at home.com
Wed May 16 02:15:38 EDT 2001


Shooting blind here (no real clue :0) ):

	16D3C689-5F97-11D2-BC1F-0060B0B52EA7x0x1x1

is being reported as the correct module for AgilentPNA835x.Application,
while:

	16D3C689-5F97-11D2-BC1F-0060B0B52EA7x0x1x0

is being reported as the typelib on which you've run makepy.  I'm guessing
you recently installed an update from 1.0 to 1.1 of the server app.  There
is likely another entry in the makepy dialog pointing to the 1.1 server, if
not, you could try running gencache.ensurecache (or whatever that function's
called) and passing it the version spec 1,1 instead of 1,0 and see if that
generates the desired version of the file.

HTH,
Mike

-----Original Message-----
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Jim Kerr
Sent: May 16, 2001 00:03
To: python-list at python.org
Subject: odd problem with makepy


  I'm having a strange problem with makepy. This isn't a show-stopper,
since I figured out a workaround, but I wish I knew what is going wrong.

  Here's the problem: I used makepy to generate a .pyc file for a registered
COM server. For a while, everything was fine. But after about two weeks
of bliss, Python began complaining that it couldn't find the server:

PythonWin 2.0 (#8, Oct 19 2000, 11:30:05) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2000 Mark Hammond (MarkH at ActiveState.com) - see
'Help/About PythonWin' for further copyright information.
>>> import pythoncom
>>> from win32com.client import *
>>> na
=Dispatch("AgilentPNA835x.Application",clsctx=pythoncom.CLSCTX_LOCAL_SERVER)
...
ImportError: No module named 16D3C689-5F97-11D2-BC1F-0060B0B52EA7x0x1x1

... and sure enough, there is no module with that name. But there is one
almost like it, except
that the list digit is a 0, not a 1. If  I rerun makepy during this session:

>>> Generating to
c:\python20\win32com\gen_py\16D3C689-5F97-11D2-BC1F-0060B0B52EA7x0x1x0.py
>>> na =
Dispatch("AgilentPNA835x.Application",clsctx=pythoncom.CLSCTX_LOCAL_SERVER)
>>> na.Preset()   #  everything is beautiful from here...
...





More information about the Python-list mailing list