Re: import problem

2013-09-16 Thread Dave Angel
On 16/9/2013 00:05, Mohsen Pahlevanzadeh wrote: > thank you, you gave me "how to get fish" instead of "fish", it's very > better. I'd suggest you make a diagram showing each file and indicate what files it imports by an arrow. If any arrows form a circle, you (may) have recursive imports. You s

Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
On Mon, 2013-09-16 at 11:14 +0430, Mohsen Pahlevanzadeh wrote: > On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > > > Dear all, > > > > > > i have the following two line codes: > > > >

Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > > i have the following two line codes: > > > > import ui.interface.interface > > obj = ui.interface.inter

Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
thank you, you gave me "how to get fish" instead of "fish", it's very better. On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > > i have the following two line codes: > > >

Re: import problem

2013-09-15 Thread Steven D'Aprano
On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > Dear all, > > i have the following two line codes: > > import ui.interface.interface > obj = ui.interface.interface.InterfaceCodes() > ###333 > I have same code in a

Re: Import Problem on WIndows py3

2012-09-04 Thread Jimbo Jim
On Tuesday, September 4, 2012 1:45:55 PM UTC-7, Werner Thie wrote: > On 9/4/12 9:49 AM, jimmyli1528 wrote: > > > I have a main program and a 3rd party module. Trying to import colorama, > > where colorama is a folder with files in it, returns an ImportError: No > > module named colorama. How sho

Re: Import Problem on WIndows py3

2012-09-04 Thread Werner Thie
On 9/4/12 9:49 AM, jimmyli1...@gmail.com wrote: I have a main program and a 3rd party module. Trying to import colorama, where colorama is a folder with files in it, returns an ImportError: No module named colorama. How should I import folders? Do you have a (empty) __init__.py file present

Re: Import problem

2010-03-10 Thread News123
Hi JM, Jean-Michel Pichavant wrote: > News123 wrote: >> Jean-Michel Pichavant wrote: >> >>> Johny wrote: >>> I have this directory structure C: \A __init__.py amodule.py \B __init__.py bmod

Re: Import problem

2010-03-10 Thread News123
Hi JM, Jean-Michel Pichavant wrote: > News123 wrote: >> Jean-Michel Pichavant wrote: >> >>> Johny wrote: >>> I have this directory structure C: \A __init__.py amodule.py \B __init__.py bmod

Re: Import problem

2010-03-10 Thread Jean-Michel Pichavant
News123 wrote: Jean-Michel Pichavant wrote: Johny wrote: I have this directory structure C: \A __init__.py amodule.py \B __init__.py bmodule.py \D __init__.py dmodule.py and I want to import bm

Re: Import problem

2010-03-08 Thread News123
Jean-Michel Pichavant wrote: > Johny wrote: >> I have this directory structure >> >> C: >> \A >> __init__.py >> amodule.py >> >> \B >> __init__.py >> bmodule.py >> >>\D >> __init__.py >> dmodule.py >> >> and I

Re: Import problem

2010-03-08 Thread News123
Jean-Michel Pichavant wrote: > Johny wrote: >> I have this directory structure >> >> C: >> \A >> __init__.py >> amodule.py >> >> \B >> __init__.py >> bmodule.py >> >>\D >> __init__.py >> dmodule.py >> >> and I

Re: Import problem

2010-03-08 Thread News123
Hi Steven, Steven D'Aprano wrote: > On Sat, 06 Mar 2010 03:53:53 -0800, Johny wrote: > > import sys > sys.path.append('C:\\A') > from A.B import bmodule >> Traceback (most recent call last): >> File "", line 1, in >> ImportError: No module named A.B > > The current directory is irre

Re: Import problem

2010-03-08 Thread Jean-Michel Pichavant
Johny wrote: I have this directory structure C: \A __init__.py amodule.py \B __init__.py bmodule.py \D __init__.py dmodule.py and I want to import bmodule.py C:\>cd \ C:\>python Python 2.5 (r25:51908, S

Re: Import problem

2010-03-06 Thread Steven D'Aprano
On Sat, 06 Mar 2010 03:53:53 -0800, Johny wrote: import sys sys.path.append('C:\\A') from A.B import bmodule > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named A.B The current directory is irrelevant, except that it is automatically added

Re: Import Problem

2009-12-20 Thread Chris Rebert
On Sun, Dec 20, 2009 at 3:34 AM, Victor Subervi wrote: > But I get this error: > > /var/www/html/angrynates.com/cart/createTables2.py >   263 >   264 ''' >   265 >   266 createTables2() >   267 > createTables2 = >  /var/www/html/angrynates.com/cart/createTables2.py in createTables2() >   105   

Re: import problem in tkinter

2009-10-30 Thread Peter Otten
Dave Angel wrote: > Jebegnana das wrote: >> import _tkinter # If this fails your Python may not be configured for Tk >> >> I'm using python3 in linux. In windows tkinter is working fine but in >> mandriva linux spring 2009 it fails to import. Can you please tell me >> step-by-step on how to fix th

Re: import problem in tkinter

2009-10-30 Thread Dave Angel
Jebegnana das wrote: import _tkinter # If this fails your Python may not be configured for Tk I'm using python3 in linux. In windows tkinter is working fine but in mandriva linux spring 2009 it fails to import. Can you please tell me step-by-step on how to fix this issue? In python3.1 home page

Re: Import Problem - Please help

2009-09-07 Thread newb.py
On Sep 7, 6:55 pm, Ned Deily wrote: > In article > <8119a298-4660-4680-b460-0924c9baa...@e4g2000prn.googlegroups.com>, > >  "newb.py" wrote: > > On Sep 7, 5:40 pm, "newb.py" wrote: > > > I am trying to learn NLP with Python and am getting the following > > > error when trying to do an import sta

Re: Import Problem - Please help

2009-09-07 Thread Ned Deily
In article <8119a298-4660-4680-b460-0924c9baa...@e4g2000prn.googlegroups.com>, "newb.py" wrote: > On Sep 7, 5:40 pm, "newb.py" wrote: > > I am trying to learn NLP with Python and am getting the following > > error when trying to do an import statement: > > > > >>> import nltk > > >>> import re

Re: Import Problem - Please help

2009-09-07 Thread newb.py
On Sep 7, 5:40 pm, "newb.py" wrote: > I am trying to learn NLP with Python and am getting the following > error when trying to do an import statement: > > >>> import nltk > >>> import re > >>> from nltk_lite.utilities import re_show > > Traceback (most recent call last): >   File "", line 1, in >