473,473 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with new versions of win32all


I'm having a problem with the newer version of win32all and Python
2.3 with code that works fine on Python-2.2 (details below). Both
machines are Windows XP.

The code that breaks is derived from the venerable jet2sql.py cookbook
example. I added a routine that uses the daoEngine collection
"TableDefs" and indexes it with a string (the table name). That works
on Py-2.2/win32all-148 but not with Py-2.3/win32all-159.

Any help ?
Thanks in advance,

Mike


PS: I patched around this problem and the whole application seems fine
in the new environment now. But I'd still like to know the root cause.

================================================== ==========================

Code I added to jet2sql.py:
...
self.dtbs = daoEngine.OpenDatabase(infile)
...
...
252: def tableGetPrimaryKey (self, tblName):
253: tbl = self.dtbs.TableDefs [ tblName ] # <<<< This breaks.
254: return self.getPrimaryKey ( tbl )
...

================================================== ==========================

Traceback:
....
File "r:\FSRV\PROJECTS\Mello-et-al\jet2sql.py", line 253, in tableGetPrimaryKey
tbl = self.dtbs.TableDefs [ tblName ]
File "C:\DOCUME~1\cannon\LOCALS~1\Temp\gen_py\2.3\00025 E01-0000-0000-C000-000000000046x0x5x0.py", line 1633, in __getitem__
return self._enum_.__getitem__(index)
File "C:\Python23\lib\site-packages\win32com\client\util.py", line 37, in __getitem__
return self.__GetIndex(index)
File "C:\Python23\lib\site-packages\win32com\client\util.py", line 42, in __GetIndex
if type(index)!=type(0): raise TypeError, "Only integer indexes are supported for enumerators"
TypeError: Only integer indexes are supported for enumerators
================================================== ==========================

Old environment (works)
- ACCESS 2000 / DAO 3.6
- Python 2.2 (ActiveState, from aspn.activestate.com April, '03)
- win32all-148
- makepy on DAO 3.6 Object Library
New Environment (breaks)
- ACCESS 2000 / DAO 3.6
- Python 2.3 -- http://www.python.org/2.3.2/ --> Python-2.3.2-1.exe
- win32all-159.exe -- http://starship.python.net/crew/mhammond/
- makepy on DAO 3.6 Object Library

Jul 18 '05 #1
0 1606

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brent Turner | last post by:
Under python 2.2 I was able to create a COM object in an exe much of the same way that I could from py source... meaning that I was able to register the com server and create an instance using...
1
by: Marc | last post by:
Hello, I've fiddled with this for quite a while and thought I had the problem solved. I had a version that would successfully compile and run. But then I had to change the code to use a...
0
by: Steve Zatz | last post by:
I understand that there was a problem with win32pdh.EnumObjectItems under Windows XP but that recent versions of win32all corrected the problem. I installed win32all build 156 (Python 2.2.3) and...
4
by: Stéphane Ninin | last post by:
Hello, I had problems installing a few months ago the win32all (number 163) on windows 2000, and I want now to install the new version from sourceforge. I read on the site: Please uninstall...
0
by: Axel Diener | last post by:
I embed python interpreters in a C++ program. For each script to execute I create a new interpreter. In this environment I can use the win32 extensions only one time. Here is a little piece of...
0
by: PiErre | last post by:
Hi All, I am trying to install win32 extension 162 on python 2.2.3 on a virtual (vmware) machine with win2k server sp3 (but I tested that the same happens on either win2k sp2 or win2ksp3 on a...
4
by: Bob Chapman | last post by:
On two different Windows 98SE Systems, I have attempted to upgrade working Python 2.3.3 and win32all installations to Python 2.3.4. After what appeared to be successful installations of...
13
by: Bob Greschke | last post by:
We have some equipment that communicates at 57600 baud RS232. The path from the PC is USB to a Phillips USB hub, then off of that a TUSB3410 USB/Serial converter. The driver for the 3410 chip...
0
by: Cy Edmunds | last post by:
I am running Python 2.4 on Windows XP. My Win32all was working fine until recently. Now whenever I run the UI, no other application will start! I did all the obvious things like uninstall and...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.