Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'root': 0.05; 'subject:file': 0.07; 'subject:into': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; "'/'": 0.16; 'denying': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:download': 0.16; 'unlikely': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'versions': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'permission': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'dec': 0.30; 'newer': 0.30; 'message- id:@mail.gmail.com': 0.30; 'file': 0.32; 'this.': 0.32; 'run': 0.32; 'subject:from': 0.34; 'problem': 0.35; 'no,': 0.35; 'received:google.com': 0.35; 'issue': 0.38; 'subject:can': 0.39; 'users': 0.40; "you're": 0.61; 'first': 0.61; 'save': 0.62; 'more': 0.64; 'drive.': 0.84; 'fl:': 0.84; 'symptoms,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=d6eY5GCkSJPWc5hJ5WdMfs/3ObnEQ6Z4c9HU4KW6K1A=; b=sVyxdHzaeonCaQ4b2H0zSw8E4cQzjGn3RPwsbx1xqQW0V2f87vleOXT0Kmivg2POa6 hYxmkAj3HEW0RXUJp3Qu7yAt9vljsqkUVx3WKFfCg3gCC3WFSVSOJCSt4troNdWGQWo5 VC0dBAQ6cvvASx2FBgv1jzt+tOeSJboRUBVNK5xEbVNrh4nAKPh15O6sU64ZaX2LBxSY t/QotQLuvhywSkyUXKeNkwEBHjmt/5JAptR4h4MhT6T1fklRh3Ie3ZJTWPGB7tPQeZs7 YDXAMZHW5CUmoti8VywXu2dhBeoM0bSD1bqp8yo0GEfcjSWRICvtYiXCAsZorqHAXffm C3EA== MIME-Version: 1.0 X-Received: by 10.50.152.104 with SMTP id ux8mr15952158igb.14.1418062729869; Mon, 08 Dec 2014 10:18:49 -0800 (PST) In-Reply-To: <5485E9DC.6000509@invalid.lan> References: <5486AF57.7070803@gmail.com> <5485E9DC.6000509@invalid.lan> Date: Tue, 9 Dec 2014 05:18:49 +1100 Subject: Re: why can't download file from linux server into local window disk c:? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418062739 news.xs4all.nl 2943 [2001:888:2000:d::a6]:54561 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82132 On Tue, Dec 9, 2014 at 5:11 AM, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> >> I remember gloomily (haven't used windows since ages) that newer Windows >> versions don't like users to write directly to C:. Have you tried to >> save the file to your Documents folder? >> >> Regards, >> Alba > > > no, it's the ssh-server denying a log on from 'root' It looks to me more like an issue with path naming. Try 'c:/' instead of 'c:', or use '/' to mean the root directory of the current drive. Alternatively, do a web search for the problem and the symptoms, as you're unlikely to be the first person to have run into this. ChrisA