Author Topic: Running Pymoney On Openzaurus  (Read 8024 times)

alban42

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://
Running Pymoney On Openzaurus
« on: November 02, 2006, 06:52:59 am »
I have a Zaurus 3200 with Openzaurus Installed


 have installed pymoney v1.1
and python-pyqt python-core python-sip from the mickeyl feed

when i try to run pymoney from a icon or in a console it fails, the error in the console is
main.py line 18  main import mainForm
line 25  from odb inport *

I presume i am missing some python modules ??
( yes this is the first python app that i have tried installing /runing )
thanks for any info

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Running Pymoney On Openzaurus
« Reply #1 on: November 02, 2006, 06:08:32 pm »
Please give the full traceback.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

alban42

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://
Running Pymoney On Openzaurus
« Reply #2 on: November 03, 2006, 06:24:54 am »
Quote
Please give the full traceback.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145450\"][{POST_SNAPBACK}][/a][/div]


OK here is the traceback

root@spitz:~# pymoney
Traceback (most recent call last):
  File "/opt/QtPalmtop/bin/pymoney", line 18, in ?
    from main import mainForm
  File "/opt/QtPalmtop/share/PyMoney/main.py", line 25, in ?
    from odb import *
  File "/opt/QtPalmtop/share/PyMoney/odb.py", line 15, in ?
    import shelve
ImportError: No module named shelve
root@spitz:~# root@spitz:~# pymoney

HERE IS pymoney

root@spitz:/opt/QtPalmtop/share/PyMoney# cat pymoney.py
#!/usr/bin/env python
# pymoney.py

########################################################################
#  PyMoney -- personal financial assistant
#  Copyright © 2006 Dmitri Brechalov
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#  The full license is in the file COPYING, distributed as part of
#  this software.
########################################################################

import sys
from qt import *
from main import mainForm

useQtopia = 0

try:
    from qtpe import QPEApplication
    useQtopia = 1
except ImportError:
    QPEApplication = QApplication
    useQtopia = 0

a = QPEApplication(sys.argv)
QObject.connect(a, SIGNAL("lastWindowClosed()"), a.quit)

form = mainForm()
a.setMainWidget(form)

form.resize(640, 480)
if useQtopia:
    a.showMainWidget(form)
else:
    a.setMainWidget(form)
    if not form.show():
        sys.exit(1)

a.exec_loop()

# end of pymoney.py
root@spitz:/opt/QtPalmtop/share/PyMoney#

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Running Pymoney On Openzaurus
« Reply #3 on: November 03, 2006, 07:02:16 am »
Quote
Please give the full traceback.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145450\"][{POST_SNAPBACK}][/a][/div]

Installing python stuff from the OZ feed instead of your sharprom feed would be more productive
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Running Pymoney On Openzaurus
« Reply #4 on: November 04, 2006, 07:16:49 pm »
Quote
import shelve
ImportError: No module named shelve

Install python-pickle.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

alban42

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://
Running Pymoney On Openzaurus
« Reply #5 on: November 05, 2006, 09:00:31 am »
Quote
Quote
import shelve
ImportError: No module named shelve

