![]() ![]() |
Jan 20 2005, 11:27 AM
Post
#16
|
|
|
Group: Members Posts: 50 Joined: 10-November 03 Member No.: 832 |
I'm currently using your 2.3 image. To upgrade to 2.4 I know that I need to download the 2.4 image. Do I also need to get the new IPK as well?
|
|
|
|
Jan 20 2005, 03:00 PM
Post
#17
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
QUOTE(slapout @ Jan 20 2005, 02:27 PM) To upgrade to 2.4 I know that I need to download the 2.4 image. Do I also need to get the new IPK as well? Yes. See the "Upgrading" section of this page for more details. |
|
|
|
Jan 21 2005, 07:04 AM
Post
#18
|
|
![]() Group: Members Posts: 39 Joined: 18-December 04 From: Germany Member No.: 5,957 |
dear kopsis, many thanks for your work!
is there a certain order in which python-exe looks for the img? i copied the img from my SD to home/zaurus/Documents on my C3000 and ran the python-exe from my SD. the installation worked perfectly, though it mounted the img which was still on SD. actually this is not a problem at the moment, as i usually always have this particular SD in my system, but i'm curious of how to change the default location for the img. |
|
|
|
Jan 21 2005, 07:29 AM
Post
#19
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
QUOTE(Bertram Wooster @ Jan 21 2005, 10:04 AM) The file /etc/rc.d/init.d/mntpython is a "shell script" that controls locating and mounting the image. You can view it in any text editor and you'll see that starting around line 12 is a big block of if/elif statements that are used to locate the image file. I kept the script brutally simple so you don't have to be a shell scripting guru to understand what it's doing |
|
|
|
Jan 21 2005, 12:25 PM
Post
#20
|
|
![]() Group: Members Posts: 245 Joined: 30-October 03 Member No.: 813 |
Thanks for the 2.4 wrap! It is working great.
I am using the CRAMFS version right now, and it is much faster than the EXT2 2.3 system was. I don't know if 2.4 is just much faster, or if it is a result of the file system. Anyway, thanks, it is working great! |
|
|
|
Feb 3 2005, 07:14 AM
Post
#21
|
|
|
Group: Members Posts: 48 Joined: 3-February 04 From: Edinburgh, Scotland Member No.: 1,681 |
Kopsis,
Just installed your Python cramfs image on the main memory of my c860 and there is a small error in the mntpython script. when it searches for the image it looks for /home/zaurus/Documents/${PYTHON}.img but then sets IMAGEDIR="/home/zaurus/" so the mount then fails. I just changed IMAGEDIR="/home/zaurus/Documents/" and everything works fine. Just need to learn more than print "Hello World" now |
|
|
|
Feb 3 2005, 03:15 PM
Post
#22
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
Thanks for pointing that out! I'll be sure to fix it for the next release
|
|
|
|
Feb 3 2005, 08:50 PM
Post
#23
|
|
|
Group: Members Posts: 102 Joined: 11-October 04 Member No.: 4,962 |
Which ROM's will this work with? Would it work with OpenZaurus?
I'm thinking that at least the PyQt library might depend on which rom you have. p.s. Is there a complete list of all of the Python libraries included in this? Sounds like great work! radioz |
|
|
|
Feb 4 2005, 05:07 AM
Post
#24
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
My Python image is designed for ROMs build with gcc 2.95 using the standard Sharp libraries. I'm pretty sure it will not work with OpenZaurus nor pdaXrom since both of those have kernels and libraries built with gcc 3.x using the -msoft-float option. For OZ you may want to check out the Python for ARM-Linux project (though the site appears to be down at the moment).
I don't have a complete list of included modules but my Python image is basically just a complete build of the standard Python 2.4 distribution plus PyQt, PySqlite, and PyMySQL. |
|
|
|
Feb 6 2005, 05:50 PM
Post
#25
|
|
|
Group: Members Posts: 19 Joined: 21-April 04 Member No.: 2,945 |
Ok I installed PyQt per instructions and when I run type python it gives me the following errors:
1. Could not find platform independent libraries <prefix> 2. Could not find platform independent libraries <exec_prefix> 3. Could setting $PYTHONHOME to <prefix>[:<exec_prefix>] 4. Process python killed 5. import site' failed; use -v for traceback Im on the c3000 Im trying to find out, what I need to do to fix this? |
|
|
|
Feb 6 2005, 06:08 PM
Post
#26
|
|
|
Group: Members Posts: 409 Joined: 7-November 03 Member No.: 811 |
kopsis,
Thanks for the excellent job. I have successfully downloaded and installed Python 2.4 on my SL-5600 with original Sharp ROM Version 1.32. I have tried running widgets.py from PyQt examples and it worked smoothly. However, my own PyQt program encountered low memory problem. Is there any way to solve my memory problem? By the way, which version of PyQt is bundled and will you be able to disclose the details of subdirectories in the ex2 file. Once again my sincere appreciation for your contribution. |
|
|
|
Feb 7 2005, 05:25 AM
Post
#27
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
QUOTE(sojc @ Feb 6 2005, 08:50 PM) This sounds like a case of the Python image not getting mounted. Note that the Python executable is installed to internal storage so it's always available ... but it won't actually work unless the filesystem image gets mounted correctly by the /etc/rc.d/init.d/mntpython script. You can verify this diagnosis by doing a "mount" command (without any parameters) from a root login in the konsole. You should see a line similar to the following: CODE /dev/loop1 on /home/QtPalmtop/lib/python2.4 type cramfs (rw) The loop device may have a different number and the fs type may be "ext2" instead of "cramfs". If you don't have a line similar to the above, try the following command (from a root login): CODE /etc/rc.d/init.d/mntpython start Post any error messages and we'll work through what might be tripping things up. |
|
|
|
Feb 7 2005, 06:19 AM
Post
#28
|
|
![]() Group: Members Posts: 329 Joined: 1-July 04 Member No.: 3,880 |
QUOTE(freizugheit @ Feb 6 2005, 09:08 PM) However, my own PyQt program encountered low memory problem. Is there any way to solve my memory problem? The one down side of using Python is that it's a bit memory hungry. The three solutions are to either reduce memory use by other apps, reduce memory use by your Python app, or use a swapfile. Reducing memory use by other apps may be as simple as turning off "fast load" for the standard Qtopia apps. If you're not familiar with "fast load" settings, a quick forum search will turn up all kinds of info. You may also find that your Python app is architected such that it's wasting memory. Unfortunately, how to find and fix problems like that is way beyond what can be taught in a forum post. Google can find you examples of Python optimization techniques that may help cut your app's memory requirements. For what it's worth, I've been able to run some pretty healthy Python apps on a lowly SL-5500 by carefully designing the apps to minimize memory use. Using a sqlite database to manage the app's persistant data instead of keeping everything in Python data structures in memory can be a big win. If you've trimmed the memory footprint for running apps and your Python code as much as practical and you still have problems, you'll need to set up a swapfile. Again, a forum search is the best way to find out how to do that. Keep in mind that swapfiles (due to fairly heavy write activity) can be fairly hard on some SD and CF cards. Choose the location wisely (eg. use an old CF card for you swapfile instead of a brand new expensive 1GB SD card) and disable the swapfile any time you don't need it. QUOTE(freizugheit @ Feb 6 2005, 09:08 PM) By the way, which version of PyQt is bundled and will you be able to disclose the details of subdirectories in the ex2 file. The version of PyQt included is PyQt-x11-gpl-3.13 source downloaded from Riverbank's site and built against Python 2.4 and SIP 4.1.1. I'm not planning on posting a dump of the filesystem, but you can always browse the filesystem yourself. The ext2 (and cramfs) file mounts at /opt/QtPalmtop/lib/python2.4 ... everything under there is in the fs image. |
|
|
|
Feb 7 2005, 05:32 PM
Post
#29
|
|
|
Group: Members Posts: 409 Joined: 7-November 03 Member No.: 811 |
Kopsis,
Thanks for the pointers. |
|
|
|
Feb 7 2005, 07:05 PM
Post
#30
|
|
|
Group: Members Posts: 19 Joined: 21-April 04 Member No.: 2,945 |
ok, I copied the python24.ex2 to /home/zaurus/Documents. I typed: /etc/rc.d/init.d/mntpthon start. These are the errors:
/sbin/fsck.ext2 No such file or directory while trying to open /home/zaurus/python4.ex2 the superblock could not be read or does not describe a correct ext2 ext2 filesystem. ...... mount: Could not setup loop device. But, when i typed: python at the command prompt I got the python command prompt and I ran a simple program. Hello world. ty sojc |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 01:17 AM |