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
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:
> > >
>
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
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:
> >
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
21 matches
Mail list logo