Amelie Lesser wrote: > > I am struggling very hard with using the win32com.client to use > Dispatch. I've been looking around quite a lot, but couldn't find any > help that solved my problem. I only started working with python 2 > months ago, so I am still quite the newbie. > ... > I downloaded the pywin32 extension from > http://sourceforge.net/projects/pywin32/ and ran the setup.py file. > The program starts with: > > /from win32com.client import Dispatch > / > For which I receive the following Error message: > > /Traceback (most recent call last): > File "Z:\testpython\dbf_converter\testing.py", line 3, in <module> > from win32com.client import Dispatch > ImportError: No module named win32com.client/ > > * I read through the Installation Problems on > http://starship.python.net/~skippy/win32/InstallationProblems.html > <http://starship.python.net/%7Eskippy/win32/InstallationProblems.html>. > I found that I do have two versions of the python27.dll file, > and deleted the one in the C:\Python27 directory, but everytime > I start IDLE it re-creates that file. > * I also tried setting the path using (separately) ...but no > difference. > o /sys.path.append('C:\\WINDOWS\\system32\\')/ > o /sys.path.append('C:\\Python27\\pywin32-214\\pywin32-214\\com')/ >
That's not the right location. Did you get and run the pywin32 installer? What command did you use to call "setup.py"? In a properly installed system, win32com will live in \Python27\lib\site-packages\win32com. Are you running a 32-bit system or a 64-bit system? Did you install 32-bit Python or 64-bit Python? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32