Coder Social home page Coder Social logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024

Original comment by rjmatthews62 on 20 Mar 2011 at 7:06

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Is anyone working on this? I tried to get this working by compiling with the 
NDK as described in the wiki. It requires libncurses.a, which I eventually 
figured out using this blog for guidelines:
http://credentiality2.blogspot.com/2010/08/compile-ncurses-for-android.html

Then there was an issue not being about to find setpwent or getpwent. I 
brazenly deleted the offending code and eventually got an egg.
Unfortunately, it looks like something is wrong with the library I built with 
NDK.
When I "import readline" I get:
ImportError: Cannot load library: load_segments[928]: 600 failed to map segment 
from 'readline.so' @ <some assembly stuff here>

At this point I'm pretty well stuck, maybe someone else will know what to do.

Original comment by [email protected] on 9 Oct 2011 at 6:24

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Added to Python3
Will be looking to backport to Python2 in the next few weeks.

Original comment by rjmatthews62 on 3 Apr 2012 at 2:03

  • Changed state: Started

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Yay, my fingers are so tired 

Original comment by [email protected] on 21 Sep 2012 at 6:04

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
I would actually rather have 2.6 with readline than 2.7 without it. Does that 
make sense?

Original comment by [email protected] on 23 Sep 2012 at 3:33

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
I tried to compile readline 6.2.2 using third party library but it says import 
error cannot load library find library 1226 : 7498 readline.so failed to load 
previously.

Original comment by [email protected] on 18 Oct 2012 at 10:47

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
any update for readline support on python 2.x?

Original comment by [email protected] on 29 Dec 2012 at 4:27

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
I compiled libreadline.so and libhitory.so for Android using c4droid (not 
ndk!), and checked them with Python-ctypes, and they work. To compile readline, 
on Bionic, a patch is necessary for systems without setpwent, which I got from 
this bug report [1]. The shared object libraries are attached here as 
"rl-6.2_arm_linux_androideabi.tar", & the patch is also attached as 
"readline-6.2-complete.c.patch". Unfortunately I was not able to compile a 
working "readline.so" from the Python-readline-6.2.4.1 package; I always got 
"library not found"/"failed to load previously" errors. However, I am working 
on a pure (Python only) wrapper for the shared object libraries using 
Python-ctypes that is closely based on Python-readline. It is called 
"purereadline" [2] and is hosted on github. I hope when it is completed it will 
work or I'll be very bummed. FYI: I can't think of any reason that the 
Python-readline package shouldn't work except that I am too lazy to actually 
build Python for Andriod, and so have valid python.h and pyconfig.h files. It 
would be very nice if future "Python for Android" versions had a "dev" download 
that included the headers necessary to build extensions.

[1] http://lists.gnu.org/archive/html/bug-readline/2012-09/msg00001.html 
[2] https://github.com/mikofski/purereadline

Original comment by [email protected] on 29 Dec 2012 at 8:18

Attachments:

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
See readline build Robbie did for Python 3, this should be easy to port on 
android-python27, unfortunately I have no time to do this right now but is in 
my todo. Let me know if you succeed and would like to commit your code in the 
project.

Original comment by [email protected] on 29 Dec 2012 at 8:52

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
The pure-python readline code is on github, but it is still about 100 lines and 
some testing short of being ready.

http://poquitopicante.blogspot.com/2013/01/purereadline.html

Original comment by [email protected] on 8 Jan 2013 at 6:30

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Hai, Finally I compiled a working readline module for python2.7.3
The attached file is can be applied to original python2.7.3.tar.gz

But I only compiled python ,readline , and ncurses.So there are lot of modules 
which is un available .includes ctypes. Because I concentrated on readline.

I used gdb sever to debug python shared libs. It is a great tool.

I choose python2.7.3 because I couldnot get the source file which correspond to 
python_r16.zip available at Download section.This version contains almost all 
module except readline.
Here I have only readline module.

So any one can post headers corresponding to python_r16.zip.

Sorry for my language.

Original comment by [email protected] on 4 Feb 2013 at 7:02

Attachments:

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Hai ,
This the reppo for python2.7.3 with readline support
https://github.com/harish2704/android-python2.7.3

Original comment by [email protected] on 6 Feb 2013 at 6:29

from python-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
I finally got readline working for the KBOX environment port of Python 3.5.x 
thanks to the patch posted here plus a couple of post-configure hacks to the 
shlib/Makefile.

For reference purposes, the "issue" is being tracked here: 
http://bugs.python.org/issue23496. Once I figure out where or if to submit 
readline stuff, I'll post the link here as well

Original comment by [email protected] on 23 Apr 2015 at 10:54

from python-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.