Git Product home page Git Product logo

jythonroid's People

Watchers

James Cloos avatar

jythonroid's Issues

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

What steps will reproduce the problem?
1. Download and install Android Emulator 5554 on Ubuntu Hardy 64
2. Download Jythonroid-0.3 and attempt install like so:

JiggityJog:~/android-sdk-linux_x86-1.0_r1/tools$ ./adb install
/home/doug/Jythonroid/bin/Jythonroid.apk 
1068 KB/s (1489190 bytes in 1.360s)
        pkg: /data/local/tmp/Jythonroid.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

3. Fill out this form. :-) 

What is the expected output? What do you see instead?

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

What version of the product are you using? On what operating system?
0.3, Ubuntu Hardy 64 (tried on Intrepid as well )

Please provide any additional information below.

Let me know how I can help.

Original issue reported on code.google.com by doug.shawhan on 21 Oct 2008 at 6:11

Attachments:

Android scripting is not an adequate replacement for jythonroid

I realise the project is dead so this doesn't help, but:

Android scripting is not a proper replacement for jythonroid.

Jythonroid would have allowed us to make python apps and put them on the 
marketplace, with android scripting people need the ASE installed, this is a 
barrier to writing python apps and putting them on the marketplace. 

Original issue reported on code.google.com by [email protected] on 30 Nov 2010 at 12:55

initialize sys module problem

What steps will reproduce the problem?
1.copy the fold Lib and caches into android:/data/data/org.python.util/ 
2. modify the PySystemState.java in 301, force the parament 'root' to be
"/data/data/org.python.util"
3. copy the .class files into the Jythonroid.apk, then install it.
4.run dalvikvm -classpath /data/app/Jythonroid.apk org.python.util.jython

What is the expected output? What do you see instead?
expected to run successfully, but instead throws Exception like bellow:

error importing site
Traceback (innermost last):
  File "/data/data/org.python.util/Lib/site.py", line 68, in ?
AttributeError: module 'sys' has no attribute 'modules'

Please use labels and text to provide additional information.

It seem like that the Jythonroid will use the .class files and, and then
initialize the sys module there.

so i decide to make two branches of my code, one is Jythonroid-server, the
Other is Jythonroid-client.
the Jythonroid-server will be compiled into a jar file ,and then install in
/data/data/org.python.util, and the fold contains py files (Lib) will move
here too.
the Jythonroid-client will be a Android project, and will have the code
org/python/util/Jythonroid.java

Original issue reported on code.google.com by [email protected] on 16 Apr 2008 at 4:25

import from * problem

1.>>>from android.app import * will not work 
2.>>>from android.app import Activity works fine

by compareing the jython running in sunjvm and dalvik, i find that in
dalvik it is the JavaImportHelper that handling the import of the package.
and it's said in the comment that:

    /**
     * Try to add the java package.
     * <p>
     * This is handy in cases where the package scan cannot run, or when
the initial classpath does not contain all .jar
     * files (such as in J2EE containers).
     * <p>
     * There is some self-healing in the sense that a correct, explicit
import of a java class will succeed even if
     * sys.modules already contains a Py.None entry for the corresponding
java package.
     * 
     * @param packageName The dotted name of the java package
     * @param fromlist A tuple with the from names to import. Can be null
or empty.
     * 
     * @return <code>true</code> if a java package was doubtlessly
identified and added, <code>false</code>
     * otherwise.
     */

and the exception is throwed by the 
                String parentPackageName = packageName;
                if (isLoadedPackage(packageName, packages)) {
                    packageAdded = addPackage(packageName, packageAdded);
                }


Original issue reported on code.google.com by [email protected] on 14 Apr 2008 at 11:04

sys module is empty

>>>import sys
>>>sys.__dict__
Traceback (innermost last):
  File "<console>", line 1, in ?
AttributeError: module 'sys' has no attribute '__dict__'

seems like the sys module is not initialize correctly, so the other part of
the program will not be able to access sys.path.__classpat__.

the sys module is defined in PySystemState.java


Original issue reported on code.google.com by [email protected] on 15 Apr 2008 at 1:42

can't run

# dalvikvm -classpath /data/app/Jythonroid.apk org.python.util.jython

Dalvik VM unable to locate class 'org/python/util/jython'
java.lang.NoClassDefFoundError: org.python.util.jython
        at android.dalvik.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: org.python.util.jython in
