Re: Attribute error

2015-01-18 Thread Rustom Mody
On Monday, January 19, 2015 at 5:02:01 AM UTC+5:30, Steven D'Aprano wrote: > Mahendra Prajapati wrote: > > > Hello, > > I'm facing this problem with python class, while practising the python > > programming language.It creates an attribute error. I use windows 7 OS. i > > don't why.I just need to

Re: Attribute error

2015-01-18 Thread Steven D'Aprano
Mahendra Prajapati wrote: > Hello, > I'm facing this problem with python class, while practising the python > programming language.It creates an attribute error. I use windows 7 OS. i > don't why.I just need to know why it gives such an error.please let me > know. Regards An attribute error is a

Re: Attribute error

2015-01-18 Thread Denis McMahon
On Sun, 18 Jan 2015 20:50:49 +, Mahendra Prajapati wrote: > Hello, > I'm facing this problem with python class, while practising the python > programming language.It creates an attribute error. I use windows 7 OS. > i don't why.I just need to know why it gives such an error.please let me > kno

Re: Attribute error

2015-01-18 Thread Chris Angelico
On Mon, Jan 19, 2015 at 7:50 AM, Mahendra Prajapati wrote: > I'm facing this problem with python class, while practising the python > programming language.It creates an attribute error. > I use windows 7 OS. i don't why. > I just need to know why it gives such an error. > please let me know. It'

Re: Attribute error while executing python script

2014-04-16 Thread Chris Angelico
On Wed, Apr 16, 2014 at 5:45 PM, ali hanif wrote: > Hi i am a student and working on GNU..I have a python code which i want to > run in GNU radio companion but i am unable to search for the right block to > execute that code...can anyone help me with that??When I execute the same > python code(not

Re: Attribute error-- but I'm innocent(?)

2009-03-03 Thread Denis Kasak
On Tue, Mar 3, 2009 at 6:13 AM, Dennis Lee Bieber wrote: > On Mon, 2 Mar 2009 16:56:58 -0800 (PST), Nick Mellor > declaimed the following in >> >>     def __init(self): >>         self.forename = RandomName("h:\\Testing\\NameDb\ >> \Forenames.csv", namefield = "Forename") > >        Where is "Ran

Re: Attribute error-- but I'm innocent(?)

2009-03-02 Thread Nick Mellor
Thanks Chris and John, all workin now. Sorry about proclamation of innocence-- fruitless morning and 3 hours sleep :-) Nick On Mar 3, 12:03 pm, Chris Rebert wrote: > On Mon, Mar 2, 2009 at 4:56 PM, Nick Mellor > > > > wrote: > > Hi all, > > > I'm pretty sure I'm following all the Python rules:

Re: Attribute error-- but I'm innocent(?)

2009-03-02 Thread John Machin
On Mar 3, 11:56 am, Nick Mellor wrote: > Hi all, > > I'm pretty sure I'm following all the Python rules: I've put "self" > before "forename" to make sure it's treated as a data attribute > (instance variable.) And from within a class, I'm told, you need to > prefix the var with self too. RandomNam

Re: Attribute error-- but I'm innocent(?)

2009-03-02 Thread Chris Rebert
On Mon, Mar 2, 2009 at 4:56 PM, Nick Mellor wrote: > Hi all, > > I'm pretty sure I'm following all the Python rules: I've put "self" > before "forename" to make sure it's treated as a data attribute > (instance variable.) And from within a class, I'm told, you need to > prefix the var with self to

Re: ATTRIBUTE ERROR: 'module' object has no attribute 'ssl'

2006-12-09 Thread John Machin
John Machin wrote: > johnny wrote: > > I am getting the following errors: > > That is *one* error. > > > > File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in > > _send_output > > self.send(msg) > > File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send > > se

Re: ATTRIBUTE ERROR: 'module' object has no attribute 'ssl'

2006-12-09 Thread John Machin
johnny wrote: > I am getting the following errors: That is *one* error. > > File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in > _send_output > self.send(msg) > File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send > self.connect() > File "H:\xampp\xampp\

Re: Attribute error

