OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Running Python plus modules
cjthorley
post May 30 2004, 05:54 PM
Post #1





Group: Members
Posts: 7
Joined: 20-May 04
Member No.: 3,345



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
Go to the top of the page
 
+Quote Post
freizugheit
post May 30 2004, 06:44 PM
Post #2





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



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.
Go to the top of the page
 
+Quote Post
Stubear
post May 30 2004, 08:23 PM
Post #3





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



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
Go to the top of the page
 
+Quote Post
kenroy
post May 31 2004, 12:09 AM
Post #4





Group: Members
Posts: 19
Joined: 20-February 04
From: Japan
Member No.: 1,963



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.
Go to the top of the page
 
+Quote Post
freizugheit
post May 31 2004, 07:31 PM
Post #5





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



I have tried using Visiscript, but found it too slow and resource-hunger.
Revert to Zeditor for the time being.
Go to the top of the page
 
+Quote Post
fpp
post Jun 1 2004, 12:53 AM
Post #6





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



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 ?...
Go to the top of the page
 
+Quote Post
Stubear
post Jun 1 2004, 04:09 AM
Post #7





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



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
Go to the top of the page
 
+Quote Post
freizugheit
post Jun 2 2004, 06:54 PM
Post #8





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



Stubear,

Kindly enlighten where to download code.py, codeop.py, traceback.py and linecache.py.
Go to the top of the page
 
+Quote Post
jscriv
post Jun 2 2004, 09:09 PM
Post #9





Group: Members
Posts: 23
Joined: 8-December 03
From: Wellington, New Zealand
Member No.: 1,084



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.
Go to the top of the page
 
+Quote Post
Stubear
post Jun 2 2004, 11:41 PM
Post #10





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



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
Go to the top of the page
 
+Quote Post
fpp
post Jun 3 2004, 01:59 AM
Post #11





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



QUOTE
FPP: use the 'Import' function in Visiscript to load/edit existing files.

Oh, stupid me smile.gif -- 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 !
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th September 2014 - 07:33 AM