|
2010-07-06
, 10:02
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#22
|
Thanks for the feedback.
About the seg. fault, could you have a quick look with strace, to try to see where the crash occurs?
|
2010-07-06
, 10:12
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#23
|
|
2010-07-06
, 10:32
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#24
|
Very strange...
If you have some time, could your try to execute step by step the content of the main script (should be in /usr/lib/python2.5/site-package/papywizard/scripts/main.py)... Maybe the problem is when importing a module?
Thanks,
import sys from PyQt4 import QtGui import hildon qtApp = QtGui.QApplication(sys.argv)
|
2010-07-06
, 10:54
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#25
|
try: import hildon except ImportError: DATA_STORAGE_DIR = HOME_DIR else: DATA_STORAGE_DIR = os.path.join(HOME_DIR, "MyDocs")
try: import hildon except ImportError: self.__key['FullScreen'] = QtCore.Qt.Key_F11 self.__key['Home'] = QtCore.Qt.Key_Home self.__key['End'] = QtCore.Qt.Key_End else: self.__key['FullScreen'] = QtCore.Qt.Key_F6 self.__key['Home'] = QtCore.Qt.Key_F8 self.__key['End'] = QtCore.Qt.Key_F7
|
2010-07-06
, 11:07
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#26
|
|
2010-07-06
, 11:16
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#27
|
|
2010-07-06
, 11:54
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#28
|
|
2010-07-06
, 12:04
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#29
|
try: import hildon DATA_STORAGE_DIR = os.path.join(HOME_DIR, "MyDocs") except ImportError: DATA_STORAGE_DIR = HOME_DIR
if 'hildon' in sys.modules: DATA_STORAGE_DIR = os.path.join(HOME_DIR, "MyDocs") else: DATA_STORAGE_DIR = HOME_DIR print "***** %s *****" % DATA_STORAGE_DIR
|
2010-07-06
, 12:09
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#30
|
>>> import platform >>> print platform.uname() ('Linux', 'Nokia-N900', '2.6.28.10', '#1 PREEMPT Wed May 26 00:24:03 EEST 2010', 'armv7l', '') ... >>> print platform.uname() ('Linux', 'Nokia-N810-23-14', '2.6.21-omap1', '#2 Tue Oct 14 11:25 EEST 2008', 'armv6l','')
About the seg. fault, could you have a quick look with strace, to try to see where the crash occurs?
Frédéric