Re: AttributeError: logging module bug ?

2009-12-15 Thread Peter
What's the problem ? Please provide the config file "logging.cfg" to ease debugging. Peter Here it is, thanks for having a look Peter # supports no whitespace !!! [DEFAULT] logdir=/tmp logfile=python logging_server=localhost [loggers] keys=root,module,class,data,class_1,data_1,of_

Re: AttributeError: logging module bug ?

2009-12-16 Thread Peter Otten
Peter wrote: >>> What's the problem ? >>> >> Please provide the config file "logging.cfg" to ease debugging. >> >> Peter >> > Here it is, thanks for having a look > Peter Unfortunately I still can't reproduce your problem. With a minimal file ./of/logger.py from logging import Formatt

Re: AttributeError: logging module bug ?

2009-12-18 Thread Peter
./of/logger.py from logging import Formatter class RootFormatter(Formatter): pass class ModuleFormatter(Formatter): pass class ClassFormatter(Formatter): pass class DataFormatter(Formatter): pass (and an empty ./of/__init__.py) your initial script runs without error. If yo

Re: AttributeError: logging module bug ?

2009-12-20 Thread Gabriel Genellina
En Sat, 19 Dec 2009 00:18:26 -0300, Peter escribió: This was somehow unexpected for me, since in a module using logger.py, I could use either import: from mylogger import logger # without package name or from of.mylogger import logger # with package name but this does not seem to work f

Re: AttributeError: logging module bug ?

2009-12-21 Thread Peter
On 12/21/2009 08:35 AM, Gabriel Genellina wrote: En Sat, 19 Dec 2009 00:18:26 -0300, Peter escribió: This was somehow unexpected for me, since in a module using logger.py, I could use either import: from mylogger import logger # without package name or from of.mylogger import logger # wi

AttributeError of a module instance

2004-12-26 Thread Paolino
I'd like to catch AttributeError on the module level,so that I can declare default bindings for useds defore definition.How is this to be done?Thanks for help. Paolino -- http://mail.python.org/mailman/listinfo/python-list

Re: Weird UserArray AttributeError (bug ?)

2005-05-06 Thread George Sakkis
To answer my own question, the error is caused by the __setattr__ defined in UserArray: def __setattr__(self,attr,value): if attr=='shape': self.array.shape=value self.__dict__[attr]=value I'm not sure though how to "undefine" __setattr__ in a subclass so that property

Reg: PIL2.4 Error: AttributeError: pixel_access

2008-12-01 Thread Kottiyath
ackages\PIL\Image.py", line 599, in load return self.im.pixel_access(self.readonly) AttributeError: pixel_access When I googled this error, I saw that such an error could be because of some botched installation. So, I re-installed PIL. But still this error persists. The version is >&g

Re: Pb with an AttributeError

2007-09-27 Thread Nathan Harmston
here is a split with the equal : >TheParts = string.split(string1["param"], "=") >print " * TheParts = (", TheParts ,") \n" > > But, running the program returns : > > Traceback (most recent call last): > File "C:\test\hel

Re: Pb with an AttributeError

2007-09-27 Thread Nathan Harmston
t; ']} ) > > > > Then, there is a split with the equal : > >TheParts = string.split(string1["param"], "=") > >print " * TheParts = (", TheParts ,") \n" > > > > But, running the program returns : > > >

RE: Pb with an AttributeError

2007-09-27 Thread Eric BOUVIER
: jeudi 27 septembre 2007 18:16 > À : Eric BOUVIER > Cc : python-list@python.org > Objet : Re: Pb with an AttributeError > > Hi, > > I m not sure what your trying to do, but this is where your > problem is: > > string1 is not a string it is actually a dict because of

AttributeError - FM Receiver - Intermediate freq.

2007-10-18 Thread noroi
;/usr/local/lib/python2.4/site-packages/gnuradio/usrp.py", line 181, in __getattr__ return getattr(self._u, name) AttributeError: 'usrp1_source_c_sptr' object has no attribute 'get_output_freq' ps. link for the full script is as below: http://www.gnu.org/softwar

