Sympy on Android (SL4A with Python)

822 views
Skip to first unread message

Roberto Colistete Jr.

unread,
May 8, 2011, 7:11:21 AM5/8/11
to sympy
Hi,

It is my first participation here : how can I install Sympy on
Android (using SL4A with Python) ? I tried copying the "sympy" tree to
"/sdcard/com.googlecode.pythonforandroid/extras/python/" but I try
loading sympy (with "import sympy", for example) I get many error
messages.

I use Sympy on Symbian/S60v3 (N95, E63, etc) without problems
(only without graphics). I also use Sympy on Maemo OS 5 (Nokia N900)
and Ubuntu 10.04 64 bits (notebook).

Keep the nice work on Sympy,

Roberto

Ondrej Certik

unread,
May 8, 2011, 2:12:18 PM5/8/11
to sy...@googlegroups.com
Hi Roberto,

On Sun, May 8, 2011 at 4:11 AM, Roberto Colistete Jr.
<roberto....@gmail.com> wrote:
>    Hi,
>
>    It is my first participation here : how can I install Sympy on
> Android (using SL4A with Python) ? I tried copying the "sympy" tree to
> "/sdcard/com.googlecode.pythonforandroid/extras/python/" but I try
> loading sympy (with "import sympy", for example) I get many error
> messages.

Is there any way you could paste somewhere (e.g. gist.github.com) the
error messages? If not, at least tell us what the first error message
is.

Then we'll see what's going on.

I also own Android (Nexus One) --- but never got to actually install
sympy on it. So you first download this:

http://code.google.com/p/android-scripting/

and then copy sympy by hand into
"/sdcard/com.googlecode.pythonforandroid/extras/python/"?

>
>    I use Sympy on Symbian/S60v3 (N95, E63, etc) without problems
> (only without graphics). I also use Sympy on Maemo OS 5 (Nokia N900)
> and Ubuntu 10.04 64 bits (notebook).

Nice!

>
>       Keep the nice work on Sympy,

Ondrej

Aaron S. Meurer

unread,
May 8, 2011, 8:21:23 PM5/8/11
to sy...@googlegroups.com
I don't own an Android, but can you not somehow cd into the sympy directory and run ./setup.py install?

Aaron Meurer

Roberto Colistete Jr.

unread,
May 12, 2011, 10:17:20 AM5/12/11
to sympy
Hi guys,

Problem solved ! I found the problem and the solution : as in PyS60
(Python for Symbian/S60), the "timeit.pyc" is needed by SymPy and not
available (on PyS60 or Python 2.6.2for Android), so (a compatible)
"timeit.pyc" should be copied to "/sdcard/
com.googlecode.pythonforandroid/extras/python/".

I copied the "timeit.pyc" from Python 2.6.5 of my notebook (Intel
with Ubuntu 10.04 64 bits). The "timeit.pyc" from Python 2.5 is not
compatible.

The "MathScript" software for Android, which uses Python/SymPy, is
an interesting interface for SymPy for many users. After installing
"MathScript Lite", in the directory "/sdcard/
com.funmath.mathscriptlite/data/python/" there is a compatible
"timeit.pyc" which can also be copied.

I will later publish a blog page with a "How-to-install-and-use-
Python-and-Sympy-on-Android" and the link will be posted here.

Best regards from Brazil,

Roberto Colistete Jr.

Ondrej Certik

unread,
May 12, 2011, 2:53:35 PM5/12/11
to sy...@googlegroups.com

Awesome!

Looking forward for the blog post.

Ondrej

Roberto Colistete Jr.

unread,
Feb 18, 2012, 5:24:25 PM2/18/12
to sy...@googlegroups.com
Hi,

Just to follow the messages below. The "SymPy for smartphones &
tablets" web site :

http://www.robertocolistete.net/Python/SymPy/

also has SymPy installation instructions on Android (as well as on
iOS, Maemo 4, Maemo 5, MeeGo 1.2 Harmattan and Symbian).

The "timeit.pyc" trick is not needed in the last SL4A versions.

Regards,

Roberto


---------- Forwarded message ----------
From: Ondrej Certik <ond...@certik.cz>
Date: May 12 2011, 4:53 pm
Subject: Sympy on Android (SL4A with Python)
To: sympy


On Thu, May 12, 2011 at 7:17 AM, Roberto Colistete Jr.

Aaron Meurer

unread,
Feb 18, 2012, 5:32:46 PM2/18/12
to sy...@googlegroups.com
Hi.

I didn't find any apps called "iPython" in the iOS app store. Perhaps
this is what is now called "Python for iOS" (this even shows "import
sympy" in one of the screenshots, which is cool).

I don't know if you want to mention it, but if you jailbreak iOS,
installing SymPy is really easy (just install Python in Cydia and
download and install SymPy using some file manager, or install git
using Cydia and install it using that). Then, run it in whatever
terminal application. You still can't get plotting, but if you have a
nice terminal application, some of the other stuff is really nice. I
haven't tried it yet, but installing IPython should also be easy.

Aaron Meurer

> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
>

Roberto Colistete Jr.

unread,
Feb 18, 2012, 5:38:26 PM2/18/12
to sy...@googlegroups.com
Hi,

The author of the former "iPython" wrote me about it yesterday. I
am updating the site today.

Yes, the new name is 'Python for iOS'.

Well, I can put a little observation about Python with Cydia on
iOS. But I want to compare vanilla mobile OS, without much hackering
like Android root (with Linux chroot), Maemo 4/5 with Easy Debian, etc.

Regards, Roberto

Roberto Colistete Jr.

unread,
Feb 18, 2012, 5:56:06 PM2/18/12
to sy...@googlegroups.com
Ok, the site :

http://www.robertocolistete.net/Python/SymPy/

is now updated with the new name, 'Python for iOS' and price (US$2.99).

Regards, Roberto


Em 18-02-2012 20:32, Aaron Meurer escreveu:

Reply all
Reply to author
Forward
0 new messages