Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83834

Re: MySQL connections

From "Jacob Kruger" <jacob@blindza.co.za>
References <DB3F78F5082B4B31A42C783C4E9BD763@JakesPC> <CAPTjJmpvaNQNVJsmvbH6YGYnQZkofNCS0F+0UFzwsy-NVqv-ug@mail.gmail.com> <5F6F0C3BBA694C15A513F94735D89E18@JakesPC> <CAPTjJmr3nA-g2eGGW1JHK=09FW+fY4dEmPhWCSYmF6xQGvSfbg@mail.gmail.com>
Subject Re: MySQL connections
Date 2015-01-15 18:40 +0200
Newsgroups comp.lang.python
Message-ID <mailman.17766.1421340275.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

----- Original Message ----- 
From: "Chris Angelico" <rosuav@gmail.com>
Cc: <python-list@python.org>
Sent: Thursday, January 15, 2015 2:33 PM
Subject: Re: MySQL connections


> On Thu, Jan 15, 2015 at 10:59 PM, Jacob Kruger <jacob@blindza.co.za> 
> wrote:
>> Tried generating .exe with both cx_freeze, and pyInstaller, and the code
>> itself, and both versions of executable generate errors, same as running 
>> it
>> from command line - only difference is the source of the error mentioned 
>> in
>> error message then varies from a2m.exe and python.exe , and even if 
>> compile
>> it on machine where all works, and then copy .exe back to this primary
>> machine, then get same error - think it must relate to something else on
>> this machine, but can't track it down.
>
> Okay. Ignore the .exe versions, and just work with what happens when
> you run the .py files. If it fails as part of a .py file, post the
> failing file.

If you want to check it out, have attached the full code file - might be a 
bit messy/large - but, effectively, right at bottom, launch an instance of 
the class a2m, passing through arguments, and then from within __init__ call 
convertProcess function, which then initiates process, harvesting sort of 
rendition/version of structure out of MS access database file, makes call to 
convertSQL to generate structural SQL script, and save it to a file, which 
then calls convertData function to generate insert statements to populate 
database, and then that makes a call to convertExport, if you passed a 
command line argument in requesting mysql, and that's the current issue 
function - have stripped most of actual functionality out of it, since am 
just testing, so the first 16 lines of that function are what's relevant at 
moment - think shouldn't rely on any other self. objects/attributes as such 
either, unless step-through process is an issue.

And, tried cleaning it up a bit - replaced tab indentation character with 
double spaces, but, code might not look perfect/be perfectly clean as of 
yet.

Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..." 

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: MySQL connections "Jacob Kruger" <jacob@blindza.co.za> - 2015-01-15 18:40 +0200

csiph-web