Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service fails to start #1020

Closed
eteamin opened this issue Mar 17, 2017 · 1 comment
Closed

service fails to start #1020

eteamin opened this issue Mar 17, 2017 · 1 comment

Comments

@eteamin
Copy link

eteamin commented Mar 17, 2017

Using the second method here for creating a service, I simply have a file named main.py containing

if __name__ == "__main__":
    print 'service started'

when I pass --service=myservice:/data/data/my.package.name/files/app/service/main.py to p4a
and try to run it on android, the output is as follows without loggin what the error is

I/python ( 8970): Initialize Python for Android
I/python ( 8970): Changing directory to the one provided by ANDROID_ARGUMENT
I/python ( 8970): /data/data/org.test.community/files/app
I/python ( 8970): Preparing to initialize python
I/python ( 8970): crystax_python does not exist
I/python ( 8970): Initialized python
I/python ( 8970): AND: Init threads
I/python ( 8970): Setting up python from ANDROID_PRIVATE
I/python ( 8941): [WARNING] [Base ] Unknown provider
I/python ( 8941): [INFO ] [Base ] Start application main loop
I/python ( 8970): AND: Ran string
I/python ( 8970): Run user program, change dir and execute entrypoint
I/python ( 8970): Python for android ended.

Also if I intentiaoly pass an invalid path, it raises Entrypoint not found (.py), abort. Is it related to what Py_Finalize(); does here in line 276?

@KeyWeeUsr
Copy link
Contributor

I believe --service=myservice:/path/to/myservice.py is meant as a path from your current directory to the python file when packaging. So try e.g. --service=myservice:./service/main.py if you have a service folder in your current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants