Re: [Mrfilter-users] Fwd: Failed Startup (Fedora 17)
Status: Alpha
Brought to you by:
asomers
|
From: Joe M. <joe...@gm...> - 2012-06-25 16:23:35
|
Actually, I just found that this code executes several times before causing
the error.
> /usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py(225)set()
-> if np.isinf(value) == True or np.isnan(value) == True:
(Pdb) p value
1
(Pdb) c
> /usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py(224)set()
-> pdb.set_trace()
(Pdb) p value
2
(Pdb) c
> /usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py(225)set()
-> if np.isinf(value) == True or np.isnan(value) == True:
(Pdb) p value
50000
(Pdb) c
> /usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py(224)set()
-> pdb.set_trace()
(Pdb) p value
'butter'
(Pdb) c
Traceback (most recent call last):
File "/usr/bin/mrfilter", line 25, in <module>
sys.exit(main(sys.argv))
File "/usr/lib/python2.7/site-packages/mrfilter/main.py", line 666, in
main
hwg = App()
File "/usr/lib/python2.7/site-packages/mrfilter/main.py", line 209, in
__init__
self.approx.set(poly='butter', h=1, btype='low', n=2, fn=50000)
File "/usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py", line
224, in set
pdb.set_trace()
NotImplementedError: Not implemented for this type
On the fourth iteration, value equals 'butter', so the error occurs. A
comment directly above that line sounds very relevant:
#Here we must compare to True instead of doing 'if np.isinf(...)'
#because np.isinf(string) will return NotImplemented, which tests
#as true
On Mon, Jun 25, 2012 at 12:05 PM, Joe Mac <joe...@gm...> wrote:
> Sure.
> Here's the output:
>
> -> if np.isinf(value) == True or np.isnan(value) == True:
> (Pdb) p value
> 1
> (Pdb) p np.isinf(value)
> False
> (Pdb) p np.isnan(value)
> False
> (Pdb) whatis value
> <type 'int'>
> (Pdb)
>
> On Mon, Jun 25, 2012 at 11:47 AM, <as...@gm...> wrote:
>
>> You want to be using gdb (the Python source-level debugger) for this.
>> gdb will debug the C interpreter instead. The easiest way is probably to
>> go into mrfilter_util.py at line 223 and write:
>> import pdb
>> pdb.set_trace()
>>
>> I'm also concerned about the 'Failed to load module "pk-gtk-module"'
>> line. That probably means that you are missing some unidentified
>> dependency.
>>
>> Then you can execute the program like normal.
>>
>>
>> On Mon, Jun 25, 2012 at 9:16 AM, Joe Mac <joe...@gm...> wrote:
>>
>>> I'm happy to do so once I figure out how.
>>> I've used gdb for various debugging tasks in the past, but I'm not sure
>>> how to make useable breakpoints / variable watches for python (as I said, I
>>> don't know much about python).
>>>
>>> I'm loading it into gdb using:
>>> $ gdb python
>>> (gdb) run /usr/bin/mrfilter
>>>
>>> Any tips on setting up breaks / watches for python that would help get
>>> me the info that you need?
>>>
>>>
>>> On Mon, Jun 25, 2012 at 10:59 AM, <as...@gm...> wrote:
>>>
>>>> I'll set up a Fedora 17 VM and try it myself. Or if you want to dive
>>>> right in, you can try to figure out what "value" was on line 223.
>>>>
>>>> On Mon, Jun 25, 2012 at 7:59 AM, Joe Mac <joe...@gm...> wrote:
>>>>
>>>>> I'm trying to run Mr. Filter on Fedora 17. I have all of the
>>>>> dependencies listed in the README. I installed with setup.py. When I try
>>>>> to execute mrfilter, I get:
>>>>>
>>>>> $ mrfilter
>>>>>
>>>>> ** (process:24319): WARNING **: Trying to register gtype
>>>>> 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
>>>>>
>>>>> ** (process:24319): WARNING **: Trying to register gtype
>>>>> 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
>>>>>
>>>>> ** (process:24319): WARNING **: Trying to register gtype
>>>>> 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
>>>>> Gtk-Message: Failed to load module "pk-gtk-module"
>>>>> Traceback (most recent call last):
>>>>> File "/usr/bin/mrfilter", line 25, in <module>
>>>>> sys.exit(main(sys.argv))
>>>>> File "/usr/lib/python2.7/site-packages/mrfilter/main.py", line 666,
>>>>> in main
>>>>> hwg = App()
>>>>> File "/usr/lib/python2.7/site-packages/mrfilter/main.py", line 209,
>>>>> in __init__
>>>>> self.approx.set(poly='butter', h=1, btype='low', n=2, fn=50000)
>>>>> File "/usr/lib/python2.7/site-packages/mrfilter/mrfilter_util.py",
>>>>> line 223, in set
>>>>> if np.isinf(value) == True or np.isnan(value) == True:
>>>>> NotImplementedError: Not implemented for this type
>>>>>
>>>>> $
>>>>>
>>>>> I don't know much about python programs, but let me know what I can do
>>>>> to help get the problem diagnosed/fixed.
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Live Security Virtual Conference
>>>>> Exclusive live event will cover all the ways today's security and
>>>>> threat landscape has changed and how IT managers can respond.
>>>>> Discussions
>>>>> will include endpoint security, mobile security and the latest in
>>>>> malware
>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>> _______________________________________________
>>>>> Mrfilter-users mailing list
>>>>> Mrf...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/mrfilter-users
>>>>>
>>>>>
>>>>
>>>
>>
>
|