Jppy: jppy on Debian sid

Norbert Preining preining at logic.at
Sun May 21 11:43:45 BST 2006


Hi all!

More tries, more fun...

On Son, 21 Mai 2006, preining wrote:
> Traceback (most recent call last):
>   File "/home/norbert/.jpilot/python/jpilot_user.py", line 3, in plugin_gui
>     sys.path.insert(0,"/usr/share/jppy/gui/")
> NameError: global name 'sys' is not defined
> Warning! Failed during python version of plugin_gui().

Ok, I added a
	import sys
at the beginning of .jpilot/python/jpilot_user.py
Then I put ContactsDB-PAdd.pdf into the .jpilot folder.

Now starting jpilot and the plugin it makes ouuch:
jppy: Starting...
jppy: imported jpilot_user.
Warning! Failed to locate python version of plugin_startup().
jppy: Ready.
/usr/share/jppy/gui/renderers.py:102: DeprecationWarning: Class PyObjectRenderer
 is already GObject-registered; Please note that classes containing any of the attributes __gtype_name__, __gproperties__, or __gsignals__ are now automatically registered.
  gobject.type_register(PyObjectRenderer)
/usr/share/jppy/gui/renderers.py:130: DeprecationWarning: Class ListItemRenderer is already GObject-registered; Please note that classes containing any of the a ttributes __gtype_name__, __gproperties__, or __gsignals__ are now automatically registered.
  gobject.type_register(ListItemRenderer)
Unable to create the Contacts pane: Not able to read app info from database ContactsDB-PAdd
Scanning database
 []
{'hide_completed': True}
Segmentation fault (core dumped)

$ gdb /usr/bin/jpilot core
...
bt
...
#0  0xb785a1db in strlen () from /lib/tls/libc.so.6
#1  0xb7379bbf in PyModule_AddStringConstant () from /usr/lib/libpython2.3.so.1.0
#2  0xb7379fb6 in Py_VaBuildValue () from /usr/lib/libpython2.3.so.1.0
#3  0xb737a147 in Py_BuildValue () from /usr/lib/libpython2.3.so.1.0
#4  0xb647ef48 in BuildPyStringFromToDo (a=0xbf917d64)
    at python_module_src/jpilot_wrap.c:1863
#5  0xb647ebcf in w_jp_read_DB (unpackerfunc=0xb7944740 <unpack_ToDo>, 
    wrapfunc=0xb64aadb3 <PyPiTodo_Wrap>, recordstruct=0xbf917d64, 
    recordtype=0, stringfunc=0xb647eed4 <BuildPyStringFromToDo>, 
    regexp=0xb63736e0, unique_id=0, sort_order=1, modified=0, deleted=0, 
    privates=0, category_list=0x8816fa8, database=0xb65be9b4 "ToDoDB")
    at python_module_src/jpilot_wrap.c:1782
#6  0xb647f0a3 in w_jp_read_ToDoDB (regexp=0xb63736e0, unique_id=0, 
    sort_order=1, modified=0, deleted=0, privates=0, category_list=0x8816fa8, 
    database=0xb65be9b4 "ToDoDB", recordtype=0)
    at python_module_src/jpilot_wrap.c:1881
#7  0xb648016a in _wrap_w_jp_read_ToDoDB (self=0x0, args=0xb70f2dac)
    at python_module_src/jpilot_wrap.c:2452
#8  0xb732039d in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
....



jpilot: 0.99.8-0.99.9-pre-20060518-1
jppy* 0.0.29-2
libpisock8 and libpisock9, but jpilot is linked against libpisock8

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
I'm going to have a look.'
He glanced round at the others.
`Is no one going to say, "No you can't possibly, let me go
instead"?'
They all shook their heads.
`Oh well.'
                 --- Ford attempting to be heroic whilst being seiged by
                 --- Shooty and Bangbang.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy




More information about the Jppy mailing list