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


Groups > comp.lang.python > #10744

Re: python import error, what's wrong?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'rename': 0.09; 'subject:error': 0.11; 'subject:python': 0.12; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:import': 0.16; 'subject:wrong': 0.16; 'pm,': 0.16; 'aug': 0.19; 'received:74.125.82.174': 0.19; 'received:mail- wy0-f174.google.com': 0.19; 'header:In-Reply-To:1': 0.22; 'tue,': 0.23; 'message-id:@mail.gmail.com': 0.28; 'import': 0.29; 'subject:?': 0.31; 'to:addr:python-list': 0.34; 'but': 0.37; 'received:google.com': 0.38; 'subject:: ': 0.38; 'received:74.125.82': 0.39; 'to:addr:python.org': 0.39; 'received:74.125': 0.40; 'your': 0.60
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IVR8Ug2rXlCOYCOPJJOf2xwdocGL2WjaSeFZK9GdXXA=; b=i1ya23Z1BOfaJuw4pXKhkWd25txQlH30herUVqJGanpT7BM0AQS/jFsFJEiDU1TqhU M9/WHvTYrMipmX1sNoUZD9YL4S4JXpDq8kSmfsSqX2Sxf8OSHByxN1ZcDQ5Y232eYuFW 8jhINxJbZowh4x2woHzXaDpnSgoZMt79Lbtt8=
MIME-Version 1.0
In-Reply-To <CAN1FwxfcL5+Yiz6dJ=8wRrGKkZ=2HsrNnZoYXauQpwu4ALjdxA@mail.gmail.com>
References <CAN1FwxfcL5+Yiz6dJ=8wRrGKkZ=2HsrNnZoYXauQpwu4ALjdxA@mail.gmail.com>
Date Tue, 2 Aug 2011 17:20:07 +0100
Subject Re: python import error, what's wrong?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1785.1312302009.1164.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312302009 news.xs4all.nl 23870 [2001:888:2000:d::a6]:47909
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10744

Show key headers only | View raw


On Tue, Aug 2, 2011 at 4:52 PM, smith jack <thinke365@gmail.com> wrote:
> from org.test.A import A

This is going to look for org/test/A.py but not for org.test/A.py -
are you able to rename your directories to not have dots?

ChrisA

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


Thread

Re: python import error, what's wrong? Chris Angelico <rosuav@gmail.com> - 2011-08-02 17:20 +0100

csiph-web