Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion force close on running a python script

Received: by 10.101.131.21 with SMTP id i21mr1217745ann.4.1307111525562;
        Fri, 03 Jun 2011 07:32:05 -0700 (PDT)
X-BeenThere: android-scripting@googlegroups.com
Received: by 10.91.142.17 with SMTP id u17ls385529agn.6.gmail; Fri, 03 Jun
 2011 07:32:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.161.39 with SMTP id n39mr246034ago.32.1307111523474; Fri,
 03 Jun 2011 07:32:03 -0700 (PDT)
Received: by n10g2000yqf.googlegroups.com with HTTP; Fri, 3 Jun 2011 07:32:03
 -0700 (PDT)
Date: Fri, 3 Jun 2011 07:32:03 -0700 (PDT)
In-Reply-To: <BANLkTimkRi8XmC+0d353M5Za0nV6_r-W3Q@mail.gmail.com>
References: <7ebb4a8b-3aa7-4904-8f13-bfc9e33c13ec@f31g2000pri.googlegroups.com>
 <4DDA6BD8.1000509@gmail.com> <36f793b8-8b8c-49a2-9bb4-5428fd06b185@l2g2000prg.googlegroups.com>
 <BANLkTimkRi8XmC+0d353M5Za0nV6_r-W3Q@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
 Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13,gzip(gfe)
Message-ID: <f7fa6089-168e-4edf-9c40-56ab113b3073@n10g2000yqf.googlegroups.com>
Subject: Re: force close on running a python script
From: Ellen Zhang <ellen.zh...@deltamobile.com>
To: android-scripting <android-scripting@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes.  After PythonForAndroid_r4.apk was installed, I installed
libraries from within the Python app.

I was able to create a new python script and "save & run" from within
the new created script.  Also, command line in python console works
find, too.

My issue is sl4a fails to create the gray stripe view when clicking on
an existing script from the file list, due to ResourcesNotFound.
Anyone has any idea what could be wrong?

Thanks.

Ellen

