Re: python import error

2013-12-11 Thread John Gordon
In <58f7bd2a-ef82-4782-b4fb-db824f9c8...@googlegroups.com> smilesonisa...@gmail.com writes: > > > File "aaa.py", line 5, in > > > > > from ccc.ddd import sss > > > > > ImportError: No module named ccc.ddd > > > > > directory structure as follows: > > > > > ccc > > > | > > > ddd > > >

Re: python import error

2013-12-11 Thread Mark Lawrence
On 11/12/2013 05:45, smilesonisa...@gmail.com wrote: On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> smilesonisa...@gmail.com writes: File "aaa.py", line 5, in from ccc.ddd import sss ImportEr

Re: python import error

2013-12-10 Thread Benjamin Kaplan
On Tue, Dec 10, 2013 at 9:45 PM, wrote: > On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: >> In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> >> smilesonisa...@gmail.com writes: >> >> >> >> > File "aaa.py", line 5, in >> >> > from ccc.ddd import sss >> >

Re: python import error

2013-12-10 Thread smilesonisamal
On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: > In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> > smilesonisa...@gmail.com writes: > > > > > File "aaa.py", line 5, in > > > from ccc.ddd import sss > > > ImportError: No module named ccc.ddd > > >

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 09:25 PM, Michael Torrie wrote: > On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: >> Traceback (most recent call last): >> File "aaa.py", line 5, in >> from ccc.ddd import sss >> ImportError: No module named ccc.ddd >> >> directory structure as follows: >> >> ccc >> | >

Re: python import error

2013-12-10 Thread John Gordon
In <93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com> smilesonisa...@gmail.com writes: > File "aaa.py", line 5, in > from ccc.ddd import sss > ImportError: No module named ccc.ddd > directory structure as follows: > ccc > | > ddd >| > aaa.py > sss.py A python file isn'

Re: python import error

2013-12-10 Thread Michael Torrie
On 12/10/2013 08:56 PM, smilesonisa...@gmail.com wrote: > Traceback (most recent call last): > File "aaa.py", line 5, in > from ccc.ddd import sss > ImportError: No module named ccc.ddd > > directory structure as follows: > > ccc > | > ddd >| > aaa.py > sss.py This is because

Re: python import error, what's wrong?

2011-08-03 Thread Ben Finney
Ulrich Eckhardt writes: > > the directory structure is as follows: > > > > src > > org.test > > A.py > > org.lab > > B.py > > Python uses a dot as separator between different parts of nested > structures, like e.g. the directories during import. More generally, the name of a mod

Re: python import error, what's wrong?

2011-08-03 Thread Ulrich Eckhardt
smith jack wrote: > 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 str

Re: python import error, what's wrong?

2011-08-02 Thread Chris Angelico
On Tue, Aug 2, 2011 at 4:52 PM, smith jack 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 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python import Error

2009-07-18 Thread David Stanek
On Sat, Jul 18, 2009 at 3:14 AM, Kalyan Chakravarthy wrote: > Hi All, >    I am using Python 2.6, MySQL 4.0 , I have successfully > Instaled MySQLdb (MySQL-python-1.2.3c1.win32-py2.6) in my system. I tested > through command prompt with "import MySQLdb ", its not shwing any errors >