Author Topic: Running Python plus modules  (Read 7461 times)

cjthorley

  • Newbie
  • *
  • Posts: 7
    • View Profile
Running Python plus modules
« on: May 30, 2004, 09:54:39 pm »
Hi,

Im quite new to all this Zaurus development stuff but maybe you can help me out!

I have installed the following packages onto my Zaurus SL5600.

pyqt_3.10-1.0_arm.ipk
example_1.0.0_arm.ipk
python_2.3.3-1.0_arm.ipk

python-ide_0.8_arm.ipk
python-code_2.2.2-1.0_arm.ipk
python-devel_2.2.2-1.0_arm.ipk

However I am actually trying to run the follwing modules especially the Molecular Modelling tool kit.  The NUMERICAL and SCIENTIFIC modules are dependencies for Molecular MOdelling ToolKit as follows:-

NUMERICAL PYTHON
The base package: python-numeric_21.3-2.2_arm.ipk
The LinearAlgebra module: python-numeric-linearalgebra_21.3-2.2_arm.ipk
The FFT module: python-numeric-fft_21.3-2.2_arm.ipk
The RandomArray and RNG modules: python-numeric-random_21.3-2.2_arm.ipk
python-pickle_2.2.2-1.0_arm.ipk


SCIENTIFIC PYTHON
Everything except NetCDF: python-scientific_2.4.3-2.2_arm.ipk
NetCDF interface: python-scientific-netcdf_2.4.3-2.2_arm.ipk

MOLECULAR MODELLING TOOLKIT
mmtk_2.3.1_arm.ipk

My problem is that I cant seem to load up the Python GUI application.  I can tap the Python icon on the desktop and the egg timer appears on the task bar but then just disappears agian. I cant seem to find any documentation on getting Python to run.  I did try typing puthon in the terminal window and I did get a responce but my python terminal knowledge is next to nothing.  Anyway I think something is missing but im not sure what.  Can you help???? Let me know if you need more information??

The websites I have been using are as follwows:-

http://starship.python.net/~hinsen/Zaurus/
http://www.riverbankcomputing.co.uk/zaurus/index.php

Chris

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Running Python plus modules
« Reply #1 on: May 30, 2004, 10:44:37 pm »
Which ROM version are you using, ie Sharp original or other version?

Let\'s go step-by-step and the first task is to get python installed.

Remove all ipks for python you have installed.

Now, just install the python_2.3.3-1.0_arm.ipk
 from Riverbank.  Refer to Pyhthon documentaion at www.python.org on the operation of Python using terminal mode.

The IDE version for Zaurus was not working properly on my SL-5600.  Use Zeditor for your text input and terminal mode for the compiling.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Running Python plus modules
« Reply #2 on: May 31, 2004, 12:23:23 am »
The reason that ide doesn\'t work is that it needs python-code.  You have installed python-code 2.2 and python 2.3 - and with python the version numbers are really important cause python is looking in /usr/lib/python2.3/ for its modules and python-code is installed in /usr/lib/python2.2 so it can\'t be found. Also sometimes python modules aren\'t compatible between versions.

You can see what else might be causing strife by startting the ide from console - then you will be able to see error messages.

You are best off with python having all components from the same minor version (ex 2.3 ), subversion (2.3.x) will probably mix okay.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

kenroy

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • http://
Running Python plus modules
« Reply #3 on: May 31, 2004, 04:09:19 am »
Instead of running python-ide try using Visiscript. It has a nice built-in editor (Scintilla) and you can use it with different scripting languages.

http://www.mneuroth.de/privat/zaurus/visis...t_0.3.1_arm.ipk

The link has been updated to point to the latest version with multiple document support.
SL-A300 | Sharp ROM 1.50 J | Panasonic 256MB SD
-----------------------------------------------------------
SL-C860 | Sharp ROM 1.40 JP | Panasonic 1GB Pro High Speed SD | Buffalo WLI-CF-S11G | KWINS PHS CF card

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Running Python plus modules
« Reply #4 on: May 31, 2004, 11:31:52 pm »
I have tried using Visiscript, but found it too slow and resource-hunger.
Revert to Zeditor for the time being.

fpp

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • http://
Running Python plus modules
« Reply #5 on: June 01, 2004, 04:53:35 am »
I discovered the existence of Visiscript by reading this thread, thanks Kenroy !

I find it runs quite acceptably on my 760.  As I use Scite on my PC to edit Python scripts it is a joy to have all the Scintilla functionality on the Z - especially block indenting/dedenting ;-)

The main thing that troubles me is the \"file manager\" part - it seems that it will only \"see\" files that it has created itself (with a corresponding .desktop file) and only in its chosen directory (Documents/text/python). Is there really no way to make it edit existing python scripts in arbitrary (project) directories ?...

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Running Python plus modules
« Reply #6 on: June 01, 2004, 08:09:04 am »
If you want the python-ide to work you need to install code.py, codeop.py, traceback.py and linecache.py from a 2.3 python instal - I used the py files from my desktop python install - and the pyhton-ide starts happily.

Still trying to decide which I prefer from visiscrip and the python-ide (python-ide is more like idle, which I\'m used to using on the desktop)

Stu

P.S. If you don\'t have python installed, let me know and I can post the files mentioned above
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Running Python plus modules
« Reply #7 on: June 02, 2004, 10:54:33 pm »
Stubear,

Kindly enlighten where to download code.py, codeop.py, traceback.py and linecache.py.

jscriv

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://
Running Python plus modules
« Reply #8 on: June 03, 2004, 01:09:49 am »
FPP: use the \'Import\' function in Visiscript to load/edit existing files.

I agree that it\'s a great editor, I\'m a big fan of Scite so am very happy to have this on my Z.

Jeremy.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Running Python plus modules
« Reply #9 on: June 03, 2004, 03:41:47 am »
Quote
Stubear,

Kindly enlighten where to download code.py, codeop.py, traceback.py and linecache.py.


They come as part of a standard python install - install python on your desktop and copy them from your python module directory.

You might also be able to get them from www.python.org cvs (not sure if they have web interface or not)

Or you can wait till I get home and pack them and post them here (in about 6 hours)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

fpp

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • http://
Running Python plus modules
« Reply #10 on: June 03, 2004, 05:59:09 am »
Quote
FPP: use the \'Import\' function in Visiscript to load/edit existing files.

Oh, stupid me  -- thanks !
Quote
I agree that it\'s a great editor, I\'m a big fan of Scite so am very happy to have this on my Z.

Ditto !