2006-10-16 Thread Teja
Max Erickson wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > What is attribute error? what causes that error, especially with COM > > objects? > > > > To be precise : > > > > Attribute Error: LCAS.LabcarController.writeLogWindow() > > > > Here, LCAS is a COM object > > > > Tha

Re: Attribute error

2006-10-14 Thread Max Erickson
"Teja" <[EMAIL PROTECTED]> wrote: > Hi all, > > What is attribute error? what causes that error, especially with COM > objects? > > To be precise : > > Attribute Error: LCAS.LabcarController.writeLogWindow() > > Here, LCAS is a COM object > > Thanks > Teja.P > LabcarController might be

Re: Attribute error

2006-10-14 Thread Ben Finney
"Teja" <[EMAIL PROTECTED]> writes: > What is attribute error? exception AttributeError Raised when an attribute reference or assignment fails. http://docs.python.org/lib/module-exceptions.html#l2h-103> > To be precise : Not precise enough, unfortunately. Please construct a minimal,

Re: attribute error using fnmatch

2006-06-05 Thread Fredrik Lundh
> did you verify that the code you posted really has the problem (it does > use the 'os' module which isn't important message.replace("important", "imported") -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute error using fnmatch

2006-06-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > listof_files = [i for i in f if not fnmatch(os.path.join(r,i),pat) and > os.path.isfile(os.path.join(r,i))] > ... > .. > > I get this error: > File "C:\Python24\Lib\fnmatch.py", line 37, in fnmatch > pat = os.path.normcase(pat) > File "C:\Python24\lib\ntpath.py

Re: attribute error

2005-09-29 Thread Steven D'Aprano
On Thu, 29 Sep 2005 15:57:47 -0400, M.N.A.Smadi wrote: > This has nothing to do with how the argument is passed. It is prob > something wrong with str.pop in my python because when i run python and type > import os > import string > x = '1 2 3' > x.pop() > > i get the following error > Tracebac

Re: attribute error

2005-09-29 Thread Steve Holden
Mike Meyer wrote: > In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > >>This has nothing to do with how the argument is passed. It is prob >>something wrong with str.pop in my python because when i run python and type >>import os >>import string >>x = '1 2 3' >>x.pop() >> >>i get

Re: attribute error

2005-09-29 Thread Mike Meyer
In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > This has nothing to do with how the argument is passed. It is prob > something wrong with str.pop in my python because when i run python and type > import os > import string > x = '1 2 3' > x.pop() > > i get the following error > T

Re: attribute error

2005-09-29 Thread M.N.A.Smadi
This has nothing to do with how the argument is passed. It is prob something wrong with str.pop in my python because when i run python and type import os import string x = '1 2 3' x.pop() i get the following error Traceback (most recent call last): File "", line 1, in ? AttributeError: 'str' o

Re: attribute error

2005-09-29 Thread Mike Meyer
In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > HI; > > I am having the following error: > > AttributeError: 'str' object has no attribute 'pop' > > am using Python 2.3.4 and am importing the following libraries: > > import sys, os, inspect > from Asterisk import Manager, Base

Re: attribute error

2005-09-29 Thread M.N.A.Smadi
HI; I am having the following error: AttributeError: 'str' object has no attribute 'pop' am using Python 2.3.4 and am importing the following libraries: import sys, os, inspect from Asterisk import Manager, BaseException, Config import Asterisk.Util The code being executed is: if command

Re: attribute error

2005-09-26 Thread Mike Meyer
"M.N.A.Smadi" <[EMAIL PROTECTED]> writes: > HI; > > I am having the following error. I am using someone else's code and > all they are doing is pass an argv to a function then > > def execute_action(manager, argv): > method_name = argv.pop(0).lower() > > > and am getting this strange error.

Re: attribute error

2005-09-26 Thread Steven D'Aprano
On Mon, 26 Sep 2005 18:28:56 -0400, M.N.A.Smadi wrote: > HI; > > I am having the following error. I am using someone else's code and > all they are doing is pass an argv to a function then > > def execute_action(manager, argv): > method_name = argv.pop(0).lower() > > > and am getting th