473,659 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ 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.OpenD atabase(infile)
...
...
252: def tableGetPrimary Key (self, tblName):
253: tbl = self.dtbs.Table Defs [ tblName ] # <<<< This breaks.
254: return self.getPrimary Key ( tbl )
...

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

Traceback:
....
File "r:\FSRV\PROJEC TS\Mello-et-al\jet2sql.py", line 253, in tableGetPrimary Key
tbl = self.dtbs.Table Defs [ tblName ]
File "C:\DOCUME~1\ca nnon\LOCALS~1\T emp\gen_py\2.3\ 00025E01-0000-0000-C000-000000000046x0x 5x0.py", line 1633, in __getitem__
return self._enum_.__g etitem__(index)
File "C:\Python23\li b\site-packages\win32c om\client\util. py", line 37, in __getitem__
return self.__GetIndex (index)
File "C:\Python23\li b\site-packages\win32c om\client\util. py", line 42, in __GetIndex
if type(index)!=ty pe(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.activestat e.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 1612

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

Similar topics

0
1269
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 the current process (exe/source) as the com server. Now, in python 2.3 when I try to create the COM instance from the exe, it starts up a new process and fails (b/c my exe does not support the command line parameters) The Source below is what...
1
3864
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 different module, and now it will compile but not run again. I know that functionality in this area is not fully supported yet, but there has to be someone out there that has got this to work. I am using Python2.3, with py2exe 0.4.2, and win32all 159....
0
1680
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 EnumObjectItems does indeed work fine under XP but build 156 does not appear to work under Windows 2000 (Service Pack 4). Below is the Traceback: >>> win32pdh.EnumObjectItems(None,None,"Process", -1) Traceback (most recent call last): File...
4
1707
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 old win32all versions (the installer will insist on this) before installing the new package.
0
1380
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 code to illustrate the problem: int main(int argc, char **argv) { Py_Initialize(); Py_SetProgramName(argv);
0
1618
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 real biprocessor). I keep getting the drwatson error reported below during win32all 162 installation (during the compiling step, near the end of the progression bar - it can pass unnotice, but some symptoms are that you don't have a finish button -...
4
2222
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 Python-2.3.4.exe, I next executed: > pywin32-201.win32-py2.3.exe as downloaded from SourceForge, in the belief that it was the appropriate companion for Python-2.3.4 (perhaps this is my mistake?). In both cases, the installed Pythonwin outputs the...
13
11008
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 creates a "normal" comm port (like COM3). There is a C++ program that has no problem talking to the equipment, but two Python programs have trouble. One is a big, scary, controller program, and the other, since that is the one I'm having trouble...
0
1208
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 reinstall win32all, reboot, etc. Any ideas? -- Cy http://home.rochester.rr.com/cyhome/
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
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 we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.