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

python import error

2013-12-10 Thread smilesonisamal
Hi, I am a new bie in python I was trying to execute the python script aaa.py in fedora which imports different modules. Actually when I am executing the aaa.py I am getting the following error and PYTHON_PATH=/bin/python which has a symlink to python-2.7. Please help me in this regard? I am

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
. Try this structure instead: src org test A.py lab B.py or maybe 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, > p

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

python import error, what's wrong?

2011-08-02 Thread smith jack
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() -- 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 >

Python import Error

2009-07-18 Thread Kalyan Chakravarthy
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 (means its instaled successfully), I set Eneceranment variable fo

swig-python import error

2008-03-07 Thread abarun22
Hi I am facing a problem while loading a SWIG generated shared module from python. The development is under HP-UX 32b platform. I use gcc version 4.0.2 to build the shared module. This is how i try to build the module. # Compilation GCC="$GCC -march=1.1" $GCC -v -c -fpic ${ETUDE}.c ${ETUDE}_wrap.