Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2008, 07:01 PM   #1
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
Functioning Python 2.5

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/...rex-iliad.html

Enjoy...
Attached Files
File Type: gz iliad_python_2.5.tar.gz (13.43 MB, 760 views)
amirshim is offline   Reply With Quote
Old 05-20-2008, 07:10 PM   #2
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
Included modules

Here is the list of included modules. To get the list, first set Django's config (it gets upset otherwise):

Code:
export DJANGO_SETTINGS_MODULE=django.conf.global_settings
then run the interpreter:

Code:
exe/python/bin/python
and type this inside the interpreter:
Code:
help()
modules
This is what you get:
Code:

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

amirshim is offline   Reply With Quote
Old 05-21-2008, 01:28 AM   #3
Dabon
Connoisseur
Dabon doesn't litterDabon doesn't litter
 
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
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.
Dabon is offline   Reply With Quote
Old 05-21-2008, 04:08 AM   #4
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
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.
amirshim is offline   Reply With Quote
Old 05-21-2008, 08:16 PM   #5
Dabon
Connoisseur
Dabon doesn't litterDabon doesn't litter
 
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
Thank you, amirshim! I really appreciate it!
Dabon is offline   Reply With Quote
Old 05-27-2008, 04:19 PM   #6
mrhunt
Junior Member
mrhunt began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2008
Device: iLiad
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?
mrhunt is offline   Reply With Quote
Old 05-29-2008, 12:01 AM   #7
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
SSL for python...

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
Attached Files
File Type: gz pyssl.tar.gz (11.0 KB, 413 views)
amirshim is offline   Reply With Quote
Old 05-29-2008, 12:52 AM   #8
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
Smaller Python Executable (Stripped)

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
Attached Files
File Type: gz python_stripped.tar.gz (491.5 KB, 431 views)
amirshim is offline   Reply With Quote
Old 06-13-2008, 02:34 AM   #9
Nergal
eBuchReisender
Nergal doesn't litterNergal doesn't litterNergal doesn't litter
 
Nergal's Avatar
 
Posts: 41
Karma: 208
Join Date: May 2008
Location: Münster
Device: Palm Tungsten-E, iLiad
Smile


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
Nergal is offline   Reply With Quote
Old 06-19-2008, 11:11 AM   #10
Dabon
Connoisseur
Dabon doesn't litterDabon doesn't litter
 
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
Help needed

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"
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!!

Thanks,

Dabon.
Dabon is offline   Reply With Quote
Old 06-19-2008, 12:17 PM   #11
bobj
Enthusiast
bobj is on a distinguished road
 
Posts: 25
Karma: 67
Join Date: May 2008
Device: iRex iLiad
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.
bobj is offline   Reply With Quote
Old 06-19-2008, 01:32 PM   #12
Dabon
Connoisseur
Dabon doesn't litterDabon doesn't litter
 
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
Thanks a million, Bobj! It was more than helpful...it was very instructional...a true learning experience indeed!!
problem solved!!

Thanks

Dabon.
Dabon is offline   Reply With Quote
Old 09-16-2008, 05:15 PM   #13
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 973
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Does this Python build provide PyGTK? I want to test if if ComiX (http://comix.sourceforge.net/download.html) runnable?

Last edited by ericshliao; 09-16-2008 at 05:18 PM.
ericshliao is offline   Reply With Quote
Old 10-01-2008, 04:37 PM   #14
Hisko
Junior Member
Hisko began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2008
Device: iLiad
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
Hisko is offline   Reply With Quote
Old 10-08-2008, 06:09 PM   #15
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 710
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
curses module missing

Hi,
first of all thanks for this package.
now a petition: could you add curses module please?
Thanks,
Iņigo
Iņigo is offline   Reply With Quote
Reply

Tags
development, iliad, irex, python, wiki

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 buttons half-functioning, can't hard reset Harkonnen Sony Reader 2 12-21-2009 08:33 PM
using python with windows xp tuufbiz1 Kindle Formats 10 05-05-2009 11:53 PM
Python 2.5 or 2.6? itimpi Calibre 5 01-19-2009 12:48 PM
Calibre and Python: do they get along? zander_nyrond Calibre 7 07-20-2008 06:54 PM
Reader frozen / dead / not functioning AGAIN MacBeezle Sony Reader 4 08-08-2007 08:12 AM


All times are GMT -4. The time now is 06:14 AM.


MobileRead.com is a privately owned, operated and funded community.