24. apr. 2012 14.25 skrev Thomas Kluyver <[email protected]>:
> Sorry, I should have been clearer. The error occurs when it tries to
> get the 'configure' attribute from a plugin object - should plugins
> have a 'configure' attribute? Should that object be a plugin? If it
> couldn't find a plugin module when it tried to load it, could that
> cause the error you see?
Ok. I tried inserting:
print spye.drv_input, repr(spye.drv_input), dir(spye.drv_input)
on the line before the crash. The result:
Output from running spye with python interpreter:
<input.console.plugin object at 0x26a7b90> <input.console.plugin
object at 0x26a7b90> ['M', '__class__', '__contains__', '__delattr__',
'__dict__', '__doc__', '__format__', '__getattribute__',
'__getitem__', '__getstate__', '__hash__', '__init__', '__iter__',
'__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__setattr__', '__setitem__', '__setstate__', '__sizeof__', '__str__',
'__subclasshook__', '__weakref__', '_plugin__read_command',
'_plugin__read_password', 'action_break', 'action_clear',
'action_delete_backwards_char', 'action_delete_backwards_line',
'action_delete_backwards_word', 'action_delete_forward_char',
'action_delete_forward_line', 'action_delete_forward_word',
'action_delete_or_logout', 'action_history_next',
'action_history_previous', 'action_letter',
'action_linebuffer_commit', 'action_move_backwards_char',
'action_move_backwards_word', 'action_move_end',
'action_move_forward_char', 'action_move_forward_word',
'action_move_home', 'action_tab', 'action_unbound_key', 'actions',
'config_get', 'config_get_all', 'config_get_boolean',
'config_get_float', 'config_get_integer', 'config_get_string',
'config_resolve', 'config_section', 'config_section_exists',
'config_subsection_list', 'configure', 'debug_get_entrypoint',
'debug_get_message', 'debug_get_position', 'enter', 'leave', 'match',
'parent', 'plugfunc_find', 'plugfunc_list', 'plugfunc_validate',
'plugin_fullname', 'plugin_loaded', 'plugin_lookup', 'plugin_name',
'plugins', 'print_debug', 'print_error', 'print_exception',
'print_fatal', 'print_hint', 'print_line', 'print_minute',
'print_note', 'print_output', 'print_progress', 'print_progress_end',
'print_warn', 'raw_begin', 'raw_end', 'read_boolean', 'read_char',
'read_command', 'read_key', 'read_password', 'read_string', 'root']
Output from running the cx-freeze produced binary:
<spye.pluginsystem.plugin object at 0xd526d0>
<spye.pluginsystem.plugin object at 0xd526d0> ['M', '__class__',
'__contains__', '__delattr__', '__dict__', '__doc__', '__format__',
'__getattribute__', '__getitem__', '__getstate__', '__hash__',
'__init__', '__iter__', '__module__', '__new__', '__reduce__',
'__reduce_ex__', '__repr__', '__setattr__', '__setitem__',
'__setstate__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', 'config_get', 'config_get_all', 'config_get_boolean',
'config_get_float', 'config_get_integer', 'config_get_string',
'config_resolve', 'config_section', 'config_section_exists',
'config_subsection_list', 'debug_get_entrypoint', 'debug_get_message',
'debug_get_position', 'files', 'match', 'parent', 'plugfunc_find',
'plugfunc_list', 'plugfunc_validate', 'plugin_fullname',
'plugin_loaded', 'plugin_lookup', 'plugin_name', 'plugins',
'print_debug', 'print_error', 'print_exception', 'print_fatal',
'print_hint', 'print_line', 'print_minute', 'print_note',
'print_output', 'print_progress', 'print_progress_end', 'print_warn',
'read_boolean', 'read_command', 'read_password', 'read_string',
'root']
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/cx_Freeze/initscripts/Console.py",
line 27, in <module>
exec code in m.__dict__
File "spye-exe", line 4, in <module>
frontend = spye.framework.initialize()
File "/home/tdn/wc/software/spye/spye-python/spye/framework.py",
line 187, in initialize
configure()
File "/home/tdn/wc/software/spye/spye-python/spye/framework.py",
line 111, in configure
spye.driver_set_input(arg_input, **arg_input_args)
File "/home/tdn/wc/software/spye/spye-python/spye/__init__.py", line
549, in driver_set_input
spye.drv_input.configure(**args)
AttributeError: 'plugin' object has no attribute 'configure'
So... Something is.... wrong...
------------------------------------------------------------------------------
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/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users