View Single Post
Old 05-26-2014, 12:16 PM   #51
AcidWeb
KCC Co-Author
AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.
 
AcidWeb's Avatar
 
Posts: 845
Karma: 765434
Join Date: Mar 2013
Location: Poland
Device: Kindle Oasis 2
Heh. Not threads are cause of problem. Is is even more strange.

Look on this snippet. X.mobi have 400mb.
Quote:
import os
import sys
import argparse
import configparser
#from tkinter import Tk, ttk, filedialog
from threading import Thread
from KindleButler import DualMetaFix

ready_file = DualMetaFix.DualMobiMetaFix("D:\X.mobi", bytes('12345', 'UTF-8'))
exit(0)
It works. But if I uncomment tkinter it start to crash with MemoryError.
Importing any bigger third party library is starting to crash program (still only on 32bit Python).
I would say that is something wrong with my Python enviroment - but I replicated that on two machines.

Last edited by AcidWeb; 05-26-2014 at 12:24 PM.
AcidWeb is offline   Reply With Quote