Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : Functioning Python 2.5


amirshim
05-20-2008, 08:01 PM
The previous version of Python that was posted here had lots of issues (actually, it was just a partial build). So I built it with a couple of extra modules such as Django. Just unpack it and play. The executable is "exe/python/bin/python"

I might have some more relevant info about it (and other cool stuff for the Iliad) on my website soon.
http://blog.amirshimoni.com/2008/05/python-25-for-irex-iliad.html

Enjoy...

amirshim
05-20-2008, 08:10 PM
Here is the list of included modules. To get the list, first set Django's config (it gets upset otherwise):

export DJANGO_SETTINGS_MODULE=django.conf.global_settings

then run the interpreter:

exe/python/bin/python

and type this inside the interpreter:
help()
modules

This is what you get:

BaseHTTPServer cProfile itertools shutil
Bastion cStringIO keyword signal
CGIHTTPServer calendar linecache site
Canvas cdrom linuxaudiodev smtpd
ConfigParser cgi locale smtplib
Cookie cgitb logging sndhdr
Dialog chunk macpath socket
DocXMLRPCServer cmath macurl2path spwd
FileDialog cmd mailbox sqlite3
FixTk code mailcap sre
HTMLParser codecs markupbase sre_compile
MimeWriter codeop marshal sre_constants
Queue collections math sre_parse
ScrolledText colorsys md5 stat
SimpleDialog command mhlib statvfs
SimpleHTTPServer commands mimetools string
SimpleXMLRPCServer compileall mimetypes stringold
SocketServer compiler mimify stringprep
StringIO contextlib mmap strop
Tix cookielib modulefinder struct
Tkconstants copy multifile subprocess
Tkdnd copy_reg mutex sunau
Tkinter crypt mwlib sunaudio
UserDict csv netrc symbol
UserList ctypes new symtable
UserString curses nis sys
_LWPCookieJar datetime nntplib syslog
_MozillaCookieJar dbhash ntpath tabnanny
__builtin__ decimal nturl2path tarfile
__future__ difflib opcode telnetlib
_ast dircache operator tempfile
_bisect dis optparse termios
_codecs distutils os tests
_codecs_cn django os2emxpath textwrap
_codecs_hk dl ossaudiodev this
_codecs_iso2022 dlfcn parser thread
_codecs_jp doctest pdb threading
_codecs_kr dumbdbm pickle time
_codecs_tw dummy_thread pickletools timeit
_csv dummy_threading pil tkColorChooser
_ctypes_test easy_install pipes tkCommonDialog
_elementtree email pkg_resources tkFileDialog
_functools encodings pkgutil tkFont
_heapq errno platform tkMessageBox
_locale exceptions popen2 tkSimpleDialog
_lsprof fcntl poplib toaiff
_md5 filecmp posix token
_multibytecodec fileinput posixfile tokenize
_random fnmatch posixpath trace
_sha formatter pprint traceback
_sha256 fpformat profile tty
_sha512 ftplib pstats turtle
_socket functools pty types
_sqlite3 gc pwd unicodedata
_sre getopt py_compile unittest
_strptime getpass pyclbr urllib
_struct gettext pydoc urllib2
_symtable glob pyexpat urlparse
_testcapi gopherlib quopri user
_threading_local grp random uu
_types gzip re uuid
_weakref hashlib repr warnings
aifc heapq resource wave
anydbm hmac rexec weakref
array hotshot rfc822 webbrowser
asynchat htmlentitydefs rgbimg whichdb
asyncore htmllib rlcompleter wikimarkup
atexit httplib robotparser wsgiref
audiodev idlelib runpy xdrlib
audioop ihooks sched xml
base64 imageop select xmllib
bdb imaplib sets xmlrpclib
binascii imghdr setuptools xxsubtype
binhex imp sgmllib zipfile
bisect imputil sha zipimport
bsddb in shelve zlib
cPickle inspect shlex

Dabon
05-21-2008, 02:28 AM
Thank you for your hard work amirshim!
I am not a developer, and not really versed in computer, but I can tell from what you wrote that this new functioning python will open a new window for exciting new applications...A couple of questions: Is it possible to install the new language on a CF, or does it have to use the intern memory? Will it be possible for us (not so well computer literate) to have an installer package as the one that Daudi, Adam and Co. usually prepare for us?? Thanks a million for your consideration.
Dabon.

