Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.146 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.71; '*S*': 0.00; 'subject: [': 0.09; 'suggest': 0.14; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'itself,': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'simpson': 0.16; 'unlocked': 0.16; 'uploading': 0.16; 'wrote:': 0.18; 'later': 0.20; 'written': 0.21; 'header:User-Agent:1': 0.23; 'error': 0.23; 'features,': 0.24; 'cheers,': 0.24; 'file.': 0.24; 'script': 0.25; 'header:In- Reply-To:1': 0.27; "skip:' 10": 0.31; 'requesting': 0.31; 'file': 0.32; 'one,': 0.35; 'but': 0.35; 'there': 0.35; 'received:com.au': 0.36; "didn't": 0.36; 'being': 0.38; 'thank': 0.38; 'manager': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; 'received:unknown': 0.61; 'completed': 0.61; 'new': 0.61; "you're": 0.61; 'back': 0.62; 'content-disposition:inline': 0.62; 'real': 0.63; 'temporary': 0.65; 'due': 0.66; 'received:net.au': 0.68; 'caused': 0.69; 'received:203': 0.74; 'browser.': 0.78; 'amongst': 0.91; 'this;': 0.91; 'walking': 0.91 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkCADB/0lHLWHZpfGdsb2JhbABahwu8QQRxDRYOAQELFgU+giQBBSMPAVYJAg0NAgUTDgICDwUYRIgOjl+bP5EqgSaNIYE0gjszYwOXRwGGDjaOJIFWJA X-IPAS-Result: AmkCADB/0lHLWHZpfGdsb2JhbABahwu8QQRxDRYOAQELFgU+giQBBSMPAVYJAg0NAgUTDgICDwUYRIgOjl+bP5EqgSaNIYE0gjszYwOXRwGGDjaOJIFWJA X-IronPort-AV: E=Sophos;i="4.87,979,1363093200"; d="scan'208";a="179501191" Date: Tue, 2 Jul 2013 17:21:38 +1000 From: Cameron Simpson To: python-list@python.org Subject: Re: OSError [Errno 26] ?!?! MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) References: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372749724 news.xs4all.nl 15943 [2001:888:2000:d::a6]:56482 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49622 On 02Jul2013 08:57, Νίκος wrote: | Thank you, the error have been caused due to the fact that the | uploading procedure of my edited 'pelatologio.py' hadn't been | completed yet, while i was requesting the execution of the script | via browser. | | I didn't had to do anything it solved by itself, after upload was | successful and file got unlocked for access. If you're uploading using sftp (or, worse, ftp), might I suggest using rsync instead? Amongst other features, it uploads to a temporary file and then renames the temporary file to the real file. There is no window where the "live" file is being written to. The live file is the old one, and then later it is the new one. Cheers, -- Cameron Simpson No team manager will tell you this; but they all want to see you come walking back into the pits sometimes, carrying the steering wheel. - Mario Andretti