Install python-pickle.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Thanks I did not realise there was a python directory in
[a href=\"http://ewi546.ewi.utwente.nl/mirror/www.openzaurus.org/official/unstable/3.5.4.1/feed/python]http://ewi546.ewi.utwente.nl/mirror/www.op...4.1/feed/python[/url]

 i have uninstalled the old  python from mickeyl added the above feed
and installed python pickle

root@spitz:~# pymoney
Traceback (most recent call last):
  File "/opt/QtPalmtop/bin/pymoney", line 18, in ?
    from main import mainForm
  File "/opt/QtPalmtop/share/PyMoney/main.py", line 25, in ?
    from odb import *
  File "/opt/QtPalmtop/share/PyMoney/odb.py", line 15, in ?
    import shelve
  File "/usr/lib/python2.4/shelve.py", line 64, in ?
    from pickle import Pickler, Unpickler
  File "/usr/lib/python2.4/pickle.py", line 1379, in ?
    from StringIO import StringIO
ImportError: No module named StringIO
root@spitz:~#                    



I have cut out the ipkgs Thar dont seem relevent
I hve tried pymoney from  a console by tapping the icon & from a remote SSH connection
root@spitz:~# ipkg    list_installed


libapm1 - 3.2.2-r8 -
libasound2 - 1.0.10-r0 -
libbluetooth1 - 2.21-r0 -
libc6 - 2.3.5+cvs20050627-r3 -
libcrypto0.9.7 - 0.9.7e-r1 -
libetpan3 - 0.38-r0 -
libfreetype6 - 2.1.10-r0 -
libgcc1 - 3.4.4-r3 -
libgcrypt11 - 1.2.1-r0 -
libglib-2.0-0 - 2.6.4-r2 -
libgnutls-openssl11 - 1.0.25-r0 -
libgnutls11 - 1.0.25-r0 -
libgpg-error0 - 1.0-r0 -
libipkg0 - 0.99.159-r1 -
libjpeg62 - 6b-r0 -
libmailwrapper1 - 1.2.1-r0 -
libmicrokabc - 2.2.7-r1 -
libmicrokcal1 - 2.2.7-r1 -
libmicrokdelibs - 2.2.7-r1 -
libmodplug0 - 0.7-r0 -
libopenobex-1.0-1 - 1.0.1-r2 -
libopiecore2-1 - 1.2.1-r5 -
libopiemm2-1 - 1.2.1-r5 -
libopienet2-1 - 1.2.1-r5 -
libopieobex0 - 1.2.1-r1 -
libopiepim2-1 - 1.2.1-r5 -
libopiesecurity2-0 - 1.2.1-r5 -
libopietooth1-1 - 1.2.1-r0 -
libopieui2-1 - 1.2.1-r5 -
libpcap0.9 - 0.9.3-r1 -
libpcre0 - 4.4-r1 -
libpng12-0 - 1.2.8-r0 -
libpython2.4-1.0 - 2.4.2-ml4 -
libqpe1 - 1.2.1-r1 -
libqtaux2-1 - 1.2.1-r0 -
libqte2 - 2.3.10-r36 -
libsqlite0 - 2.8.16-r1 -
libssl0.9.7 - 0.9.7e-r1 -
libstdc++6 - 3.4.4-r3 -
libsysfs1 - 1.3.0-r0 -
libts-0.0-0 - 0.0cvs20060102-r42 -
libusb - 0.1.10a-r7 -
libz1 - 1.2.3-r0 -
linux-hotplug - 20040920-r8 -
lrzsz - 0.12.20-r2 -
opie-pyquicklaunchapplet - 1.2.1-r1  
pymoney - 1.1 -
python-codecs - 2.4.2-ml2 -
python-core - 2.4.2-ml2 -
python-db - 2.4.2-ml1 -
python-lang - 2.4.2-ml1 -
python-pickle - 2.4.2-ml1 -
python-pychecker - 0.8.14-r0 -
python-pyqt - 3.13-ml3 -
python-pysqlite - 1.0-r0 -
python-re - 2.4.2-ml2 -
python-sip - 4.1.1-ml3 -
scap - 0.1-r7 -
setserial - 2.17-r1 -
spectrum-fw - 1.0-r0 -
sysfsutils - 1.3.0-r0 -
sysvinit - 2.86-r22 -
sysvinit-inittab - 2.86-r22 -
sysvinit-pidof - 2.86-r22 -
tslib-conf - 0.0cvs20060102-r39 -
ttf-dejavu-sans - 2.9-r0 -
ttf-dejavu-sans-mono - 2.9-r0 -
udev - 084-r12 -
udev-utils - 084-r12 -

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Running Pymoney On Openzaurus
« Reply #6 on: November 05, 2006, 06:26:26 pm »
Quote
from StringIO import StringIO
ImportError: No module named StringIO

install python-io

looks like python-pickle misses a dependency on python-io.

I'll fix that, thanks.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

alban42

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://
Running Pymoney On Openzaurus
« Reply #7 on: November 06, 2006, 07:16:41 am »
Quote
Quote
from StringIO import StringIO
ImportError: No module named StringIO

install python-io

looks like python-pickle misses a dependency on python-io.

I'll fix that, thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145623\"][{POST_SNAPBACK}][/a][/div]
 

That Fixed it Thanks ...