maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] GnGeo-gui (https://talk.maemo.org/showthread.php?t=72574)

droll 2011-06-09 18:47

Re: [Announce] GnGeo-gui
 
after the latest upgrade, mine now crashes upon start.

droll 2011-06-09 18:52

Re: [Announce] GnGeo-gui
 
looking in /opt/gngeo-gui

i tried this:
a) gngeo-gui.py doesn't have the +x permission on it. applied it with chmod.
b) launching it from command line, i see a bunch of errors:
./gngeo-gui.py: line 1: import: not found
./gngeo-gui.py: line 2: import: not found
./gngeo-gui.py: line 3: from: not found
./gngeo-gui.py: line 4: from: not found
./gngeo-gui.py: line 6: COMMENT_CHAR: not found
./gngeo-gui.py: line 7: OPTION_CHAR: not found
./gngeo-gui.py: line 8: syntax error: unexpected "("

Megaltariak 2011-06-09 19:08

Re: [Announce] GnGeo-gui
 
You are starting a python program like a shell script.
Start it with
python gngeo-gui.py
not with
./gngeo-gui.py
and python programs doesn't need the executable bit, in fact, only native binaries need it.

ade 2011-06-09 19:14

Re: [Announce] GnGeo-gui
 
Quote:

Originally Posted by droll (Post 1025947)
looking in /opt/gngeo-gui

i tried this:
a) gngeo-gui.py doesn't have the +x permission on it. applied it with chmod.
b) launching it from command line, i see a bunch of errors:
./gngeo-gui.py: line 1: import: not found
./gngeo-gui.py: line 2: import: not found
./gngeo-gui.py: line 3: from: not found
./gngeo-gui.py: line 4: from: not found
./gngeo-gui.py: line 6: COMMENT_CHAR: not found
./gngeo-gui.py: line 7: OPTION_CHAR: not found
./gngeo-gui.py: line 8: syntax error: unexpected "("

gngeo-gui.py should not have the execute permission. The way you execute it, it is interpreted as shell script. It is not shellscript, but python as the extension already suggest.
Please try to start from the menu. If you really want to execute it from the x-terminal:
Code:

cd /opt/gngeo-gui/
python gngeo-gui.py

If this gives problems, please report the error message.

I see Megaltariak just explained it before I could post my answer :)

droll 2011-06-09 19:28

Re: [Announce] GnGeo-gui
 
ah thanks guys. my bad - don't really understand python. let me try again.

droll 2011-06-09 19:30

Re: [Announce] GnGeo-gui
 
/opt/gngeo-gui $ python gngeo-gui.py
Traceback (most recent call last):
File "gngeo-gui.py", line 3, in <module>
from PySide.QtCore import *
File "/usr/lib/python2.5/site-packages/PySide/__init__.py", line 2, in <module>
import private
File "/usr/lib/python2.5/site-packages/PySide/private.py", line 2, in <module>
from QtCore import __moduleShutdown
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined symbol: _ZN6PySide15DestroyListener8instanceEv
/opt/gngeo-gui $

ade 2011-06-09 19:57

Re: [Announce] GnGeo-gui
 
Quote:

Originally Posted by droll (Post 1025976)
/opt/gngeo-gui $ python gngeo-gui.py
Traceback (most recent call last):
File "gngeo-gui.py", line 3, in <module>
from PySide.QtCore import *
File "/usr/lib/python2.5/site-packages/PySide/__init__.py", line 2, in <module>
import private
File "/usr/lib/python2.5/site-packages/PySide/private.py", line 2, in <module>
from QtCore import __moduleShutdown
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined symbol: _ZN6PySide15DestroyListener8instanceEv
/opt/gngeo-gui $

Hmm, this looks more like a broken PySide package or some kind of version conflict.
Could you try the following:
Code:

sudo gainroot
apt-get --reinstall install python-pyside.qtcore

And if it does not help, show me the output of this.

The following command might indicate undefined symbol problems (if you have ldd installed)
Code:

ldd -r /usr/lib/python2.5/site-packages/PySide/QtCore.so
And see if it says something about undefined symbols.

P.s. can any other person confirm a problem after the last update? I cannot reproduce it...

ade 2011-06-09 20:28

Re: [Announce] GnGeo-gui
 
Quote:

Originally Posted by droll (Post 1025976)
/opt/gngeo-gui $ python gngeo-gui.py
Traceback (most recent call last):
File "gngeo-gui.py", line 3, in <module>
from PySide.QtCore import *
File "/usr/lib/python2.5/site-packages/PySide/__init__.py", line 2, in <module>
import private
File "/usr/lib/python2.5/site-packages/PySide/private.py", line 2, in <module>
from QtCore import __moduleShutdown
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined symbol: _ZN6PySide15DestroyListener8instanceEv
/opt/gngeo-gui $

If it is really related to this version of gngeo-gui (which looks unlikely to me), you could revert to the previous version and see if it works again:
Code:

sudo gainroot
apt-get install gngeo-gui=0.0.2-1


droll 2011-06-09 22:41

Re: [Announce] GnGeo-gui
 
Nokia-N900:~# ldd -r /usr/lib/python2.5/site-packages/PySide/QtCore.so
ldd: warning: you do not have execution permission for `/usr/lib/python2.5/site-packages/PySide/QtCore.so'
libpyside-python2.5.so.1.0 => /usr/lib/libpyside-python2.5.so.1.0 (0x40367000)
libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x4038d000)
libshiboken-python2.5.so.1.0 => /usr/lib/libshiboken-python2.5.so.1.0 (0x404b1000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x404cf000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x407bd000)
libm.so.6 => /lib/libm.so.6 (0x4089e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40914000)
libc.so.6 => /lib/libc.so.6 (0x40926000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40a4b000)
libdl.so.2 => /lib/libdl.so.2 (0x40a6c000)
libutil.so.1 => /lib/libutil.so.1 (0x40a77000)
libz.so.1 => /usr/lib/libz.so.1 (0x40a82000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x40a9a000)
librt.so.1 => /lib/librt.so.1 (0x40aa6000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40ab5000)
/lib/ld-linux.so.3 (0x2a000000)
undefined symbol: _ZN6PySide15DestroyListener8instanceEv (/usr/lib/python2.5/site-packages/PySide/QtCore.so)
undefined symbol: _ZN6PySide15DestroyListener6listenEP7QObject (/usr/lib/python2.5/site-packages/PySide/QtCore.so)
undefined symbol: _ZN6PySide7WeakRef6createEP7_objectPFvPvES3_ (/usr/lib/python2.5/site-packages/PySide/QtCore.so)

guess the problem is on my phone? :(

running apt-get didn't fix the issue.

droll 2011-06-09 23:01

Re: [Announce] GnGeo-gui
 
prior to upgrading, gngeo-gui worked for me. now installing the previous version also has the same problem - it crashes.

Traceback (most recent call last):
File "gngeo-gui.py", line 3, in <module>
from PySide.QtCore import *
File "/usr/lib/python2.5/site-packages/PySide/__init__.py", line 2, in <module>
import private
File "/usr/lib/python2.5/site-packages/PySide/private.py", line 2, in <module>
from QtCore import __moduleShutdown
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined symbol: _ZN6PySide15DestroyListener8instanceEv
/opt/gngeo-gui $


All times are GMT. The time now is 09:18.

vBulletin® Version 3.8.8