Active Topics

 


Reply
Thread Tools
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#1
When try to import hildon from my beta2 sdk prompt, I get this:

Code:
[sbox-FREMANTLE_X86: ~/quickclip-.5/viewer] > python2.5
Python 2.5.2 (r252:60911, May 23 2009, 01:31:38)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hildon
Xlib:  extension "Generic Event Extension" missing on display ":2.0".
Xlib:  extension "Generic Event Extension" missing on display ":2.0".
Xlib:  extension "Generic Event Extension" missing on display ":2.0".
Xlib:  extension "Generic Event Extension" missing on display ":2.0".
Xlib:  extension "Generic Event Extension" missing on display ":2.0".
process 9430: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 9430: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
python2.5[9430]: GLIB ERROR ** default - Not enough memory to set up DBusConnection for use with GLib
aborting...
Aborted (core dumped)
[sbox-FREMANTLE_X86: ~/quickclip-.5/viewer] >
I have been extremeley busy lately, so maybe I missed something important on different steps that needed to be taken to get python working in the sdk, 'cause it was working fine in beta 1.

Any help would be appreciated... Thanks.
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi BrentDC,

you can get rid of the dbus error by following this before starting python.

The Xlib error I don't know. I cannot reproduce it. How did you upgrade from beta to beta 2? Perhaps something went wrong there? As the display variable is shown I guess you've started the af-sb-init script?

Cheers Daniel
 

The Following User Says Thank You to danielwilms For This Useful Post:
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#3
I've not seen that, however if you are doing Python on Fremantle; be aware of:
#4782: osso.Context causes segmentation fault
I've worked around this as follows:

Code:
try:
  import osso
  has_osso = True
  try:
    f = open('/etc/maemo_version', 'r')
    if (f.readline().startswith('5.0')):
      print "*** Disabling OSSO functionality due to Maemo 5 bug #4782"
      has_osso = False
  except:
    pass
except ImportError:
  has_osso = False
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following 3 Users Say Thank You to Jaffa For This Useful Post:
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#4
Originally Posted by danielwilms View Post
Hi BrentDC,

you can get rid of the dbus error by following this before starting python.
That seems to work OK when using Python in the terminal or even a program, but when I prefix my application with run-standalone.sh, I get the same problem.

The Xlib error I don't know. I cannot reproduce it. How did you upgrade from beta to beta 2? Perhaps something went wrong there? As the display variable is shown I guess you've started the af-sb-init script?

Cheers Daniel
I think I've always gotten the Xlib error even on Beta 1, and everything has worked fine, so I'm not too concerned about that one.
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#5
Originally Posted by Jaffa View Post
I've not seen that, however if you are doing Python on Fremantle; be aware of:
#4782: osso.Context causes segmentation fault
I've worked around this as follows:

Code:
try:
  import osso
  has_osso = True
  try:
    f = open('/etc/maemo_version', 'r')
    if (f.readline().startswith('5.0')):
      print "*** Disabling OSSO functionality due to Maemo 5 bug #4782"
      has_osso = False
  except:
    pass
except ImportError:
  has_osso = False
Thanks for the tip.
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#6
Strike post #4, everything seems to be working OK now (have no idea what changed, though).
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
Reply

Tags
python, scratchbox, sdk


 
Forum Jump


All times are GMT. The time now is 13:22.