[Tutor] Getting Python to work...

Robert.Simons@us.pilkington.com Robert.Simons@us.pilkington.com
Fri, 30 Aug 2002 11:23:57 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C25039.4280F220
Content-Type: text/plain;
	charset="iso-8859-1"

Hi to all you programming gurus...
I have downloaded to a Win98 box:
	Python 2.2.1 (said most stable)
	WxPython 2.2.3.1 - python.exe
	Boa.constructor 0.1.0 -alpha.win32.exe
All the downloads were "runnable" so I ran them.
Python 2.2.1 looks like it ran and installed (did not require a reboot.
Hmmmmm)
WxPython, finally required a reboot. Placed the pertinate files inside the
python22 folder then it did a proper install I think.
Ran the boa and it expanded into the wxPython tools sub directory. 

I cannot run the Boa program... 
I cannot get a 2.2.1 python window to run an 1.5 version program.  I am
using odbc and the wxPython should register it, but the simple program I am
trying to run claims no knowledge of the ODBC.

I attach the code from the project maybe you can tell  me exactly what I am
doing wrong, but feel free to help me fininsh? The installation. 

TIA
 <<pgs.py>> 
Rob 


____________________________________________________________________________
This message and any attachments are confidential, for the exclusive use of
the addressee and may be legally privileged. Any other distribution, use or
reproduction is unauthorized and prohibited. If you have received this
message in error, please notify the sender immediately and delete the
message from your system. 
	Visit our internet site at http://www.pilkington.com

------_=_NextPart_000_01C25039.4280F220
Content-Type: application/octet-stream;
	name="pgs.py"
Content-Disposition: attachment;
	filename="pgs.py"

import ODBC.Windows
 
db = ODBC.Windows.Connect('PGS','sa','')

c = db.cursor()
c.execute('select count(*) from loglongtermhistory')
c.fetchone()
fsc.tables(None,None,None,None)
ODBC.print_resultset(c)

c.close()
db.close()


------_=_NextPart_000_01C25039.4280F220--