cannot run makepy or COM browser
Mark Hammond
mhammond at skippinet.com.au
Sun Dec 16 08:19:27 EST 2001
Robert C. Kircher, Jr. wrote:
> When I try to run makepy or the com browser I get the following errors.
> Any ideas?
It looks like your installation is corrupt.
> >>> Failed to execute command:
> from win32com.client import makepy;makepy.main()
> Traceback (most recent call last):
> File "D:\Python21\Pythonwin\pywin\framework\toolmenu.py", line 103, in
> HandleToolCommand
> exec "%s\n" % pyCmd
> File "<string>", line 1, in ?
> ImportError: cannot import name makepy
This is looking for win32com\client\makepy.py.
From Pythonwin, check out what win32com.client.__path__ is, and make
sure it is where you expect (ie, the directory where makepy lives!)
> >>> Failed to execute command:
> from win32com.client import combrowse;combrowse.main()
> Traceback (most recent call last):
> File "D:\Python21\Pythonwin\pywin\framework\toolmenu.py", line 103, in
> HandleToolCommand
> exec "%s\n" % pyCmd
> File "<string>", line 1, in ?
> ImportError: cannot import name combrowse
Ditto for win32com\client\combrowse.py
Mark.
More information about the Python-list
mailing list