Re: KeyError: 'payload' while running core.py

2022-01-02 Thread Chris Angelico
On Mon, Jan 3, 2022 at 1:46 PM Đông Vũ wrote: > > That is error, please help me fix it. > > Traceback (most recent call last): > File > "C:\Users\vuduc\AppData\Local\Programs\Python\Python39\lib\site-packages\frida\core.py", > line 450, in _on_message > callback(message, data) > File "C:\N

Re: KeyError: 'handlers.RotatingFileHandler'

2016-09-12 Thread Peter Otten
Daiyue Weng wrote: > Hi, I am trying to use 'RotatingFileHandler' in a logging config file, > > import logging > import logging.config > import logging.handlers > > logging.config.fileConfig('logging.conf') > > > [loggers] > keys=root,ingestion_log > > [handlers] > keys=consoleHandler,fileHan

Re: keyerror '__repr__'

2012-08-04 Thread Chris Rebert
On Sat, Aug 4, 2012 at 7:48 AM, vijay shanker wrote: > hi > i have this class book > > class book: > def __init__(self,name,price): > self.name = name > self.price = price > > def __getattr__(self,attr): > if attr == '__str__': > print 'intercepting in-b

Re: KeyError: '13'

2012-06-06 Thread Phanindra Ramesh Challa
I got metatype compiled. Thanks for your help On Wed, Jun 6, 2012 at 6:44 PM, Peter Otten <__pete...@web.de> wrote: > Phanindra Ramesh Challa wrote: > > [Please hit "reply-all" in you email client when you answer a post. That > way > it will appear on the mailing list and give more people a chanc

Re: KeyError: '13'

2012-06-06 Thread Peter Otten
Phanindra Ramesh Challa wrote: [Please hit "reply-all" in you email client when you answer a post. That way it will appear on the mailing list and give more people a chance to answer] > output of the is just the line > "sizes". >> and then decide if you to need to change the lookup key or to ad

Re: KeyError: '13'

2012-06-06 Thread Peter Otten
Phanindra Ramesh Challa wrote: > I am trying to run a python program. It is giving the KeyError: '13'. I > have no clue regarding this error. > this is the python code relevant to the error: > > dpi = 100 > bold = 0 > italic = 0 > mono = 0 > comment = "" > dbname = "font.db" > > for o, a in opt

RE: Keyerror addhandler

2009-04-20 Thread Steven Macintyre
Hi Peter, > It looks like 2.5 has the better error message, but the actual problem is > the same for both versions. Try changing mylogfileHandler's class to [handler_mylogfileHandler] class=handlers.RotatingFileHandler Many thanks, this worked for me! Steven -- http://mail.python.org/mailman/l

RE: Keyerror addhandler

2009-04-20 Thread Peter Otten
Steven Macintyre wrote: Please don't top-post. [Diez B. Roggisch] > For me, that fails with > NameError: name 'RotatingFileHandler' is not defined [Steven Macintyre] > I am using 2.4, could that be the cuase of your issue below. > > Ideally, I would like to stay with the 2.4 version and base

RE: Keyerror addhandler

2009-04-20 Thread Steven Macintyre
Hi Diez, I am using 2.4, could that be the cuase of your issue below. Ideally, I would like to stay with the 2.4 version and based on two tutorials, this was what I came up with Steven Steven Macintyre schrieb: > Hi all, > > I'm wondering if anyone can assist me with this as I am very confus

Re: Keyerror addhandler

2009-04-19 Thread Diez B. Roggisch
Steven Macintyre schrieb: Hi all, I'm wondering if anyone can assist me with this as I am very confused about it now. I am getting the following error; Traceback (most recent call last): File "/usr/lib/python2.4/logging/config.py", line 191, in fileConfig logger.addHandler(handlers[hand]

Re: KeyError in pickle

2008-05-23 Thread christof
On 23 Mai, 10:48, Peter Otten <[EMAIL PROTECTED]> wrote: > christof wrote: > > I am using pickle/unpickle to let my program save its documents to > > disk. While this it worked stable for a long time, one of my users now > > complained, that he had a file which can't be loaded. > > > The traceback

Re: KeyError in pickle

2008-05-23 Thread Peter Otten
christof wrote: > I am using pickle/unpickle to let my program save its documents to > disk. While this it worked stable for a long time, one of my users now > complained, that he had a file which can't be loaded. > > The traceback is: > > File "pickle.pyo", line 1374, in loads > File "p

RE: KeyError

2004-12-16 Thread Doran_Dermot
If a default value would be acceptable to the application (which is quite likely), then this would be a much cleaner solution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roland Heiber Sent: 16 December 2004 10:28 To: [EMAIL PROTECTED] Subject: Re

Re: KeyError

2004-12-16 Thread Roland Heiber
[EMAIL PROTECTED] wrote: Hi "R", The only explanation I can give is that the environment varialbe REMOTE_ADDR does not exist! Wrap your high-level code with try and except. Example: try: tablesDirectory = tablesDirectoryPrefix + os.environ['REMOTE_ADDR'] except KeyError: # Code to handle the f

Re: KeyError

2004-12-15 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello. > Maybe someone will help me with this KeyError: > > > Traceback (most recent call last): > File "C:\Python\tabla.py", line 929, in -toplevel- > tablesDirectory = tablesDirectoryPrefix + os.environ['REMOTE_ADDR'] > File "C:\Py

RE: KeyError

2004-12-15 Thread Doran_Dermot
Hi "R", The only explanation I can give is that the environment varialbe REMOTE_ADDR does not exist! Wrap your high-level code with try and except. Example: try: tablesDirectory = tablesDirectoryPrefix + os.environ['REMOTE_ADDR'] except KeyError: # Code to handle the fact tht REMOT_ADDR does

Re: KeyError

2004-12-15 Thread Frans Englich
On Wednesday 15 December 2004 13:33, [EMAIL PROTECTED] wrote: > Hello. > Maybe someone will help me with this KeyError: > > > Traceback (most recent call last): > File "C:\Python\tabla.py", line 929, in -toplevel- > tablesDirectory = tablesDirectoryPrefix + os.env