Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10741
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <thinke365@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python': 0.08; 'subject:error': 0.11; 'subject:python': 0.12; 'a()': 0.16; 'a.py': 0.16; 'b.py': 0.16; 'pydev': 0.16; 'received:209.85.213.174': 0.16; 'received:mail- yx0-f174.google.com': 0.16; 'subject:import': 0.16; 'subject:wrong': 0.16; 'seems': 0.20; 'wrong?': 0.23; 'structure': 0.23; 'message-id:@mail.gmail.com': 0.28; 'import': 0.29; 'module': 0.30; 'class': 0.31; 'subject:?': 0.31; 'error': 0.31; 'shows': 0.32; "what's": 0.33; 'to:addr:python-list': 0.34; '...': 0.34; 'follows:': 0.34; 'things': 0.34; 'like:': 0.35; 'but': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'run': 0.39; 'program,': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'why?': 0.73 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=m6IMtcztgqd1wbSo2nZiDntqRdmb8pRmj6RPG06y+Tg=; b=W8Mty6kYhEp8sQGnzTR3xzbUWdSRxvpR7iLxao/Nfooa+BGyzdffs7odQqDZDZya9D nbdCpzJFDBf6kjT5N37zpbmY8UrC/GN+d8Dq3P7E7KBbkpyU22Ne3ZkfYIUCWBW6UO4g DooJaun2i4tUplhkNyhKgZPd/Cw0tR0+wZww8= |
| MIME-Version | 1.0 |
| Date | Tue, 2 Aug 2011 23:52:42 +0800 |
| Subject | python import error, what's wrong? |
| From | smith jack <thinke365@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.1783.1312300365.1164.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1312300365 news.xs4all.nl 23981 [2001:888:2000:d::a6]:60894 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10741 |
Show key headers only | View raw
I am using pydev plugin in eclipse, all things works just as well
but now i have confronted with a confusing problem, that is i can
import a module write by myself successfully, but when i try to run
this program,
error just shows up, what's wrong?
the directory structure is as follows:
src
org.test
A.py
org.lab
B.py
contents of A seems like:
class A
...
contents of B seems like: // I try to run B.py,
python import error just appears, why?
from org.test.A import A
a = A()
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
python import error, what's wrong? smith jack <thinke365@gmail.com> - 2011-08-02 23:52 +0800
Re: python import error, what's wrong? Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-08-03 09:14 +0200
Re: python import error, what's wrong? Ben Finney <ben+python@benfinney.id.au> - 2011-08-03 17:45 +1000
csiph-web