Re: unzip problem - solved

2011-06-24 Thread Ethan Furman
Ahmed, Shakir wrote: Here is the final code that worked to unzip a large file in the network drive. CHUNK_SIZE = 10 * 1024 * 1024 fh = open('T:\\applications\\tst\\py\\Zip_Process\\Zip\\myzip.zip', 'rb') z = zipfile.ZipFile(fh) for name in z.namelist(): fn = open(name, 'wb') ptr = 0

RE: unzip problem - solved

2011-06-24 Thread Ahmed, Shakir
-Original Message- From: Ethan Furman [mailto:et...@stoneleaf.us] Sent: Friday, June 24, 2011 3:47 PM To: Ahmed, Shakir Cc: Python Subject: Re: unzip problem Ahmed, Shakir wrote: > Thanks once again and you are right I am trying to unzip in the network > share drive. here is the script no

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
#1. By using isolation_level = None, connection objects (used as a context manager) WON'T automatically commit or rollback transactions. #2. Using any isolation level, connection objects WON'T automatically begin a transaction. #3. Possibly, include your connection manager class code, to show h

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Ryan Kelly
On Fri, 2010-03-12 at 09:35 +0100, Laszlo Nagy wrote: > > No it doesn't. The problem is that using a connection as a context > > manager doesn't do what you think. > > > > It does *not* start a new transaction on __enter__ and commit it on > > __exit__. As far as I can tell it does nothing on __

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
Annotating your example: # entering this context actually does nothing with conn: # a transaction is magically created before this statement conn.execute("insert into a values (1)") # and is implicitly committed before this statement conn.execute("SAVEPOINT sp1")

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
No it doesn't. The problem is that using a connection as a context manager doesn't do what you think. It does *not* start a new transaction on __enter__ and commit it on __exit__. As far as I can tell it does nothing on __enter__ and calls con.commit() or con.rollback() on exit. With isola

win32com.client import problem : solved

2009-10-14 Thread Threader Slash
-- Forwarded message -- From: Dave Angel To: Threader Slash Date: Wed, 14 Oct 2009 07:04:21 -0400 Subject: Re: win32com.client import problem Threader Slash wrote: > Hi Everybody, > > I have 2 imports: > > import pythoncom > from win32com.client import Dispatch > > if I run it on

Matlab axis control problem - solved

2007-10-16 Thread Dick Crepeau
I don't understand my earlier problem but the following code works no matter what the ylim is set to: I reworked the example major_minor_demo1.py to find the answer. thanks Dick C ps: I still can't post a reply since I read the list with my mozilla or konqueror browser and email separately wit

Re: win32com problem - Problem Solved

2006-10-25 Thread cfriedalek
Problem solved. Turns out it was a problem of mistranslating VBS code to Python. The PYTHON line "print str(tet)" casts tet to a string and prints. This is what I thought the VBS line "Str = Tet.ConvertToString()" was doing. But of course "ConvertToString()" is a m

Re: How to display name of elements in list? PROBLEM SOLVED.

2006-07-27 Thread cz
[EMAIL PROTECTED] wrote: > It looks like the PyTensor object *should* have .xx, .xy, etc > properties, but they may be accessible through a matrix, i.e. .t(i,j) Thanks to all of you for your help! The solution is easy: The tensor components have labels t11, t12,... Good guess ruibalp! -- http:

Re: Help Needed. Removing a Folder Problem(Problem Solved)

2006-07-20 Thread Steve Holden
Kilicaslan Fatih wrote: [...] > Dear All, > > I changed the mode of the files before copying them. > So the problem is solved as follows: > > SOLUTION: > > def run(self, event): > cmd_out = self.A_com() > if App.runF != "": > os.mkdir('C:\copiedFiles')

Re: Help Needed. Removing a Folder Problem(Problem Solved)

2006-07-20 Thread Kilicaslan Fatih
--- Larry Bates <[EMAIL PROTECTED]> wrote: > Note the error is permission denied. I would guess > that > either the file has read-only flag set or perhaps > the > '' program is still running and has the file > open > in a separate thread so you can't delete the > directory > until it has co

Re: Help Needed. Removing a Folder Problem(Problem Solved)

2006-07-20 Thread Kilicaslan Fatih
--- Larry Bates <[EMAIL PROTECTED]> wrote: > Note the error is permission denied. I would guess > that > either the file has read-only flag set or perhaps > the > '' program is still running and has the file > open > in a separate thread so you can't delete the > directory > until it has co

Re: Help Needed. Removing a Folder Problem(Problem Solved)

2006-07-20 Thread Kilicaslan Fatih
--- Larry Bates <[EMAIL PROTECTED]> wrote: > Note the error is permission denied. I would guess > that > either the file has read-only flag set or perhaps > the > '' program is still running and has the file > open > in a separate thread so you can't delete the > directory > until it has co

Re: Problem Solved

2006-07-16 Thread costello . bob
dylpkls91 wrote: > Thank you all for your responses. > > I have managed to figure out a solution using XML RPC which fits my > needs perfectly. Mind posting it for us lesser beings? ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Solved

2006-07-13 Thread Gerhard Fiedler
On 2006-07-13 20:46:16, dylpkls91 wrote: > Thank you all for your responses. > > I have managed to figure out a solution using XML RPC which fits my > needs perfectly. BTW, if you want to test networking between two machines on one single (Windows) computer, try VirtualPC. (Free from MS.) Gerha

Problem Solved

2006-07-13 Thread dylpkls91
Thank you all for your responses. I have managed to figure out a solution using XML RPC which fits my needs perfectly. -- http://mail.python.org/mailman/listinfo/python-list

Help Needed !!! Browsing and Selecting More Than One File(Problem Solved)

2006-07-10 Thread Kilicaslan Fatih
Special Thanks to Diez B. Roggisch and Eric Brunel. Last week on Friday I solved the problems I encountered thanks to your helpful indications. I think I covered all the ambiguity in my code. Here's the code: # executing with Python from Tkinter import * from tkFileDialog import * import

Re: Problem solved: Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-03-01 Thread Magnus Lycka
Paul Probert wrote: > Thanks everyone for your help. > It was the "Abouttime.exe" program, a time synch utility. To get the > problem, you have to run it as a service, and possibly it has to have > trouble connecting to its time servers. It would cause time.sleep(1) to > sometimes block for 20

Problem solved: Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-24 Thread Paul Probert
Thanks everyone for your help. It was the "Abouttime.exe" program, a time synch utility. To get the problem, you have to run it as a service, and possibly it has to have trouble connecting to its time servers. It would cause time.sleep(1) to sometimes block for 200 seconds. Not "about" 200 se