On Jun 3, 5:52=A0am, Robbie Matthews <rjmatthew...@gmail.com> wrote:
> Have you installed the python libraries? You do this through the python f=
or
> android app.
>
> Robbie
> On Jun 3, 2011 6:27 AM, "Ellen Zhang" <ellen.zh...@deltamobile.com> wrote=
:
>
> > I have exactly the same issue on TI PandaBoard with Android 2.2
>
> > Let me describe my problem with more details:
>
> > 1. sl4a_r4.apk was installed by adb install successfully
> > 2. PythonForAndroid_r4.apk was installed by adb install successfully
> > 3. On PandaBoard, if you start the sl4a and get into Python
> > interpreter console, python commands work just fine.
> > 4. If you start the sl4a and create a new python script, then "save &
> > run" from the script, it works fine. (At this point, I would say sl4a
> > probably is running just fine)
> > 5. The problem is here: if you try to run an existing script by
> > clicking it from the file list, then sl4a crashes. Logcat is attached
> > below. This issue happens with every script, Python, Lua or Perl
> > (these are the only interpreters I installed).
>
> > By looking at the logcat message, it seems when sl4a fails when trying
> > to create that gray view for user to choose how to run the script.
> > Some background .png file could not be found when creating the gray
> > stripe view. But by checking the android file system, the /system/
> > framework/framewor-res.apk does have that .png file compiled in. I
> > kinda doubt maybe the problem is at Android file system side.
>
> > Please help to solve. Any input is greatly appreciated!
>
> > Regards,
> > Ellen
>
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > W/ResourceType( 1748): Failure getting entry for 0x7f020023 (t=3D1 e=3D=
35)
> > in package 0: 0xffffffb5
> > D/AndroidRuntime( 1748): Shutting down VM
> > W/dalvikvm( 1748): threadid=3D1: thread exiting with uncaught exception
> > (group=3D0x4001d8b0)
> > --------- beginning of /dev/log/system
> > E/AndroidRuntime( 1748): FATAL EXCEPTION: main
> > E/AndroidRuntime( 1748): android.view.InflateException: Binary XML
> > file line #6: Error inflating class <unknown>
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.createView(LayoutInflater.java:513)
> > E/AndroidRuntime( 1748): at
>
> com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLa=
youtInfla> ter.java:56)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > E/AndroidRuntime( 1748): at
> > net.londatiga.android.QuickAction.<init>(QuickAction.java:59)
> > E/AndroidRuntime( 1748): at
>
> com.googlecode.android_scripting.activity.ScriptManager.onListItemClick(S=
criptMana
>
> > ger.java:374)
> > E/AndroidRuntime( 1748): at android.app.ListActivity
> > $2.onItemClick(ListActivity.java:321)
> > E/AndroidRuntime( 1748): at
> > android.widget.AdapterView.performItemClick(AdapterView.java:284)
> > E/AndroidRuntime( 1748): at
> > android.widget.ListView.performItemClick(ListView.java:3385)
> > E/AndroidRuntime( 1748): at android.widget.AbsListView
> > $PerformClick.run(AbsListView.java:1696)
> > E/AndroidRuntime( 1748): at
> > android.os.Handler.handleCallback(Handler.java:587)
> > E/AndroidRuntime( 1748): at
> > android.os.Handler.dispatchMessage(Handler.java:92)
> > E/AndroidRuntime( 1748): at android.os.Looper.loop(Looper.java:
> > 123)
> > E/AndroidRuntime( 1748): at
> > android.app.ActivityThread.main(ActivityThread.java:4627)
> > E/AndroidRuntime( 1748): at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > E/AndroidRuntime( 1748): at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > E/AndroidRuntime( 1748): at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:858)
> > E/AndroidRuntime( 1748): at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
> > E/AndroidRuntime( 1748): at
> > dalvik.system.NativeStart.main(Native Method)
> > E/AndroidRuntime( 1748): Caused by:
> > java.lang.reflect.InvocationTargetException
> > E/AndroidRuntime( 1748): at
> > android.widget.FrameLayout.<init>(FrameLayout.java:79)
> > E/AndroidRuntime( 1748): at
> > java.lang.reflect.Constructor.constructNative(Native Method)
> > E/AndroidRuntime( 1748): at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:446)
> > E/AndroidRuntime( 1748): at
> > android.view.LayoutInflater.createView(LayoutInflater.java:500)
> > E/AndroidRuntime( 1748): ... 21 more
> > E/AndroidRuntime( 1748): Caused by: android.content.res.Resources
> > $NotFoundException: File res/drawable-hdpi/editbox_d
> > ropdown_background_dark.9.png from drawable resource ID #0x7f020023
> > E/AndroidRuntime( 1748): at
> > android.content.res.Resources.loadDrawable(Resources.java:1714)
> > E/AndroidRuntime( 1748): at
> > android.content.res.TypedArray.getDrawable(TypedArray.java:601)
> > E/AndroidRuntime( 1748): at android.view.View.<init>(View.java:
> > 1885)
> > E/AndroidRuntime( 1748): at
> > android.view.ViewGroup.<init>(ViewGroup.java:291)
> > E/AndroidRuntime( 1748): at
> > android.widget.FrameLayout.<init>(FrameLayout.java:83)
> > E/AndroidRuntime( 1748): ... 25 more
> > E/AndroidRuntime( 1748): Caused by: java.io.FileNotFoundException: res/
> > drawable-hdpi/editbox_dropdown_background_dark
> > .9.png
> > E/AndroidRuntime( 1748): at
> > android.content.res.AssetManager.openNonAssetNative(Native Method)
> > E/AndroidRuntime( 1748): at
> > android.content.res.AssetManager.openNonAsset(AssetManager.java:405)
> > E/AndroidRuntime( 1748): at
> > android.content.res.Resources.loadDrawable(Resources.java:1706)
> > E/AndroidRuntime( 1748): ... 29 more
> > W/ActivityManager( 1375): Force finishing activity
> > com.googlecode.android_scripting/.activity.ScriptManager
> > I/SurfaceFlinger( 1375):
> > I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
> >>mIdentity=3D43, LayerName=3D Sorry!
> > I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
> >>clientIndex=3D2, surfaceHandle->mToken=3D0x2
> > W/ActivityManager( 1375): Activity pause timeout for
> > HistoryRecord{46356df0 com.googlecode.android_scripting/.activit
> > y.ScriptManager}
> > I/SurfaceFlinger( 1375):
> > I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
> >>mIdentity=3D44, LayerName=3D com.android.launcher/com.a
> > ndroid.launcher2.Launcher
>
> > On May 23, 9:14 am, Manuel Naranjo <naranjo.man...@gmail.com> wrote:
> >> Please provide with adb logcat output when you run PY4A
>
> > --
> > You received this message because you are subscribed to the Google Grou=
ps
>
> "android-scripting" group.> To post to this group, send email to android-=
scripting@googlegroups.com.
> > To unsubscribe from this group, send email to
>
> android-scripting+unsubscribe@googlegroups.com.> For more options, visit =
this group at
>
> http://groups.google.com/group/android-scripting?hl=3Den.
>