[python-win32] win32com in a 64bit laptop
I just got a 64bit laptop and install python 2.7.2 (Windows AMD64 / Intel 64 / X86-64 binary) and other packages. When i run the previous file, I find to import win32com.client bc the program needs to read a word document as follows: app = win32com.client.gencache.EnsureDispatch('Word.Application') self.doc = app.Documents.Open(...) Can someone tell me how I should do here? Thanks. Bill -- View this message in context: http://old.nabble.com/win32com-in-a-64bit-laptop-tp32741987p32741987.html Sent from the Python - python-win32 mailing list archive at Nabble.com. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] win32com in a 64bit laptop
Thanks for the reply. I removed the Softwares and reinstall them with 32bit again. But I have the following questions: 1. When installing xlutils1.4.1.win32, I got the following errors: couldn't create key for i) xlutils-py2.7; ii) python 2.7 xltuils-1.4.1 Then I got the error "Couldn't set key value" for "...\Removexlutils.exe" -u "...\xltuils-wininst.log" 2. Next, when installing win32com, i got the following error msg twice: The program can't start because python23.dll is missing from your computer... When I run my previous program, I got a runtime error as follows: Traceback (most recent call last): File "J:\MyProjects\Python\MySVD\src\SVDDecomposition.py", line 19, in from xlutils.copy import copy File "F:\Softwares\Working\Languages\Python27\lib\site-packages\xlutils\copy.py", line 7, in from xlutils.filter import process,XLRDReader,XLWTWriter File "F:\Softwares\Working\Languages\Python27\lib\site-packages\xlutils\filter.py", line 9, in import xlrd,xlwt ImportError: No module named xlwt How can I fix it? Thanks. Bill Mark Hammond-4 wrote: > > If your version of Word is 32bit (which it probably is), you should just > stick with the 32bit version of Python - it works fine on a 64bit machine. > > HTH, > > Mark > > -- View this message in context: http://old.nabble.com/win32com-in-a-64bit-laptop-tp32741987p32745032.html Sent from the Python - python-win32 mailing list archive at Nabble.com. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] win32com in a 64bit laptop
I got python from: www.python.org/download and choose •Python 2.7.2 Windows Installer (Windows binary -- does not include source) It should be a good version too, right? What I did is to remove all the 64bit versions and reinstall these software systems for win32. Thanks in advance. Bill Michel Claveau wrote: > > Hi! > >> Python27 >> The program can't start because python23.dll... > > Perhaps a bad version of pywin32... > > @-salutations > -- > Michel Claveau > > ___ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 > > -- View this message in context: http://old.nabble.com/win32com-in-a-64bit-laptop-tp32741987p32747181.html Sent from the Python - python-win32 mailing list archive at Nabble.com. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32