Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'causing': 0.04; '21,': 0.07; 'failing': 0.07; 'throws': 0.09; 'try:': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hits': 0.16; 'subject:import': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'mike': 0.22; 'cc:addr:python.org': 0.22; 'config': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'actual': 0.34; 'subject:with': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'crazy': 0.36; 'subject:Simple': 0.36; 'should': 0.36; 'changing': 0.37; 'problems.': 0.60; 'tell': 0.60; 'line,': 0.68; 'etc),': 0.84; 'to:none': 0.92; 'hands': 0.96 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=HbQVzNn0g+00OjjD8IF6gQBX8qDD0bKyyDshY/j4cTg=; b=TWDywdOg/DPtq/5JEiZSdQ90VWz/Pw9r2pVFXTCTm8nzeSJiaNnFKZ+w4LLekclrbb 2QJhgUvn8lXva2X65s7AXHTtVDDYPrpbH1XSbS1NjyeXjISgZRQUbXLuppdxKYTDpHJe KVCgGJVhcow2TXNUH1L1b5lLD/7z5tLs6t+vHaxAoVnK1IzjQ/flV61jLn5sydz51fUH 1jVBIUwRmnzcMSq8Xl9oA6odYm1lI3hjG5n6rmDe3JQCvq6ZxafxZJZzlR9tUOOs2k7c GSvo2pA4ra+metFCy/e3s6Q2r2aNxE/Fd2KUMCkoUqwDoKE9tDqS9N186rMZht1ny0Tf MHjQ== MIME-Version: 1.0 X-Received: by 10.42.156.6 with SMTP id x6mr5957139icw.52.1413849277547; Mon, 20 Oct 2014 16:54:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Oct 2014 10:54:37 +1100 Subject: Re: Simple import in python 3 errors with complaint about bytes 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413849279 news.xs4all.nl 2906 [2001:888:2000:d::a6]:38648 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79355 On Tue, Oct 21, 2014 at 10:29 AM, Mike Boyle wrote: > But when it hits that line, python 3 throws its hands up in disgust: > >> python -c 'import quaternion' Just something crazy to try: Instead of using python -c, create an actual script with just that one line in it. It might be that you have some strange console config that's causing problems. You may also want to try changing all your names to be unique ("quaternion1" as the package name, "quaternion2" as the Python file in it, etc), which should tell you which one it's actually failing on. ChrisA