Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79355

Re: Simple import in python 3 errors with complaint about bytes

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 <rosuav@gmail.com>
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 <BLU168-W44B06AA15B94B616A60ACAAD970@phx.gbl>
References <BLU168-W44B06AA15B94B616A60ACAAD970@phx.gbl>
Date Tue, 21 Oct 2014 10:54:37 +1100
Subject Re: Simple import in python 3 errors with complaint about bytes
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15017.1413849279.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, Oct 21, 2014 at 10:29 AM, Mike Boyle <moboyle79@outlook.com> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Simple import in python 3 errors with complaint about bytes Chris Angelico <rosuav@gmail.com> - 2014-10-21 10:54 +1100

csiph-web