Re: Weird AttributeError With Imports

2007-10-28 Thread Peter Otten
Juha S. wrote: > I'm getting a "AttributeError: 'module' object has no attribute 'clock'" > when importing a module from within two packages related to the line: > "self.lastTime = time.clock()" in the __init__() of the class Time in >

Re: Weird AttributeError With Imports

2007-10-28 Thread Juha S.
Peter Otten wrote: > Juha S. wrote: > > >> I'm getting a "AttributeError: 'module' object has no attribute 'clock'" >> when importing a module from within two packages related to the line: >> "self.lastTime = time.cl

Re: Weird AttributeError With Imports

2007-10-28 Thread Gabriel Genellina
En Sun, 28 Oct 2007 14:50:24 -0300, Juha S. <[EMAIL PROTECTED]> escribi�: > Peter Otten wrote: >> You probably have a time module that you wrote yourself and which is now >> hiding the one in python's standard library. Was your mytime.py formerly >> named time.py, and if so, did you remove the cor

today's gotcha: @property and AttributeError

2016-11-12 Thread Cameron Simpson
transmutes internal AttributeErrors into RuntimeErrors. ''' def wrapper(*a, **kw): try: return func(*a, **kw) except AttributeError as e: raise RuntimeError("inner function %s raised %s" % (func, e)) return property(wrapper) I was debugging a cla

How to ingore "AttributeError: exception

2017-09-22 Thread Ganesh Pal
data.data[0][0] else: Z_block = disk_object.data.data.di_data[0] if not Z_block: return False return Z_block I have a problem with if and else satement i.e if IF codition fails the code would exit with "AttributeError: 'list' object has no attribu

AttributeError in "with" statement (3.2.2)

2011-12-13 Thread Steve Howell
dbye_function(foo) foo.goodbye() # outputs goodbye Steve foo.__exit__ = foo.goodbye foo.__exit__() # outputs goodbye Steve with foo: # fails with AttributeError: __exit__ print("doing stuff") I am dynamically adding an attribute __exit__ to the variable foo, which works fine when I call it dire

AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread matt . doolittle33
ine 54, in __getattr__ return getattr(self._hb, name) AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback' I have been getting this error in multiple programs. So what is stopping the program here? There is no Attribute .set_callback obviously. But where i

Re: AttributeError of a module instance

2004-12-27 Thread Paolino
Terry Reedy wrote: I'd like to catch AttributeError on the module level,so that I can declare default bindings for useds defore definition.How is this to be done? 'defore' is obviously 'before', but what is 'useds'? In and case... Unresolved bindings,po

Re: AttributeError of a module instance

2005-01-07 Thread holger krekel
On Mon, Dec 26, 2005 at 17:41 +, Paolino wrote: > I'd like to catch AttributeError on the module level,so that I can > declare default bindings for useds defore definition.How is this to be > done?Thanks for help. It cannot be done directly but with a small hack. Th

Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
Hi all, I am getting an error message when trying to use the P4 print command via the python api for perforce. Anytime that I run p4c.run("print","-q", eachFile), I keep getting an error message: "AttributeError: OutputBinary." Here is my code below: Please Help

Re: Reg: PIL2.4 Error: AttributeError: pixel_access

2008-12-01 Thread Kottiyath
on24\Lib\site-packages\PIL\Image.py", line 1372, in > save >     self.load() >   File "C:\Python24\Lib\site-packages\PIL\Image.py", line 599, in load >     return self.im.pixel_access(self.readonly) > AttributeError: pixel_access > > When I googled this error, I saw t

AttributeError: module object has no attribute

2008-05-20 Thread Nikhil
I have recently written a small module. When I import the module, I always get the error only when I do >>> from local.my.module import * -- Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute '/xyz/py/f

AttributeError: How to list existing attributes?

2007-09-19 Thread Thomas Guettler
Hi, how can you list the attributes of an object if you catch an AttributeError? I couldn't find a reference in the exception object, which points to the object. I want to call dir() on the object to list the user the known attributes. Is there a way to find the object by inspectin

AttributeError: '' object has no attribute 'SeriesCollection'

2014-02-13 Thread Jaydeep Patil
chartObj.SeriesCollection().NewSeries() File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 465, in __getattr__ raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr)) AttributeError: ''

Re: How to ingore "AttributeError: exception

2017-09-22 Thread Thomas Jollans
a problem with if and else satement i.e if IF codition fails the > code would exit with "AttributeError: 'list' object has no attribute > 'data' " error > > Any suggestion on how this can be handled better , Will ignoring the > exceptions in try -except

Re: How to ingore "AttributeError: exception

2017-09-22 Thread Paul Moore
f not Z_block: >> return False >> >> return Z_block >> >> >> >> >> I have a problem with if and else satement i.e if IF codition fails the >> code would exit with "AttributeError: 'list' object has no attribute

Re: How to ingore "AttributeError: exception

2017-09-22 Thread Ganesh Pal
> > > is a perfectly good pattern to use. > Thanks looks nice :) > > > > > > > > I am a Linux user on Python 2.7 > > Have you considered moving to Python 3? > Not yet , but Is there something that I need to consider in the current context? Regards, Ganesh -- https://mail.python.org/mailma

Extra AttributeError inside property - possible bug ?

2015-08-31 Thread dunric29a
Hello, bellow is a simple Python2 example of a class which defines __getattr__ method and a property, where AttributeError exception is raised: from __future__ import print_function class MyClass(object): def __getattr__(self, name): print('__getattr__ <<', nam

Re: AttributeError in "with" statement (3.2.2)

2011-12-13 Thread Eric Snow
>  def goodbye(): >    print("goodbye " + obj.name) >  obj.goodbye = goodbye > > add_goodbye_function(foo) > foo.goodbye() # outputs goodbye Steve > foo.__exit__ = foo.goodbye > foo.__exit__() # outputs goodbye Steve > > with foo: # fails with AttributeError:

Re: AttributeError in "with" statement (3.2.2)

2011-12-13 Thread Terry Reedy
ce*. with foo: # fails with AttributeError: __exit__ print("doing stuff") I am dynamically adding an attribute __exit__ to the variable foo, which works fine when I call it directly, but it fails when I try to use foo as the expression in the with statement. Here is the full outp

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Steven D'Aprano
On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: > To complement what Eric says below: The with statement is looking for an > instance *method*, which by definition, is a function attribute of a > *class* (the class of the context manager) that takes an instance of the > class as its first p

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Peter Otten
print("goodbye " + obj.name) > obj.goodbye = goodbye > > add_goodbye_function(foo) > foo.goodbye() # outputs goodbye Steve > foo.__exit__ = foo.goodbye > foo.__exit__() # outputs goodbye Steve > > with foo: # fails with AttributeError: __exit__ > print(&

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread 88888 Dihedral
On Wednesday, December 14, 2011 4:01:24 PM UTC+8, Steven D'Aprano wrote: > On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: > > > To complement what Eric says below: The with statement is looking for an > > instance *method*, which by definition, is a function attribute of a > > *class* (the

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread 88888 Dihedral
On Thursday, December 15, 2011 12:08:32 AM UTC+8, 8 Dihedral wrote: > On Wednesday, December 14, 2011 4:01:24 PM UTC+8, Steven D'Aprano wrote: > > On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: > > > > > To complement what Eric says below: The with statement is looking for an > > > ins

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Eric Snow
t; >> foo = Foo() >> foo.name = "Steve" >> >> def add_goodbye_function(obj): >>  def goodbye(): >>    print("goodbye " + obj.name) >>  obj.goodbye = goodbye >> >> add_goodbye_function(foo) >> foo.goodbye() # outputs goodbye Ste

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Steve Howell
On Dec 14, 12:01 am, Steven D'Aprano wrote: > [...] > > So the normal lookup rules that apply to data attributes, namely > instance, then class, then superclasses, also applies to methods in > Python. In languages that don't allow that sort of thing, like Java, you > need to use convoluted design

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Lie Ryan
On 12/15/2011 03:56 AM, Eric Snow wrote: On Tue, Dec 13, 2011 at 11:05 PM, Eric Snow wrote: If you want to be more dynamic about it you can do it, but it involves black magic. Chances are really good that being explicit through your class definition is the right approach. Note that the black

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Eric Snow
On Wed, Dec 14, 2011 at 12:14 PM, Lie Ryan wrote: > On 12/15/2011 03:56 AM, Eric Snow wrote: >> >> On Tue, Dec 13, 2011 at 11:05 PM, Eric Snow >>  wrote: >> >> If you want to be more dynamic about it you can do it, but it involves >> black magic.  Chances are really good that being explicit throug

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Terry Reedy
On 12/14/2011 3:01 AM, Steven D'Aprano wrote: On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: To complement what Eric says below: The with statement is looking for an instance *method*, which by definition, is a function attribute of a *class* (the class of the context manager) that take

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Steven D'Aprano
On Wed, 14 Dec 2011 18:13:36 -0500, Terry Reedy wrote: > On 12/14/2011 3:01 AM, Steven D'Aprano wrote: >> On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: >> >>> To complement what Eric says below: The with statement is looking for >>> an instance *method*, which by definition, is a function

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread MRAB
On 15/12/2011 05:01, Steven D'Aprano wrote: On Wed, 14 Dec 2011 18:13:36 -0500, Terry Reedy wrote: On 12/14/2011 3:01 AM, Steven D'Aprano wrote: On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: To complement what Eric says below: The with statement is looking for an instance *metho

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Steven D'Aprano
On Thu, 15 Dec 2011 05:15:58 +, MRAB wrote: > On 15/12/2011 05:01, Steven D'Aprano wrote: >> On Wed, 14 Dec 2011 18:13:36 -0500, Terry Reedy wrote: >> >>> On 12/14/2011 3:01 AM, Steven D'Aprano wrote: On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: > To complement what

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Steven D'Aprano
On Thu, 15 Dec 2011 05:01:21 +, Steven D'Aprano wrote: >> From the Python glossary: >> "method: A function which is defined inside a class body." >> >> That is actually a bit too narrow, as a function can be added to the >> class after it is defined. But the point then is that it is treated

Re: AttributeError in "with" statement (3.2.2)

2011-12-15 Thread Steve Howell
On Dec 14, 9:01 pm, Steven D'Aprano wrote: > [...] > So what are methods? In Python, methods are wrappers around functions > which automatically pass the instance to the inner function object. Under > normal circumstances, you create methods by declaring functions inside a > class, but that's not

Re: AttributeError in "with" statement (3.2.2)

2011-12-15 Thread Gregory Ewing
MRAB wrote: To give an analogy, it is like defining mammals as "hairy animals which give birth to live young", which is correct for all mammals except for monotremes, which are mammals which lay eggs. Or the naked mole-rat. Or cetaceans (whales). The way I understand it, the main characteris

Re: AttributeError in "with" statement (3.2.2)

2011-12-15 Thread Terry Reedy
On 12/15/2011 12:01 AM, Steven D'Aprano wrote: On Wed, 14 Dec 2011 18:13:36 -0500, Terry Reedy wrote: On 12/14/2011 3:01 AM, Steven D'Aprano wrote: On Wed, 14 Dec 2011 01:29:13 -0500, Terry Reedy wrote: To complement what Eric says below: The with statement is looking for an instance *method

Re: AttributeError in "with" statement (3.2.2)

2011-12-15 Thread Steven D'Aprano
On Thu, 15 Dec 2011 05:35:55 -0800, Steve Howell wrote: > For the special methods like __enter__ and __exit__, the tricky part > isn't understanding what would happen once the methods were called; the > tricky part is getting them to be called in the first place, if they > were not declared inside

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Steven D'Aprano
On Thu, 15 Dec 2011 19:39:17 -0500, Terry Reedy wrote: [...] After reading your post, I think I have worked out where our disagreement lines: you think that bound methods and instance methods are not the same thing, and that a function defined inside a class is different from a function outside

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Terry Reedy
On 12/16/2011 4:22 AM, Steven D'Aprano wrote: On Thu, 15 Dec 2011 19:39:17 -0500, Terry Reedy wrote: [...] After reading your post, I think I have worked out where our disagreement lines: you think that bound methods and instance methods are not the same thing, Do you agree that an unbound met

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Ethan Furman
Terry Reedy wrote: On 12/16/2011 4:22 AM, Steven D'Aprano wrote: On Thu, 15 Dec 2011 19:39:17 -0500, Terry Reedy wrote: [...] After reading your post, I think I have worked out where our disagreement lies: you think that bound methods and instance methods are not the same thing, Do you agree

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Ethan Furman
Ethan Furman wrote: Terry Reedy wrote: On 12/16/2011 4:22 AM, Steven D'Aprano wrote: On Thu, 15 Dec 2011 19:39:17 -0500, Terry Reedy wrote: [...] After reading your post, I think I have worked out where our disagreement lies: you think that bound methods and instance methods are not the same

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Steven D'Aprano
On Fri, 16 Dec 2011 17:05:57 -0500, Terry Reedy wrote: > On 12/16/2011 4:22 AM, Steven D'Aprano wrote: >> On Thu, 15 Dec 2011 19:39:17 -0500, Terry Reedy wrote: [...] >> >> After reading your post, I think I have worked out where our >> disagreement lines: you think that bound methods and instance

Re: AttributeError in "with" statement (3.2.2)

2011-12-16 Thread Steven D'Aprano
On Fri, 16 Dec 2011 15:26:30 -0800, Ethan Furman wrote: > Terry Reedy wrote: >> On 12/16/2011 4:22 AM, Steven D'Aprano wrote: [...] > I think you two are in violent agreement as far as how Python is > functioning, and the conflict is in the names given to the various > pieces... I think a glossar

Re: AttributeError in "with" statement (3.2.2)

2011-12-17 Thread Terry Reedy
On 12/16/2011 8:26 PM, Steven D'Aprano wrote: On Fri, 16 Dec 2011 17:05:57 -0500, Terry Reedy wrote: It is am important distinction [unbound versus bound] It is not an important distinction, and I am not confusing the two. So we agree on the distinction but disagree on its importance. Let

Re: AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread Chris Angelico
python2.7/dist-packages/gnuradio/gr/hier_block2.py", > line 54, in __getattr__ > return getattr(self._hb, name) > AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback' > > I have been getting this error in multiple programs.

RE: AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread Graham Fielding
> Date: Sat, 23 Feb 2013 10:22:54 -0800 > Subject: AttributeError: ' ' object has no attribute ' ' > From: matt.doolittl...@gmail.com > To: python-list@python.org > > I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get &

Re: AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread matt . doolittle33
yeah im not a programmer, i have not wrote anything here that i am trying to use; i am an end user. my only interest in this code is to get the program working. so i have to do what i have to do try to get it working. im just hoping that what im going through here, this error thats coming up

Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
The function "baR()" does not exist in "foo". This cause an AttributeError when run with a Python interpreter. The described error is not detected in my IDE (Emacs with eglot, pylsp and flake8) and not by flake8 on the shell. Because the involved tools do not look inside the &

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-13 Thread Raji Seetharaman
ollowing error Traceback (most recent call last): File "addressbookglade.py", line 63, in update self.ssn = self.wTree.get_widget("ssn"). get_text() AttributeError: 'NoneType' object has no attribute 'get_text' Also i already set the name in properties win

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-14 Thread Raji Seetharaman
-- Forwarded message -- > From: MRAB > To: python-list@python.org > Date: Sun, 13 Sep 2009 19:44:30 +0100 > Subject: Re: AttributeError: 'NoneType' object has no attribute 'get_text' > Raji Seetharaman wrote: > >> Hi all, >> i d

AttributeError: 'SSLSocket' object has no attribute 'producer_fifo'

2009-10-22 Thread VYAS ASHISH M-NTB837
poll is_w = obj.writable() File "C:\Python31\lib\asynchat.py", line 222, in writable return self.producer_fifo or (not self.connected) File "C:\Python31\lib\asyncore.py", line 398, in __getattr__ return getattr(self.socket, attr) AttributeError: 'SSLSocket

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-01 Thread Raji Seetharaman
uot;, line 34, in add thistime = adder( self.wTree.get_widget("entryNumber1").get_text(), self.wTree.get_widget("entryNumber2").get_text()) AttributeError: 'NoneType' object has no attribute 'get_text' What has to be done to overcome this error? R

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-02 Thread Raji Seetharaman
On Wed, Sep 2, 2009 at 10:11 AM, Raji Seetharaman wrote: > > Thanks MRAB. Now it works. > Raji.S -- http://mail.python.org/mailman/listinfo/python-list

AttributeError: 'module' object has no attribute 'pack'

2009-09-10 Thread Sampsa Riikonen
ickle.py", line 171, in class Pickler: File "/usr/lib/python2.6/pickle.py", line 250, in Pickler def put(self, i, pack=struct.pack): AttributeError: 'module' object has no attribute 'pack' Any ideas how to fix this? Kind Regards, Sampsa

AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-10 Thread [EMAIL PROTECTED]
Hi I built and installed python 2.5 from source and when I do this: opener = urllib2.build_opener(SmartRedirectHandler(), DefaultErrorHandler(), urllib2.HTTPSHandler()) I get this error. AttributeError: 'module' object has no attribute 'HTTPSHandler' What should I do? -- ht

AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-13 Thread Matt McCredie
> > I am using Fedora Core 4 linux. Where should I look for _ssl.pyd ? I > am trying to build and use Python-2.5.1 > I don't have access to that type of system. I do know that you need OpenSSL to use ssl. It might be as simple as just finding and installing OpenSSL for fedora. You can also find t

AttributeError: 'tuple' object has no attribute 'encode'

2007-04-05 Thread erikcw
Hi, I'm trying to build a SQL string sql = """INSERT INTO ag ('cid', 'ag', 'test') VALUES(%i, %s, %d)""", (cid, ag, self.data[parent][child]['results']['test']) It raises this error: AttributeError: 'tup

AttributeError: 'Attributes' object has no attribute 'saveFile'

2006-08-31 Thread crystalattice
eFile (saveFile is part of the pushedButton method), calling Attributes.saveFile, and calling self.saveFile. Every time, I get the AttributeError message stating saveFile is not an attribute of either the classes or any function. The reason I want to keep the same saveFile attribute through every cla

AttributeError: Logger instance has no attribute 'setFormatter'

2006-12-11 Thread johnny
x27;%(name)-12s: %(levelname)-8s %(message)s') log.setFormatter(formatter) log.setLevel(logging.DEBUG) fhnd = logging.FileHandler('py_mybase.log') fhnd.setLevel(logging.DEBUG) log.addHandler(fhnd) My Error: log.setFormatter(formatter) AttributeError: Lo

AttributeError: ClassA instance has no attribute '__len__'

2005-03-30 Thread MackS
I'm new to Python. In general I manage to understand what is happening when things go wrong. However, the small program I am writing now fails with the following message: AttributeError: ClassA instance has no attribute '__len__' Following the traceback,I see that the offending

AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread adrian
File "/usr/local/bin/SquidClamAV_Redirector.py", line 145, in __init__ self.__start_urlhandler__() File "/usr/local/bin/SquidClamAV_Redirector.py", line 454, in __start_urlhandler__ urllib.socket.setdefaulttimeout(self.timeout) AttributeError: 'module' ob

Re: Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
I received a response from Robert Cowham ( the author of the API): The problem is that something like print was only expected to be done for text files not binary. You could try editing p4.py and add a method similar to: def OutputText(self, text): "Adds text lines to the output data

Re: Perforce p4c.run("print" error - AttributeError: OutputBinary

2006-03-28 Thread kbperry
This seemed to fix my problem. Keith www.301labs.com -- http://mail.python.org/mailman/listinfo/python-list

AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread Jay Jesus Amorin
Hi, Kindly help, I've got this error when running my script: AttributeError: 'module' object has no attribute 'open_workbook' Here's my code: #!/usr/bin/python import xlrd import sys mySpreadsheet = xlrd.open_workbook(open(sys.argv[1])) firstSheet = wb.sheet_by

AttributeError: 'module' object has no attribute 'letters'

2008-02-11 Thread black_13
he, pythoncom File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 24, in import build File "C:\Python25\lib\site-packages\win32com\client\build.py", line 507, in valid_identifier_chars = string.letters + string.digits + "_" AttributeError:

Re: AttributeError: module object has no attribute

2008-05-20 Thread abhilash pp
>> from local.my.module import * > > -- > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute '/xyz/py/file' > --- > > > but when I do the below, I do not get any error. >

Re: AttributeError: module object has no attribute

2008-05-20 Thread Peter Otten
Nikhil wrote: > I have recently written a small module. When I import the module, I > always get the error > > > only when I do > > >>> from local.my.module import * > > -- > Traceback (most recent call last): >File "", line 1, in >

Re: AttributeError: module object has no attribute

2008-05-20 Thread Nikhil
Peter Otten wrote: Nikhil wrote: I have recently written a small module. When I import the module, I always get the error only when I do >>> from local.my.module import * -- Traceback (most recent call last): File "", line 1, in AttributeError: 'module'

Re: AttributeError: module object has no attribute

2008-05-20 Thread Marc 'BlackJack' Rintsch
;> >>> from local.my.module import * >>> >>> -- >>> Traceback (most recent call last): >>>File "", line 1, in >>> AttributeError: 'module' object has no attribute '/xyz/py/file' >>> --- >>>

Re: AttributeError: module object has no attribute

2008-05-20 Thread Nikhil
k (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute '/xyz/py/file' --- but when I do the below, I do not get any error. -- >> import local.my.module >> -- Any ideas on what could be wrong? Are you abusing

Re: AttributeError: How to list existing attributes?

2007-09-19 Thread Diez B. Roggisch
Thomas Guettler wrote: > Hi, > > how can you list the attributes of an object if you catch an > AttributeError? > > I couldn't find a reference in the exception object, which > points to the object. > > I want to call dir() on the object to list the user the kno

Re: AttributeError: How to list existing attributes?

2007-09-19 Thread Thomas Guettler
Diez B. Roggisch wrote: > Thomas Guettler wrote: > >> Hi, >> >> how can you list the attributes of an object if you catch an >> AttributeError? >> >> I couldn't find a reference in the exception object, which >> points to the object. >&

AttributeError: 'Or' object has no attribute 'as_independent'

2014-02-13 Thread wilsonmonde
7\lib\site-packages\sympy\solvers\solvers.py", line 1434, in _ solve_system i, d = _invert(g, *symbols) File "C:\Python27\lib\site-packages\sympy\solvers\solvers.py", line 2422, in _ invert indep, dep = lhs.as_independent(*symbols) AttributeError: 'Or' object has no

Re: AttributeError: '' object has no attribute 'SeriesCollection'

2014-02-13 Thread Ben Finney
Jaydeep Patil writes: > I have created chart object. But unable to add series into chart. Your code isn't self-contained (we are not able to run it as you presented it). Are you relying on some specific third-party library? If so, you need to be explicit. You may also get better response if you

Re: AttributeError: '' object has no attribute 'SeriesCollection'

2014-02-13 Thread Jaydeep Patil
chartObj.SeriesCollection().NewSeries() File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 465, in __getattr__ raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr)) AttributeError: '' object has no attribute 'SeriesCollection' >>> se = chartObj.SeriesCollection().NewSeries() Regards Jay -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: '' object has no attribute 'SeriesCollection'

2014-02-13 Thread Tim Golden
On 13/02/2014 11:58, Jaydeep Patil wrote: > Just consider that you have chart object & you need to add data series for > that chart. How you can add this? Jaydeep: you're writing to a general Python list. Few of the people here run on Windows; fewer still will use Python to automate Excel via COM

RE: AttributeError: '' object has no attribute 'SeriesCollection'

2014-02-13 Thread Stefan Schukat
e.Chart.SeriesCollection >> Regards Stefan Schukat -Original Message- From: Python-list [mailto:python-list-bounces+sschukat=dspace...@python.org] On Behalf Of Jaydeep Patil Sent: Thursday, February 13, 2014 12:05 PM To: python-list@python.org Subject: AttributeError: '&

joblib AttributeError: 'module' object has no attribute

2018-04-14 Thread Ho Yeung Lee
ile "C:\Python27\lib\multiprocessing\pool.py", line 102, in worker task = get() File "C:\Python27\lib\site-packages\joblib\pool.py", line 362, in get return recv() AttributeError: 'module' object has no attribute 'easysearch' how to solve this bug? imp

AttributeError: 'module' object has no attribute 'fork'

2014-08-06 Thread Satish ML
;C:/Python34/pipe1.py", line 11, in parent if os.fork() == 0: AttributeError: 'module' object has no attribute 'fork' Why does this error appear? Module os provides fork(). How to solve this problem? Kindly help. -- https://mail.python.org/mailman/listinfo/python-list

AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread Abder-Rahman Ali
.GetImageData()) probe.Update() In another class ---> LineLogicTest I had the following portion of code: logic = LineLogic() probe = logic.probe data = probe.GetOutput().GetPointData().GetScalars() When I try running the program, I get the following error: AttributeError: LineLogic instance has no attrib

AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread kbtyo
well. I am not sure where to start modifying the path and fear that I will break my initial setup. I welcome feedback on next steps. --- AttributeErrorTraceback (most recent call last) C:\Program

Re: Extra AttributeError inside property - possible bug ?

2015-09-01 Thread Peter Otten
dunric...@gmail.com wrote: > Hello, > > bellow is a simple Python2 example of a class which defines __getattr__ > method and a property, where AttributeError exception is raised: > > from __future__ import print_function > > class MyClass(object): >

AttributeError: 'module' object has no attribute 'logger'

2012-03-04 Thread youssef . mahdia
editor, modes, console File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1- py2.7.egg/pyreadline/modes/__init__.py", line 3, in from . import emacs, notemacs, vi File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1- py2.7.egg/pyreadline/modes/emacs.py&qu

AttributeError: 'list' object has no attribute 'lower'

2012-09-08 Thread Token Type
semy of nouns, verbs, adjectives, and adverbs according to WordNet.http://nltk.googlecode.com/svn/trunk/doc/book/ch02.html I wrote the following function to solve it. However, it pops up "AttributeError: 'list' object has no attribute 'lower'". Quite confused, I supposed

AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

2013-02-14 Thread md123
llback(wxgui_fftsink2_0_0_callback) File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 54, in __getattr__ return getattr(self._hb, name) AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback' here is the code for "

query from sqlalchemy returns AttributeError: 'NoneType' object

2013-05-02 Thread karthik . sharma
t/revent.py", line 281, in raiseEvent rv = event._invoke(handler, *args, **kw) File "/home/karthik/pox/pox/lib/revent/revent.py", line 159, in _invoke return handler(self, *args, **kw) File "/home/karthik/pox/tutorial.py", line 118, in _handle_PacketIn

AttributeError: 'NoneType' object has no attribute 'get'

2022-01-05 Thread NArshad
y", line 57, in SaveBook e_pissue.get(), AttributeError: 'NoneType' object has no attribute 'get' Process finished with exit code 0 -- https://mail.python.org/mailman/listinfo/python-list

AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
= knowledge_engine.engine((rule_base_source_folder, (compiled_rule_base_folder))) with vasculopathy_engine.prove_goal(...) as presentationGen: for vals, plan in presentationGen: But in py3 that fails with: AttributeError: module 'itertools' has no attribute 'imap' I tried conver

<    1   2   3   4   >