<div dir="ltr"><div><div><div>Argh! I personally had not gotten around to trying Python 3.4 yet. The pythoncom package is widely used and I can't imagine that the lack of it got past our normal QA tests. I will check on this as soon as I get off work. <br>
<br> In the meantime, you should be able to have many versions of python loaded in parallel on your machine (I have around 7, usually) so you can reload 3.3 and use the <i>Python Launcher for Windows</i> to switch between versions. Use...<br>
</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">py -3 myprogram.py # runs the highest numbered Python 3<br></blockquote></div>or...<br></div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">py -3.3 myprogram.py # runs version 3.3<br></blockquote><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Mar 20, 2014 at 6:05 PM, Sibylle Koczian <span dir="ltr"><<a href="mailto:nulla.epistola@web.de" target="_blank">nulla.epistola@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I just changed from Python 3.3 to 3.4, installed pywin32-218.win-amd64-py3.4.<u></u>exe and tried to execute a script that definitely worked two weeks ago. No other changes, but now I get this exception:<br>
<br>
<br>
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32<br>
Type "copyright", "credits" or "license()" for more information.<br>
>>> import adodbapi<br>
>>> cConnform = "Provider=Microsoft.ACE.OLEDB.<u></u>12.0;Data Source={0};"<br>
>>> cAccName = r"D:\home\Sibylle\Dokumente\<u></u>OOo_db\MedienEDV.mdb"<br>
>>> accessconnstr = cConnform.format(cAccName)<br>
>>> accessconnstr<br>
'Provider=Microsoft.ACE.OLEDB.<u></u>12.0;Data Source=D:\\home\\Sibylle\\<u></u>Dokumente\\OOo_db\\MedienEDV.<u></u>mdb;'<br>
>>> accessconn = adodbapi.connect(<u></u>accessconnstr)<br>
Traceback (most recent call last):<br>
File "C:\Python34\lib\site-<u></u>packages\adodbapi\adodbapi.py"<u></u>, line 295, in connect<br>
pythoncom.CoInitialize() #v2.1 Paj<br>
NameError: name 'pythoncom' is not defined<br>
<br>
During handling of the above exception, another exception occurred:<br>
<br>
Traceback (most recent call last):<br>
File "<pyshell#5>", line 1, in <module><br>
accessconn = adodbapi.connect(<u></u>accessconnstr)<br>
File "C:\Python34\lib\site-<u></u>packages\adodbapi\adodbapi.py"<u></u>, line 298, in connect<br>
raise InterfaceError #Probably COM Error<br>
adodbapi.adodbapi.<u></u>InterfaceError<br>
>>><br>
<br>
Windows 7, 64bit, no MS Office on this machine, the provider is installed (and usable from a .NET application).<br>
<br>
To me this exception looks as if the import of pythoncom didn't happen, but I can't understand why not. Googling didn't get me anything - probably the problem is too new. What can I do?<br>
<br>
Thank you for help,<br>
Sibylle<br>
______________________________<u></u>_________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-win32</a><br>
</blockquote></div><br></div>