OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Python => Topic started by: Jiba on January 26, 2008, 07:04:39 am
-
Hello,
I've compiled the latest Python 2.5.1 for Cacko, as well as PyQT (bound to Cacko's QTopia).
IPKG are available here :
http://feed.zaurusfr.org/cackophonie/feed/ (http://feed.zaurusfr.org/cackophonie/feed/)
Enjoy !
Jiba
-
Thank you, it works very well.
Misha
-
Hello,
I've compiled the latest Python 2.5.1 for Cacko, as well as PyQT (bound to Cacko's QTopia).
IPKG are available here :
http://feed.zaurusfr.org/cackophonie/feed/ (http://feed.zaurusfr.org/cackophonie/feed/)
Enjoy !
Jiba
Hi Jiba,
Thinking of learning Python and have downloaded "Python_2.5.1-cackompile2.1_arm.ipk" and "pyqt_3.8.1-onboard-2_arm.ipk" to the SD card on my Z. "Python_2.5.1-cackompile2.1_arm.ipk" won't install to my SD card and complains about dependencies. When i ran "ipkg depends" it moans about the underscore characters and i am fed up of seeing this error, why does ipkg do this when so many packages contain underscore characters?
I have now used "ipkg install" to install the package which seems to have worked but when i run python from the CLI it complains that libpython2.5.so.1.0 cannot load shared object file.....etc
Could someone please link me to a step by step installation guide for the Z which includes the req dependencies.
Should I install both files to memory or can I install them to the card?
What do i use for writing python on the Z, will a simple editor suffice?
Thanks
-
There used to be a Python package created by Kopsis (if I remember right) which was a cramfs file so you just mounted it and were ready to go. It worked for me when I used it a few times a while back. Search the forum for "python kopsis".
-
There used to be a Python package created by Kopsis (if I remember right) which was a cramfs file so you just mounted it and were ready to go. It worked for me when I used it a few times a while back. Search the forum for "python kopsis".
Unfortunately alot of the links I have found so far have gone dry
Gus
-
I'll attach a copy I found on my Zaurus. It's Kopsis Python 2.4. You should be able to find instructions on the forum to mount the image. To program in python all you need is a text editor.
Stupid forum won't let me upload the file for some reason. Use instead this link. (http://www.ma.utexas.edu/users/voloch/Exe/python24.img)
I just found this using google: Kopsis instructions (http://pyqplayer.sourceforge.net/cgi-bin/bin/view/Main/PythonZaurusImage). You need to download the python-exe ipk as well as the image that I linked above. I guess the other file does the installation for you. I don't remember what I did when used it but I am sure I just followed the instructions and everything worked as it should.
-
I'll attach a copy I found on my Zaurus. It's Kopsis Python 2.4. You should be able to find instructions on the forum to mount the image. To program in python all you need is a text editor.
Stupid forum won't let me upload the file for some reason. Use instead this link. (http://www.ma.utexas.edu/users/voloch/Exe/python24.img)
I just found this using google: Kopsis instructions (http://pyqplayer.sourceforge.net/cgi-bin/bin/view/Main/PythonZaurusImage). You need to download the python-exe ipk as well as the image that I linked above. I guess the other file does the installation for you. I don't remember what I did when used it but I am sure I just followed the instructions and everything worked as it should.
Hi Jfv,
Unfortunately I am getting access forbidden when I try to use the first link, Kopsis Python 2.4 must surely be lurking around somewhere on the internet.
Gus
-
The page where I pointed out for instructions has a download link where you'll find both files that you need.
I'll fix the other link.
-
Thanks jfv,
Have downloaded and installed and it seems to be working okay. Will be using python to create a simple gui flash card program and learning python at the same time and hope to do all this on the Z.
I also downloaded the following files.... "Python_2.5.1-cackompile2.1_arm.ipk" and "pyqt_3.8.1-onboard-2_arm.ipk" from
http://feed.zaurusfr.org/cackophonie/feed/ (http://feed.zaurusfr.org/cackophonie/feed/)
Is this a more up to date version of python for the Z I should be using or is it a case of 6 and one half dozen of the other? Did try to install using these files but obviously got it wrong and installed using your kopsis links.
Thanks
Gus
-
This is the newest version of Python I could find for Cacko, and in general it works well. Thank you for providing it, Jiba!
Unfortunately I can't get a piece of software to run with it, because some packages are missing. Which ones I'm not entirely sure, right now it complains about sqlite3. The Python part of this module seems to be included, but it fails to import the C part of the module (or so it seems). Anyway, when importing sqlite3, it complains about module _sqlite3 not available.
So far my search for a more complete or up to date Python has not been very successful. I found a Python 2.4 package by mickeyl, which is very good as well, but it does not include sqlite, and mickeyl does not offer a package for sqlite either. As for the Kopsis image, the sqlite it comes with seems to be too old, and while a loop mounted image certainly saves space, it's not possible to install additional python modules in the directory.
I would love to be able to build my own version of Python for Cacko, but so far, I have not found a good How-To. I know my way around Linux on my Desktop PC (experience with various distros including LFS and Gentoo), but embedded devices are like a different world for me. I don't know where to get a toolchain / cross compiling environment / emulator that allows downloading and compiling stuff for Cacko as easy as it is for the PC. Any pointers?