Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: teacher need help! Date: Wed, 4 Nov 2015 14:31:05 -0700 Lines: 31 Message-ID: References: <5623397C.40205@timgolden.me.uk> <5624AC43.3080105@timgolden.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de Y91taLdSxoocVDO7aAg8eg1Ze3TbkuEWSSFljjsSItAg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'anyway.': 0.04; 'subject:help': 0.07; 'below).': 0.09; 'through.': 0.09; 'python': 0.10; 'python.': 0.11; 'wed,': 0.15; 'file,': 0.15; 'instead.': 0.15; 'appreciated!': 0.16; 'cause.': 0.16; 'confusion': 0.16; 'echo': 0.16; 'file?': 0.16; 'install.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'transcript': 0.16; 'usenet': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'subject:need': 0.18; 'student': 0.20; '2015': 0.20; '(see': 0.20; 'am,': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'linux': 0.26; 'earlier': 0.27; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; "skip:' 10": 0.28; 'random': 0.29; 'computer.': 0.32; 'problem': 0.33; 'message.': 0.33; 'machine.': 0.33; 'list': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'problem.': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'seem': 0.37; "won't": 0.38; 'received:209': 0.38; 'mailing': 0.38; 'to:addr:python.org': 0.40; 'still': 0.40; 'skip:u 10': 0.61; 'caused': 0.61; 'here': 0.66; 'subscribers': 0.72; 'probable': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Gzw/Qr6RO4qDiTkYayWeAyqvBhxdqFZ7ycr9trn35C0=; b=WSW+JCLyFbTDDFxK7UwLT0b1phDMPllW7CA+5ZvP4bJhlPf9mbch+8hz8abijtgoqQ bY0jIvxxYUvdLtjfCd/nhPKGsgJ+Nf4HGyOQDUHNsExzmncxwQiuvXJLCU5az3t6Z3hF 4u2VCo0e/YqQK+2BRrakATDHPgArfRXN2pMZ3i/MTiG2qemD5Fusb6QD2KILcDiiFor/ EAV+0lnXCR05xL5xkGWBnMr2Qm4AiCixPd6Qq0JojbJhQxBw+WNJufdWKt1vKnx/yxIH ZxdR/u8+YQUYezK5LTNT1Q6q4yAQKcDBrCfHSY8muoN7Yth/PPd/dgF4RTiSsIlrmjCn 62bg== X-Received: by 10.50.73.137 with SMTP id l9mr6001475igv.85.1446672704766; Wed, 04 Nov 2015 13:31:44 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98243 On Wed, Nov 4, 2015 at 11:18 AM, Storey, Geneva wrote: > > > > > I am having the same problem that we experienced earlier (see below). This student was exploring random numbers in Python. She named her program random which caused confusion for her computer. We deleted the file, but still had the problem. Was there a lingering .pyc file? The following transcript is from Linux but still illustrative of the probable cause. $ echo 'print("Oops!")' > random.py $ ls random.* random.py $ python -c "import random" Oops! $ ls random.* random.py random.pyc $ rm random.py $ python -c "import random" Oops! $ rm random.pyc $ python -c "import random" > I removed Python from the machine. When I tried to reinstall, I got the attached error message. Now it won't even install. Any suggestions would be greatly appreciated! Unfortunately the attachment doesn't seem to have made it through. Also, many of the subscribers here read this mailing list as a Usenet group and wouldn't be able to see the attachment anyway. Please copy and paste the error instead.