[Tutor] cannot import win32com.client

Στεργίου Αποστόλης tolis at softhome.net
Sun Mar 14 16:12:32 EST 2004


Take a look:

>>> import win32com.client
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
  File "C:\Python23\lib\site-packages\win32com\__init__.py", line 6, in
?
    import pythoncom
  File "C:\Python23\lib\site-packages\pythoncom.py", line 3, in ?
    pywintypes.__import_pywin32_system_module__("pythoncom", globals())
AttributeError: 'module' object has no attribute
'__import_pywin32_system_module__'
>>>

I use: 	WinXP PRO Greek version 5.01.2600 Service Pack 1
And:		PythonWin 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200
32 bit 		(Intel)] on win32.
		Portions Copyright 1994-2001 Mark Hammon
(mhammond at skippinet. 		com.au) - see 'Help/About PythonWin' for
further copyright 			information.

When I installed "win32all-163.exe" I got 3 errors:
1)	Registration of the AXScript Engine COM server failed.
	Installation will continue, but this server will require manual
registration before it will function
	
	exceptions.AttributeError: 'module' object has no attribute
'__import_pywin32_system_module__'

2)	Registration of the Python Interpreter COM server failed.
	Installation will continue, but this server will require manual
registration before it will function
	
	exceptions.AttributeError: 'module' object has no attribute
'com_error'

3)	Registration of the Python Dictionary COM server failed.
	Installation will continue, but this server will require manual
registration before it will function
	
	exceptions.ImportError: cannot import name DISPATCH_METHOD

Any time I try to reinstall I get the same 3 errors...

Any solution?






More information about the Tutor mailing list