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


Groups > comp.lang.python > #95800

Re: AttributeError: 'module' object has no attribute '__path__'

Path csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <lac@openend.se>
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; "subject:' ": 0.07; 'cc:addr:python-list': 0.09; 'before.': 0.09; 'cursor': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'subject:module': 0.09; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cc:name:laura creighton': 0.16; 'cc:name:python': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:object': 0.16; 'suggestion.': 0.16; 'unset': 0.16; 'case.': 0.18; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'cc:2**2': 0.20; 'trying': 0.22; 'cc:no real name:2**0': 0.22; 'somewhere': 0.24; 'thus': 0.24; 'mon,': 0.24; 'appear': 0.26; 'received:se': 0.29; 'fixed': 0.31; 'directory,': 0.33; 'file': 0.34; 'path': 0.35; 'something': 0.35; 'instead': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'does': 0.39; 'your': 0.60; 'header:Message-Id:1': 0.61; 'replying': 0.61; 'subject:skip:A 10': 0.63; 'different': 0.63; 'to,': 0.63; 'reply': 0.68; 'header:In-reply-to:1': 0.84; 'thing,': 0.93
To Saran Ahluwalia <ahlusar.ahluwalia@gmail.com>
cc Laura Creighton <lac@openend.se>, Python <python-list@python.org>, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: AttributeError: 'module' object has no attribute '__path__'
In-reply-to <CAC9q6M5S69JL1GVOp_eu0Kj_WPgunzHvFsM6W4kC2Y0gty7D+w@mail.gmail.com>
References <97927258-d389-4bd6-a861-e122e4247ac0@googlegroups.com> <201508312017.t7VKHG8O020529@fido.openend.se> <CAC9q6M5S69JL1GVOp_eu0Kj_WPgunzHvFsM6W4kC2Y0gty7D+w@mail.gmail.com>
Comments In-reply-to Saran Ahluwalia <ahlusar.ahluwalia@gmail.com> message dated "Mon, 31 Aug 2015 17:01:07 -0400."
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <17827.1441059336.1@fido>
Date Tue, 01 Sep 2015 00:15:36 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Tue, 01 Sep 2015 00:15:38 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.21.1441059352.23514.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441059352 news.xs4all.nl 23720 [2001:888:2000:d::a6]:40720
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95800

Show key headers only | View raw


In a message of Mon, 31 Aug 2015 17:01:07 -0400, Saran Ahluwalia writes:
>Laura,
>
>It does not appear to be the case. I actually had to actually unset the
>PYTHONPATH.
>
>Thanks for your suggestion.
>
>Sincerely,
>Saran

Are you and  kbtyo <ahlusar.ahluwalia@gmail.com> the same person?
If deleting your PYTHONPATH fixed it, then somewhere in that PATH
if not your current working directory, you have a different file
that shadowed something you are trying to import.

Can you make the effort to move your cursor to the bottom of
the mail you are replying to, before you start typing,
so that your reply comes after what was said before, instead of
first thing, and thus before what was said before.

Laura

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


Thread

AttributeError: 'module' object has no attribute '__path__' kbtyo <ahlusar.ahluwalia@gmail.com> - 2015-08-31 12:29 -0700
  Re: AttributeError: 'module' object has no attribute '__path__' Laura Creighton <lac@openend.se> - 2015-08-31 22:17 +0200
  Re: AttributeError: 'module' object has no attribute '__path__' Laura Creighton <lac@openend.se> - 2015-09-01 00:15 +0200
    Re: AttributeError: 'module' object has no attribute '__path__' Rustom Mody <rustompmody@gmail.com> - 2015-08-31 20:32 -0700
      Re: AttributeError: 'module' object has no attribute '__path__' Chris Angelico <rosuav@gmail.com> - 2015-09-01 14:07 +1000

csiph-web