Author Topic: Sdictviewer On Pdaxii13 V2 - Problems  (Read 1965 times)

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Sdictviewer On Pdaxii13 V2 - Problems
« on: January 14, 2008, 04:46:25 am »
Hi,

I just installed on my SL-c3100 & pdaXii13 v2 the application "sdictviewer 0.4.0" from there Sdict Viewer.

The installation went fine and python v2.4.1 [pygtk 2.5.3 includet] is already installed.
Starting the icon in the menue it begin working but after 5 seconds the program don't appear.

I'm not sure whats going wrong because I'm not familiar with python. I also don't know how to start this
python applicaton from command line to get hopefull detailed error messages.

Please help me.


Thanks
climber

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Sdictviewer On Pdaxii13 V2 - Problems
« Reply #1 on: January 14, 2008, 12:48:09 pm »
Quote
I'm not sure whats going wrong because I'm not familiar with python. I also don't know how to start this
python applicaton from command line to get hopefull detailed error messages.
I looked in the sdictview.desktop file. it has "Exec=/usr/bin/sdictview.py"
open a console and try sdictview.py
(I don't have this installed, so I haven't tried this myself, but have tried this method with "other" python apps in the console)
You may have a dependency missing.
« Last Edit: January 14, 2008, 12:49:56 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Sdictviewer On Pdaxii13 V2 - Problems
« Reply #2 on: January 14, 2008, 03:05:09 pm »
That ought to work. If not, you could do

Code: [Select]
python /usr/bin/sdictview.py
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Sdictviewer On Pdaxii13 V2 - Problems
« Reply #3 on: January 14, 2008, 06:14:59 pm »
I just installed sdictviewer
sdictviewer_0.4.0_armv5tel.ipk
 and
python_bz2_1.1_armv5tel.ipk)
from the above link.
When launching in a console, I get these errors.
Code: [Select]
root-:) sdictview.py
Traceback (most recent call last):
  File "/usr/bin/sdictview.py", line 9, in ?
    import pysdic
  File "/usr/bin/pysdic.py", line 8, in ?
    import pygtk
  File "/home/sash/Work/Akita/akita-rom/build/pygtk-2.5.3/ipkg_tmp/usr/lib/python2.4/site-packages/pygtk.py", line 22, in ?
ImportError: No module named fnmatch
I have downloaded 2 dictionaries from the included link, but I haven't copied them to my Zaurus yet. I don't think the above errors are resulting from these "missing" dictionaries. I would think the GUI should launch with no dictionaries present.
EDIT
Looking at this link http://sdictviewer.sourceforge.net/
I think python 2.5 needs to be installed. (I have pygtk 2.5.3 and GTK installed, but NOT python 2.5)
Quote
Other Platforms
There are no installation packages for other platforms. You can download source code archive, unpack it and run sdictviewer.py. Windows and Mac OS X users will also need to download and install Python 2.5, GTK and PyGTK (any 2.6 version or greater should be fine). Most Linux users are likely to have all these installed already. Please keep in mind the main focus of this project is Nokia Internet Tablets, so there are no plans to do any formal releases for any other platforms.
« Last Edit: January 14, 2008, 06:26:59 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Sdictviewer On Pdaxii13 V2 - Problems
« Reply #4 on: January 14, 2008, 06:16:39 pm »
It looks like you need "python-fnmatch" or some similar package.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Sdictviewer On Pdaxii13 V2 - Problems
« Reply #5 on: January 14, 2008, 07:01:35 pm »
I found python-fnmatch referenced in this thread.
https://www.oesf.org/forum/index.php?showto...&hl=fnmatch
It's included inside python-shell_2.4.1_armv5tel.ipk
But now I am getting a zlib error.
Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/sdictview.py", line 9, in ?
    import pysdic
  File "/usr/bin/pysdic.py", line 12, in ?
    import sdict
  File "/usr/bin/sdict.py", line 8, in ?
    import zlib
ImportError: No module named zlib
I've searched high and low, but zlib cannot be found. I already have libz
There is one post that references zlib to Cacko. Still searching...

EDIT: I just found python-zlib_2.4.1_armv5tel.ipk
I'll report back if that works.

EDIT2: Now I need a module named "pickle" (found it) python-pickle_2.4.1_armv5tel.ipk

EDIT3: now I need a module named "urlparse" (I'm stuck now, urlparse not in feed, looking elsewhere)
It seems urlparse is inside the full 6MB python 2.4.1 install.
I'm going to look elsewhere, as I'm not sure how to just get the module installed without the full 6MB install file.
(I sure hope this dictionary is worth all this. I do have zbedic on my Cacko Zaurus.)
Found urlparse. It's inside python-html_2.4.1_armv5tel.ipk

Final EDIT
I finally got all the dependencies. It still spits out some errors, but seems to be working now.
It didn't install an icon in the menu under "Office" like it is supposed to.
I tried matching the .desktop file entry for this, but it didn't work, so I just dragged a copy of its .desktop file to my ROX desktop, and launch it from there.
I downloaded Merriam-Webster's Collegiate Dictionary (15MB), and put it on my hard drive.
It is shown in the attachment. It works just as good as the dictionary I have for my Cacko Zaurus now.
Below are the deps that I have used to get this running on my pdaxii13v2 Zaurus C3200
(I got all them from pdaxrom feed except python_bz2)
python-html_2.4.1_armv5tel.ipk
python-pickle_2.4.1_armv5tel.ipk
python-shell_2.4.1_armv5tel.ipk
python-zlib_2.4.1_armv5tel.ipk
python_bz2_1.1_armv5tel.ipk (from sdictviewer post)
« Last Edit: January 15, 2008, 02:30:30 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers