On Apr 28, Matt Warnock <[EMAIL PROTECTED]> wrote:

> I received a bounce notification the last time I sent this.
> Hopefully it will get there this time.

Strange: I'll check the mailinglist-owner's archive.

> I'm having a reoccurring issue loading IMDB text data into a mysql
> database.  I'm running python 2.4 in windows and mysql 2.0,

MySQL 2.0 is a typo or what?

>     if counter % self.flushEvery == 0:
> ZeroDivisionError: integer division or modulo by zero

Very strange. :-/
For obvious reasons self.flushEvery is never set to 0, and it should
never reach that value: sometimes (when we're splitting queries too
long to be sent to the server in a single batch) it's halved, and I see
now that there is a rare case when it can reach 0: managing "plots",
flushEvery is set to 1000 and the maximum numer of times we divide
self.flushEvery is 10, so you can get 0 at the end...

Do you get a lot of warning about "recursion level exceded trying
to flush data", before the exception?


Thanks for your help!
-- 
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to