loader android.lang.PathClassLoader@40018f18
        at android.lang.PathClassLoader.findClass(PathClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:442)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:414)
        ... 1 more

Original issue reported on code.google.com by [email protected] on 11 Apr 2008 at 2:32

Dalvik VM unable to locate class 'org/python/util/jython'

Running on an actual phone, running android rc30 (post root-typing bug),
adb shell gets me a shell that runs as id shell:
> $ id
> uid=2000(shell) gid=2000(shell)
groups=1003(graphics),1004(input),1007(log),1011(adb),3003(inet)

and can't read /data:
> /data:
> opendir failed, Permission denied

leading to dalvikvm failing to start jython:

$  dalvikvm -classpath /data/app/Jythonroid.apk org.python.util.jython 
 dalvikvm -classpath /data/app/Jythonroid.apk org.python.util.jython 
Dalvik VM unable to locate class 'org/python/util/jython'
java.lang.NoClassDefFoundError: org.python.util.jython
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: org.python.util.jython in
loader dalvik.system.PathClassLoader@40019600
    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:453)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:421)
    ... 1 more


(Using the 16-Nov-2008 build.) This makes it difficult to use
interactively...  is there any trick to get around this?  Or are we stuck
until the edit box works?

(What I *actually* want is to be able to write standalone applications with
this - even if that means embedding jython in them - maybe having the
default app use a little python code to display something, which we could
then extend and rebuild?)

Thanks...

Original issue reported on code.google.com by [email protected] on 16 Nov 2008 at 6:03

Can not read an apk file on emulator on SDK 1.1

Hi,

It seems my code cannot read an apk File I have created on the Android 
emulator.

- First off, I created an sdcard with command 'mksdcard ...'
- then I run this code: 

------------- Begin Cut Here --------------->

File tmpdir = new File(tmpdirpath+name);

if (!tmpdir.exists()) 
 {
  boolean b = tmpdir.mkdirs();
 } 
else
 {
  if (!tmpdir.isDirectory()) 
   {
    throw new RuntimeException("here : the tmp dir conflicts");
   }
 }
File apk = new File(tmpdirpath + name + "/" + name + ".apk");
if (!apk.exists())
 {
  apk.createNewFile();
 }
// with name = name of my apk file.

------------- End Cut Here --------------->

- The apk file is successfully created on a temporary directory on /sdcard,
but I have no permissions to read it: 

- - - - r w - r w -

- I tryed to change them:
#adb shell
# chmod 777 myFile.apk

No error but permissions remain the same  

- - - - r w - r w -

and I get the following exception:
    04-28 14:56:16.296: ERROR/dalvikvm(231): Can't open dex cache 
'/data/
    dalvik-cache/
    [email protected]@[email protected]._pyx0.apk@
classes.dex':
    No such file or directory
    04-28 14:56:16.296: INFO/dalvikvm(231): Unable to open or create 
cache
    for /sdcard/.tmpdir/org.python.pycode._pyx0/
    org.python.pycode._pyx0.apk
    04-28 14:56:16.306: WARN/System.err(231): java.io.IOException: 
unable
    to open DEX file
    04-28 14:56:16.326: WARN/System.err(231):     at
    dalvik.system.DexFile.openDexFile(Native Method)
    04-28 14:56:16.336: WARN/System.err(231):     at
    dalvik.system.DexFile.<init>(DexFile.java:55)
    04-28 14:56:16.346: WARN/System.err(231):     at
    dalvik.system.DexFile.<init>(DexFile.java:41)
    04-28 14:56:16.355: WARN/System.err(231):     at
    org.python.debug.FixMe.getClassByName(FixMe.java:93)


Can somebody help please?



Original issue reported on code.google.com by [email protected] on 29 Apr 2009 at 8:34

Could we develope jython as a service

Hi, 
  Thanks your great job for porring jython.
  From the code, you used DexFile to generate apk and load class.
  I think it is not necessary to do this. 
  If develop jython as a service, when run the service all the class will
be loaded by system automaticly?

  Does my understanding is right?

  If you are in China, could you contact me?

  My msn  [email protected]
  Thanks. 

Huadong

Original issue reported on code.google.com by [email protected] on 11 Apr 2008 at 7:06

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.