amirshim
05-21-2008, 05:08 AM
You can probably install it anywhere. But as for a clean installer... I leave it to the experts... or we'll tackle it when it is needed.

Dabon
05-21-2008, 09:16 PM
Thank you, amirshim! I really appreciate it!

mrhunt
05-27-2008, 05:19 PM
I have been experimentig a little bit with this version of python. Seems to be working fine!

I noticed ssl is not supported. Is it possible to support ssl?

amirshim
05-29-2008, 01:01 AM
Here you go...
Just copy _ssl.so from the archive to "exe/python/lib/python2.5/lib-dynload/"

run the included sample program (from the python guide) to make sure it's working.
-Amir

amirshim
05-29-2008, 01:52 AM
I just realized that I didn't strip any of the executables that I built, so they are about twice as big as they should be. I'm not going to redo everything, but I stripped the python executable and it went down from 2.8MB to 1.2MB

If you like, you can replace the one in exe/python/bin/ with this one. It should be exactly the same, but stripped (of symbol info).
-Amir

Nergal
06-13-2008, 03:34 AM
:thanks:
amirshim, just wanted to thank you for this port of Python. I cannot code in another language (yet ;) ), so this has thrown open for me a huge wide door to the iLiad.
It is so much fun to code what I want.

Cheers,
Nergal

Dabon
06-19-2008, 12:11 PM
Hi Amirshim,
I have decided to "tackle" this python installation , and I tried to use Xshell to install python, but everytime I put in the line: "exe/python/bin/python"
I am receiving the message: " sh: exe/python/bin/python: not found":chinscratch:
Would you be kind as to help me and let me know what I am doing wrong?
I have trued to use the both version unstripped and stripped: same result!!:blink:

Thanks,

Dabon.

bobj
06-19-2008, 01:17 PM
Hi Dabon,

For anyone confused about what Xshell is, it's a new wrapper for mrxvt.

Since this release is primarily for developers, a few steps were left implicit. Please forgive me if I misunderstood your question.

If you put iliad_python_2.5.tar.gz on your cf card inside the "python" directory, then start xshell and type:

cd /media/cf/python
tar -xzvf iliad_python_2.5.tar.gz
exe/python/bin/python

That should in principle get you into python.

Dabon
06-19-2008, 02:32 PM
Thanks a million, Bobj! It was more than helpful...it was very instructional...a true learning experience indeed!!
problem solved!!

Thanks

Dabon.

ericshliao
09-16-2008, 06:15 PM
Does this Python build provide PyGTK? I want to test if if ComiX (http://comix.sourceforge.net/download.html) runnable?

Hisko
10-01-2008, 05:37 PM
I can get Python running by starting the command shell and /media/cf/exe/..../python.
But I don't understan how to start Python from the Content Lister, using run.sh scripts and manifest.xml. All variations I tried resultted in a screen refresh of the content lister.
Questions
1: What should be the run.sh script?
2: How to redirect output to see what is going wrong in run.sh?

Thanks
Hisko

Iņigo
10-08-2008, 07:09 PM
Hi,
first of all thanks for this package.
now a petition: could you add curses module please?
Thanks,
Iņigo

needhelp
06-30-2009, 07:56 PM
Hi,
Thanks for the package. I tried installing it on the irex reader S1000 but it didn't work. What I did was to copy the unzipper folder to the SD card and tried this: /media/disk/exe/.../python but it says the binary file cannot be executed.
could you please help.

Thanks

ericshliao
06-30-2009, 08:03 PM
Hi,
Thanks for the package. I tried installing it on the irex reader S1000 but it didn't work. What I did was to copy the unzipper folder to the SD card and tried this: /media/disk/exe/.../python but it says the binary file cannot be executed.
could you please help.

Thanks

It's only for iLiad, not for DR1000.

needhelp
06-30-2009, 08:56 PM
Could you please give me some directions on how I can get python installed in the DR1000?

ericshliao
06-30-2009, 09:06 PM
Could you please give me some directions on how I can get python installed in the DR1000?

All software compiled for iLiad won't run on DR1000. You can't install those packages on DR1000 in any ways. If you do need Python for DR1000, you have to compile it with DR1000 SDK.

needhelp
06-30-2009, 09:17 PM
Thank you for your reply. This saves me time trying to get it working on the DR1000. Do you have any idea on how to cross compile python using the SDK for the DR1000? If you do could please give me some directions.

Thank you very much for your help.