Re: [Tutor] cx_Oracle and Pyinstaller

2017-03-14 Thread Alan Gauld via Tutor
On 14/03/17 14:29, Madhu Venkat wrote: > try: > Conn = cx_Oracle.connect (self.dsn) > except cx_Oracle.DatabaseError as exception: > > dsn has all the required connection info. > > In this case, I believe I don't need TNSnames.ora file, please confirm. I don't know a

Re: [Tutor] cx_Oracle and Pyinstaller

2017-03-14 Thread Madhu Venkat
Reg: https://mail.python.org/pipermail/tutor/2014-December/103608.html Hi, I am connecting to Oracle little differently, not using TNSnames.ORA file. Here is a line of code to show how I am connecting. def connect(self): try: Conn = cx_Oracle.connect (self.dsn) e

Re: [Tutor] cx_Oracle and Pyinstaller

2014-12-11 Thread Steven D'Aprano
On Wed, Dec 10, 2014 at 06:42:38PM -0600, Bill Allen wrote: > I have had success with producing a single file executable from a Python > script that includes cx_Oracle. Here are the details. Hopefully this will > also help someone struggling to get this working. [...] Thanks Bill! This may be a

[Tutor] cx_Oracle and Pyinstaller

2014-12-10 Thread Bill Allen
I have had success with producing a single file executable from a Python script that includes cx_Oracle. Here are the details. Hopefully this will also help someone struggling to get this working. OS was Windows 7 Pro 64 bit. Python was 2.7.8 32 bit. cx_Oracle-5.13 for 2.7 PyInstaller-2.1 P