My favorites | Sign in
Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Search
for
Updated Dec 16, 2009 by damonkohler
Labels: Featured
InstallingInterpreters  
A howto for installing additional interpreters.

Only shell is included with the ASE install. Other interpreters must be installed separately. To add another interpreter:

  1. Press the menu button
  2. Tap "Interpreters"
  3. Press the menu button
  4. Tap "Add"
  5. Select the interpreter you would like to install

The selected interpreter, interpreter extras, and its example scripts (if available) will be downloaded to /sdcard/xxx.zip and then extracted to /data/data/com.google.ase/xxx, /sdcard/ase/extras/xxx, and /sdcard/ase/scripts respectively.

If you experience problems while installing interpreters:

  1. Check that your network connection is working by trying to load a web page in your browser.
  2. Try to add the interpreter again. ASE should recover from most installation failures.
  3. Uninstall and reinstall the interpreter. You can uninstall by long-tapping an interpreter in the list of installed interpreters.

Troubleshooting

It's likely that the installation failed. Try again.
Delete the ZIP file from /sdcard and then try the installation again.
Issue 78 is tracking the interpreter manager feature which will enable easily reinstalling interpreters if the installation fails. Until then, the best work around is to uninstall ASE, delete /sdcard/ase/, delete /sdcard/*.zip, then reinstall ASE and the troublesome interpreter.

Comment by she...@gmail.com, Jul 26, 2009

How does one install an interpreter by hand? copy python.zip to the sdcard?

Comment by damonkohler, Aug 06, 2009

It's not possible to install interpreters by hand without being root since it requires access to the private data directory of ASE. If you copy the .zip files to your SD card, however, ASE will skip the download step.

Comment by haitiankid4lyf, Aug 28, 2009

Where do i find alternate interpeters, like perl and jruby, i opened ase recently and had a longer list of interperters available to download and install such as perl, jruby, jruby extra, and some others, however after i installed them i kept getting mis matched hash and md5 error so i decided to delete the downloads from sdcard, but errors continued so i uninstalled and reinstalled the app but now only lua and python are the only interpreters available to download. I even checked in the data dir lua and python are the only folders there.

Comment by damonkohler, Sep 11, 2009

@haitiankid4lyf I'm not completely clear on what your question is. You install interpreters from the Add Interpreter menu. Currently, there is no support to uninstall interpreters. If there's a failed download, you'll need to manually remove the downloaded zip files from your SD card.

Comment by ubermonk, Sep 29, 2009

I've installed ASE but Perl didn't appear in the list of interpreters. So I downloaded the archives perlr0.zip and have them sitting under /sdcard. However when I run ASE they still don't appear in the list of interpreters to install. Any ideas?

Comment by ericosur, Oct 01, 2009

If you have problems to install perl, you should try the new version of ASE first. The following procedures for manual install.

prepare: 1. download and unzip the android-sdk

(or you only need tools/ and usb_driver (win32) )

2. install busybox into your android devices, it would provide unzip

3. perl_r0.zip for the perl interpret

4. you might need root permission (I am not sure about this)

procedure: ( step 1 and 2 may be replaced by using usb mass storage copy)

1. adb shell mkdir /sdcard/asetmp

2. adb push perl_r0.zip /sdcard/asetmp

3. adb shell

4. the following commands issued under adb shell:

cd /data/data/com.google.ase unzip /sdcard/asetmp/perl_r0.zip

5. it's done and could be seen by ASE r13

The demo scripts are stored in the "/sdcard/ase/scripts". You may use USB mass storage mode to copy/unzip.

Comment by damonkohler, Oct 04, 2009

I've updated the troubleshooting section with my suggested workaround. I know it is far from ideal. I hope to address these issues in the next release.

Comment by rusty0101, Nov 03, 2009

Not sure if it would help, but thinking that a bsh script that let's people give a yes or no to download specific interpreters, that then goes and gets the interpreter and either tells ASE to install the downloaded interpreters, or reminds the user to exit ASE and restart to install the downloaded interpreters might be handy.

If it can be done in a small enough code block, post a qrcode bar code here to give the new user the experience of downloading and running a qrcode script.

I'm suggesting bsh because I think the bean shell interpreter is integrated where everything else is manually installed.

Comment by batsup, Nov 04, 2009

Is it planned to add a pascal interpreter?

Comment by daniel.akerud, Nov 27, 2009

Since I cannot use the GUI to install interpreters (proxy unsupported) I use ericosur's guide to manually install the interpreters (thanks!). Python is done, but I cannot find the jruby or ruby interpreter for manual download. Anyone knows?

Comment by flyeryz250, Dec 21, 2009

I want to install the python interpreter , and I have skimmed over what this ASE is ,but I guess my question is #1 is the ASE already in my android G1 and all i have to do is install the python interpreter or #2 do I need to install ASE and python and if so where do I get these interpreter for this android g1. One more thing can I just install the python interpreter only .I just got into this I am learning python but I program in C,C++,PHP,VB

Comment by averule, Dec 31, 2009

I have installed ASE .and then copied .zip files of python in /sdcard/ .while installation i.e after showing downloading python_r1.zip it was giving error as downloading interpreter failed installation failed. anyone can tell me what is going wrong?

I am using linux as a host system and running android using emulator.

Comment by chenfushans, Jan 01, 2010

hope to see pascal interpreter

Comment by luisrodriguezjurado, Jan 08, 2010

What are the steps to add new interpreters (pascal or others)?

Comment by ian.niko86, Jan 10, 2010

I'm trying to install the python interpreter. Everytime it says installation unsucessful, but the Python is in the interpreter list. When opened it lists the directory of python and says access denied.

Anyone know a way round this?

Comment by will.uther, Jan 16, 2010

ian: I had the same problem (using a rooted phone and ase_16 - not sure if that is important).

My solution was to follow ericosur's instructions for perl, but modified for python.

- replace references to perl with python - unzip the python_extras in the /data/data/com.google.ase/ dir (as well as the main python zip) - make sure the python executable in /data/data/com.google.ase/python/bin/python has its execute bit set. - I also checked ownership of the newly unzipped files and changed their permissions so they weren't world writable.

After that, python seems to run. I still can't get the python scripts to appear - I've unzipped them in /sdcard/ase as it says above, but no luck so far.

From my initial bit of debugging, it seems that the original problem was the the python_extras weren't being installed. I don't know why not.
Comment by staffan.gribel, Jan 28, 2010

Is it possible install on an AVD?

Comment by damonkohler, Feb 03 (5 days ago)

@batsup @chenfushans Feel free to file a feature request on the issues page. @daniel.akerud I've added an issue to track proxy support in interpreter downloads.

@flyeryz250 ASE has to be installed separately. See the home page for a link to download it on your phone. Once you install ASE, you can install Python via the instructions on this page.

@averule It's possible you did not download all the necessary files. There are 3 zip files required for installing Python.

@luisrodriguezjurado Please file feature requests for new interpreters on the Issues page. Adding a new interpreter is fairly complex and usually requires knowledge of how to do cross compilation.

@staffan.gribel Yes.


Sign in to add a comment