Can't install pygame_SDL2
Re: Can't install pygame_SDL2
Wow! really, that was it??
ok, I got it to import!
thanks! that's a good start..
ok, I got it to import!
thanks! that's a good start..
Re: Can't install pygame_SDL2
Hi,
So, looks like I got pygame_sdl2 installed and usable. I can directly import it.
I have taken my game, imported pygame_sdl2, and it runs on PC.
I can also run the rapt-pygame-example-master example program on PC, and it seems to work fine.
I can get through the RAPT process to generate an APK.
However, neither one of these stay running when I install on a device.
I see a pygame splash screen, but it never proceeds to the "Touch the screen" window when I run the example.
How would I debug this? I've looked at the RAPT build output, and nothing screams out as an fatal error.
any suggestions about what to look at?
thanks!
G
So, looks like I got pygame_sdl2 installed and usable. I can directly import it.
I have taken my game, imported pygame_sdl2, and it runs on PC.
I can also run the rapt-pygame-example-master example program on PC, and it seems to work fine.
I can get through the RAPT process to generate an APK.
However, neither one of these stay running when I install on a device.
I see a pygame splash screen, but it never proceeds to the "Touch the screen" window when I run the example.
How would I debug this? I've looked at the RAPT build output, and nothing screams out as an fatal error.
Code: Select all
F:\rapt>python android.py --launch build F:\rapt\rapt-pygame-example-master release install
Updating source code.
Updating build files.
Resolved location of library project to: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file F:\rapt\build.xml
Updated file F:\rapt\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Creating assets directory.
Traceback (most recent call last):
File "android.py", line 69, in <module>
main()
File "android.py", line 54, in main
build.build(iface, args.argument[0], args.argument[1:], launch=args.launch)
File "buildlib\rapt\build.py", line 526, in build
iface.background(make_assets)
File "buildlib\rapt\interface.py", line 255, in background
f()
File "buildlib\rapt\build.py", line 508, in make_assets
os.mkdir(plat.path("assets"))
WindowsError: [Error 5] Access is denied: 'F:\\rapt\\assets'
F:\rapt>python android.py --launch build F:\rapt\rapt-pygame-example-master release install
Updating source code.
Updating build files.
Resolved location of library project to: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file F:\rapt\build.xml
Updated file F:\rapt\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Creating assets directory.
Packaging internal data.
Listing F:\rapt\private ...
Listing F:\rapt\private\include ...
Listing F:\rapt\private\include\python2.7 ...
Listing F:\rapt\private\lib ...
Listing F:\rapt\private\lib\python2.7 ...
Listing F:\rapt\private\lib\python2.7\bsddb ...
Listing F:\rapt\private\lib\python2.7\compiler ...
Listing F:\rapt\private\lib\python2.7\config ...
Listing F:\rapt\private\lib\python2.7\distutils ...
Listing F:\rapt\private\lib\python2.7\distutils\command ...
Listing F:\rapt\private\lib\python2.7\email ...
Listing F:\rapt\private\lib\python2.7\email\mime ...
Listing F:\rapt\private\lib\python2.7\encodings ...
Listing F:\rapt\private\lib\python2.7\hotshot ...
Listing F:\rapt\private\lib\python2.7\importlib ...
Listing F:\rapt\private\lib\python2.7\json ...
Listing F:\rapt\private\lib\python2.7\lib-dynload ...
Listing F:\rapt\private\lib\python2.7\logging ...
Listing F:\rapt\private\lib\python2.7\multiprocessing ...
Listing F:\rapt\private\lib\python2.7\plat-linux3 ...
Listing F:\rapt\private\lib\python2.7\pydoc_data ...
Listing F:\rapt\private\lib\python2.7\site-packages ...
Listing F:\rapt\private\lib\python2.7\site-packages\android ...
Listing F:\rapt\private\lib\python2.7\site-packages\jnius ...
Listing F:\rapt\private\lib\python2.7\site-packages\pygame_sdl2 ...
Listing F:\rapt\private\lib\python2.7\site-packages\pygame_sdl2\threads ...
Listing F:\rapt\private\lib\python2.7\site-packages\pysdlsound ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\display ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\gl ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\styledata ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\text ...
Listing F:\rapt\private\lib\python2.7\sqlite3 ...
Listing F:\rapt\private\lib\python2.7\unittest ...
Listing F:\rapt\private\lib\python2.7\wsgiref ...
Listing F:\rapt\private\lib\python2.7\xml ...
Listing F:\rapt\private\lib\python2.7\xml\dom ...
Listing F:\rapt\private\lib\python2.7\xml\etree ...
Listing F:\rapt\private\lib\python2.7\xml\parsers ...
Listing F:\rapt\private\lib\python2.7\xml\sax ...
Packaging external data.
Listing F:\rapt\rapt-pygame-example-master ...
Compiling F:\rapt\rapt-pygame-example-master\main.py ...
I'm using Ant to build the package.
Buildfile: F:\rapt\build.xml
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at F:\rapt\android-sdk-r23
-setup:
[echo] Project Name: TryThisNow-0.1
[gettype] Project Type: Application
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for TryThisNow-0.1...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for TryThisNow-0.1...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'release'...
Trying to override old definition of task testedprojectclasspath
Trying to override old definition of task getuitarget
Trying to override old definition of task getlibpath
Trying to override old definition of task renderscript
Trying to override old definition of task lint
Trying to override old definition of task dex
Trying to override old definition of task getprojectpaths
Trying to override old definition of task buildconfig
Trying to override old definition of task aidl
Trying to override old definition of task propertybyreplace
Trying to override old definition of task signapk
Trying to override old definition of task gettype
Trying to override old definition of task if
Trying to override old definition of task dependency
Trying to override old definition of task xpath
Trying to override old definition of task zipalign
Trying to override old definition of task apkbuilder
Trying to override old definition of task getbuildtools
Trying to override old definition of task aapt
Trying to override old definition of task getemmafilter
Trying to override old definition of task checkenv
Trying to override old definition of task mergemanifest
Trying to override old definition of task gettarget
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at f:\rapt\android-sdk-r23
-setup:
[echo] Project Name: library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\res
[crunch] To destination dir: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[echo]
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
-release-sign:
-post-build:
release:
Trying to override old definition of task testedprojectclasspath
Trying to override old definition of task getuitarget
Trying to override old definition of task getlibpath
Trying to override old definition of task renderscript
Trying to override old definition of task lint
Trying to override old definition of task dex
Trying to override old definition of task getprojectpaths
Trying to override old definition of task buildconfig
Trying to override old definition of task aidl
Trying to override old definition of task propertybyreplace
Trying to override old definition of task signapk
Trying to override old definition of task gettype
Trying to override old definition of task if
Trying to override old definition of task dependency
Trying to override old definition of task xpath
Trying to override old definition of task zipalign
Trying to override old definition of task apkbuilder
Trying to override old definition of task getbuildtools
Trying to override old definition of task aapt
Trying to override old definition of task getemmafilter
Trying to override old definition of task checkenv
Trying to override old definition of task mergemanifest
Trying to override old definition of task gettarget
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at f:\rapt\android-sdk-r23
-setup:
[echo] Project Name: downloader_library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for downloader_library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for downloader_library...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 1 source file to F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\res
[crunch] To destination dir: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[echo]
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
-release-sign:
-post-build:
release:
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 5 source files to F:\rapt\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: F:\rapt\bin\classes
[dex] input: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
[dex] input: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
[dex] input: F:\rapt\libs\amazon-iap-2.0.1.jar
[dex] input: F:\rapt\libs\ouya-sdk.jar
[dex] Using Pre-Dexed classes-3fa521d4df28d795b0c415b3f14a538c.jar <- F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
[dex] Using Pre-Dexed classes-72e0b27afbcd4beee14408e6f53285bb.jar <- F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
[dex] Pre-Dexing F:\rapt\libs\amazon-iap-2.0.1.jar -> amazon-iap-2.0.1-0627090ac50030f03ed8316b645b48b9.jar
[dex] Pre-Dexing F:\rapt\libs\ouya-sdk.jar -> ouya-sdk-11ce9186a9b74c0ead3ae53918683dda.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into F:\rapt\bin\classes.dex...
[dx] Merged dex A (71 defs/81.9KiB) with dex B (47 defs/88.1KiB). Result is 118 defs/199.4KiB. Took 0.1s
[dx] Merged dex A (118 defs/199.4KiB) with dex B (25 defs/35.5KiB). Result is 143 defs/285.8KiB. Took 0.0s
[dx] Merged dex A (143 defs/285.8KiB) with dex B (90 defs/79.8KiB). Result is 233 defs/471.1KiB. Took 0.0s
[dx] Merged dex A (233 defs/471.1KiB) with dex B (138 defs/123.2KiB). Result is 371 defs/807.1KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\res
[crunch] To destination dir: F:\rapt\bin\res
[crunch] Processing image to cache: F:\rapt\res\drawable\icon.png => F:\rapt\bin\res\drawable\icon.png
[crunch] (processed image to cache entry F:\rapt\bin\res\drawable\icon.png: 96% size of source)
[crunch] Crunched 1 PNG files to update cache
-package-resources:
[aapt] Found Deleted Target File
[aapt] Creating full resource package...
-package:
[apkbuilder] Found Deleted Target File
[apkbuilder] Creating TryThisNow-0.1-release-unsigned.apk for release...
-post-package:
-release-prompt-for-password:
-release-nosign:
-release-sign:
[echo] Signing final apk...
[zipalign] Running zip align on final apk...
[echo] Release Package: F:\rapt\bin\TryThisNow-0.1-release.apk
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
-post-build:
release:
install:
[echo] Installing F:\rapt\bin\TryThisNow-0.1-release.apk onto default emulator or device...
Terminate batch job (Y/N)? y
Traceback (most recent call last):
File "android.py", line 69, in <module>
main()
File "android.py", line 54, in main
build.build(iface, args.argument[0], args.argument[1:], launch=args.launch)
File "buildlib\rapt\build.py", line 608, in build
iface.call([ plat.ant ] + commands, cancel=True)
File "buildlib\rapt\interface.py", line 238, in call
subprocess.check_call(args, cwd=plat.RAPT_PATH)
File "c:\python27\lib\subprocess.py", line 506, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\python27\lib\subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "c:\python27\lib\subprocess.py", line 945, in wait
_subprocess.INFINITE)
KeyboardInterrupt
F:\rapt>python -O android.py --launch build F:\rapt\rapt-pygame-example-master release
Updating source code.
Updating build files.
Resolved location of library project to: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file F:\rapt\build.xml
Updated file F:\rapt\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Creating assets directory.
Packaging internal data.
Listing F:\rapt\private ...
Listing F:\rapt\private\include ...
Listing F:\rapt\private\include\python2.7 ...
Listing F:\rapt\private\lib ...
Listing F:\rapt\private\lib\python2.7 ...
Listing F:\rapt\private\lib\python2.7\bsddb ...
Listing F:\rapt\private\lib\python2.7\compiler ...
Listing F:\rapt\private\lib\python2.7\config ...
Listing F:\rapt\private\lib\python2.7\distutils ...
Listing F:\rapt\private\lib\python2.7\distutils\command ...
Listing F:\rapt\private\lib\python2.7\email ...
Listing F:\rapt\private\lib\python2.7\email\mime ...
Listing F:\rapt\private\lib\python2.7\encodings ...
Listing F:\rapt\private\lib\python2.7\hotshot ...
Listing F:\rapt\private\lib\python2.7\importlib ...
Listing F:\rapt\private\lib\python2.7\json ...
Listing F:\rapt\private\lib\python2.7\lib-dynload ...
Listing F:\rapt\private\lib\python2.7\logging ...
Listing F:\rapt\private\lib\python2.7\multiprocessing ...
Listing F:\rapt\private\lib\python2.7\plat-linux3 ...
Listing F:\rapt\private\lib\python2.7\pydoc_data ...
Listing F:\rapt\private\lib\python2.7\site-packages ...
Listing F:\rapt\private\lib\python2.7\site-packages\android ...
Listing F:\rapt\private\lib\python2.7\site-packages\jnius ...
Listing F:\rapt\private\lib\python2.7\site-packages\pygame_sdl2 ...
Listing F:\rapt\private\lib\python2.7\site-packages\pygame_sdl2\threads ...
Listing F:\rapt\private\lib\python2.7\site-packages\pysdlsound ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\display ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\gl ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\styledata ...
Listing F:\rapt\private\lib\python2.7\site-packages\renpy\text ...
Listing F:\rapt\private\lib\python2.7\sqlite3 ...
Listing F:\rapt\private\lib\python2.7\unittest ...
Listing F:\rapt\private\lib\python2.7\wsgiref ...
Listing F:\rapt\private\lib\python2.7\xml ...
Listing F:\rapt\private\lib\python2.7\xml\dom ...
Listing F:\rapt\private\lib\python2.7\xml\etree ...
Listing F:\rapt\private\lib\python2.7\xml\parsers ...
Listing F:\rapt\private\lib\python2.7\xml\sax ...
Packaging external data.
Listing F:\rapt\rapt-pygame-example-master ...
Compiling F:\rapt\rapt-pygame-example-master\main.py ...
I'm using Ant to build the package.
Buildfile: F:\rapt\build.xml
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at F:\rapt\android-sdk-r23
-setup:
[echo] Project Name: TryThisNow-0.1
[gettype] Project Type: Application
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for TryThisNow-0.1...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for TryThisNow-0.1...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'release'...
Trying to override old definition of task testedprojectclasspath
Trying to override old definition of task getuitarget
Trying to override old definition of task getlibpath
Trying to override old definition of task renderscript
Trying to override old definition of task lint
Trying to override old definition of task dex
Trying to override old definition of task getprojectpaths
Trying to override old definition of task buildconfig
Trying to override old definition of task aidl
Trying to override old definition of task propertybyreplace
Trying to override old definition of task signapk
Trying to override old definition of task gettype
Trying to override old definition of task if
Trying to override old definition of task dependency
Trying to override old definition of task xpath
Trying to override old definition of task zipalign
Trying to override old definition of task apkbuilder
Trying to override old definition of task getbuildtools
Trying to override old definition of task aapt
Trying to override old definition of task getemmafilter
Trying to override old definition of task checkenv
Trying to override old definition of task mergemanifest
Trying to override old definition of task gettarget
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at f:\rapt\android-sdk-r23
-setup:
[echo] Project Name: library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\res
[crunch] To destination dir: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[echo]
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
-release-sign:
-post-build:
release:
Trying to override old definition of task testedprojectclasspath
Trying to override old definition of task getuitarget
Trying to override old definition of task getlibpath
Trying to override old definition of task renderscript
Trying to override old definition of task lint
Trying to override old definition of task dex
Trying to override old definition of task getprojectpaths
Trying to override old definition of task buildconfig
Trying to override old definition of task aidl
Trying to override old definition of task propertybyreplace
Trying to override old definition of task signapk
Trying to override old definition of task gettype
Trying to override old definition of task if
Trying to override old definition of task dependency
Trying to override old definition of task xpath
Trying to override old definition of task zipalign
Trying to override old definition of task apkbuilder
Trying to override old definition of task getbuildtools
Trying to override old definition of task aapt
Trying to override old definition of task getemmafilter
Trying to override old definition of task checkenv
Trying to override old definition of task mergemanifest
Trying to override old definition of task gettarget
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at f:\rapt\android-sdk-r23
-setup:
[echo] Project Name: downloader_library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for downloader_library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for downloader_library...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 1 source file to F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\res
[crunch] To destination dir: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[echo]
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
-release-sign:
-post-build:
release:
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 5 source files to F:\rapt\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: F:\rapt\bin\classes
[dex] input: F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
[dex] input: F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
[dex] input: F:\rapt\libs\amazon-iap-2.0.1.jar
[dex] input: F:\rapt\libs\ouya-sdk.jar
[dex] Using Pre-Dexed classes-3fa521d4df28d795b0c415b3f14a538c.jar <- F:\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
[dex] Using Pre-Dexed classes-72e0b27afbcd4beee14408e6f53285bb.jar <- F:\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
[dex] Using Pre-Dexed amazon-iap-2.0.1-0627090ac50030f03ed8316b645b48b9.jar <- F:\rapt\libs\amazon-iap-2.0.1.jar
[dex] Using Pre-Dexed ouya-sdk-11ce9186a9b74c0ead3ae53918683dda.jar <- F:\rapt\libs\ouya-sdk.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into F:\rapt\bin\classes.dex...
[dx] Merged dex A (71 defs/81.9KiB) with dex B (47 defs/88.1KiB). Result is 118 defs/199.4KiB. Took 0.1s
[dx] Merged dex A (118 defs/199.4KiB) with dex B (25 defs/35.5KiB). Result is 143 defs/285.8KiB. Took 0.0s
[dx] Merged dex A (143 defs/285.8KiB) with dex B (90 defs/79.8KiB). Result is 233 defs/471.1KiB. Took 0.0s
[dx] Merged dex A (233 defs/471.1KiB) with dex B (138 defs/123.2KiB). Result is 371 defs/807.1KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir: F:\rapt\res
[crunch] To destination dir: F:\rapt\bin\res
[crunch] Processing image to cache: F:\rapt\res\drawable\icon.png => F:\rapt\bin\res\drawable\icon.png
[crunch] (processed image to cache entry F:\rapt\bin\res\drawable\icon.png: 96% size of source)
[crunch] Crunched 1 PNG files to update cache
-package-resources:
[aapt] Found Deleted Target File
[aapt] Creating full resource package...
-package:
[apkbuilder] Found Deleted Target File
[apkbuilder] Creating TryThisNow-0.1-release-unsigned.apk for release...
-post-package:
-release-prompt-for-password:
-release-nosign:
-release-sign:
[echo] Signing final apk...
[zipalign] Running zip align on final apk...
[echo] Release Package: F:\rapt\bin\TryThisNow-0.1-release.apk
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
[propertyfile] Updating property file: F:\rapt\bin\build.prop
-post-build:
release:
BUILD SUCCESSFUL
Total time: 12 seconds
Launching app.
error: device '(null)' not found
Traceback (most recent call last):
File "android.py", line 69, in <module>
main()
File "android.py", line 54, in main
build.build(iface, args.argument[0], args.argument[1:], launch=args.launch)
File "buildlib\rapt\build.py", line 641, in build
], cancel=True)
File "buildlib\rapt\interface.py", line 238, in call
subprocess.check_call(args, cwd=plat.RAPT_PATH)
File "c:\python27\lib\subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['F:\\rapt\\android-sdk-r23\\platform-tools\\adb.exe', 'shell', 'am', 'start', '-W', '-a', 'android.intent.action.MAIN', 'com.gastrounit.testtt/org.renpy.androi
d.PythonSDLActivity']' returned non-zero exit status -1
F:\rapt>
thanks!
G
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Can't install pygame_SDL2
What does an adb logcat look like? How about your game?
It might make more sense to talk about this on the pygame ML, rather than here.
It might make more sense to talk about this on the pygame ML, rather than here.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Can't install pygame_SDL2
Aha! That's a cool tool!
I Need to learn more about adb and logcat. (pretty new to working in Android..)
So..
I think the example game is crashing because it can't find the pygame logo image...
IOError: Could not open 'pygame-icon.png':
So I can dig further into that. Wonder how it handles current directory handling, etc. perhaps need to do some path management, or just figure out where it expects the file to be.
Ah, and my game is crashing because it can't find numpy when I import it.
As far as where to discuss.. Previously, I couldn't find a place that was actively discussing pygame_sdl2/Rapt...
If you have a better place, point me in that direction, and I'd be happy to move.
Thanks for your help!
I Need to learn more about adb and logcat. (pretty new to working in Android..)
So..
I think the example game is crashing because it can't find the pygame logo image...
IOError: Could not open 'pygame-icon.png':
So I can dig further into that. Wonder how it handles current directory handling, etc. perhaps need to do some path management, or just figure out where it expects the file to be.
Ah, and my game is crashing because it can't find numpy when I import it.
As far as where to discuss.. Previously, I couldn't find a place that was actively discussing pygame_sdl2/Rapt...
If you have a better place, point me in that direction, and I'd be happy to move.
Thanks for your help!
Code: Select all
E/dalvikvm(28589): >>>>> Normal User
E/dalvikvm(28589): >>>>> com.gastrounit.testtt [ userId:0 | appId:10276 ]
V/WindowOrientationListener( 782): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
V/WindowOrientationListener( 782): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
V/WindowOrientationListener( 782): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
V/WindowOrientationListener( 782): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
D/Launcher.HomeView(18165): onStop
D/AbsListView(18165): onVisibilityChanged() is called, visibility : 4
D/AbsListView(18165): unregisterIRListener() is called
D/AbsListView(18165): onVisibilityChanged() is called, visibility : 4
D/AbsListView(18165): unregisterIRListener() is called
D/AbsListView(18165): onVisibilityChanged() is called, visibility : 4
D/AbsListView(18165): unregisterIRListener() is called
D/SurfaceWidgetClient$ISurfaceWidgetStub(18430): [237392/2] Surface widget visibility changed visibility = false on instance = 1
D/SurfaceWidgetClient$ISurfaceWidgetStub(18414): [237392/2] Surface widget visibility changed visibility = false on instance = 1
V/WindowManager( 782): rotationForOrientationLw(orient=4, last=0); user=0 sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false
D/SurfaceWidgetView(18165): destroyHardwareResources():1135855456
D/SurfaceWidgetView(18165): destroyHardwareResources():1138125800
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/Launcher(18165): onTrimMemory. Level: 20
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/PhoneStatusBar( 1078): Status bar WINDOW_STATE_HIDING
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/EnterpriseDeviceManager( 782): ContainerId: 0
D/STATUSBAR-StatusBarManagerService( 782): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/SurfaceWidgetView(18165): destroyHardwareResources():1135855456
D/SurfaceWidgetView(18165): destroyHardwareResources():1138125800
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
W/ContextImpl( 782): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1491 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:5889
com.android.internal.policy.impl.PhoneWindowManager.access$200:188 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:736 android.os.Handler.dispatchMessage:102
V/SmartFaceService - 3rd party pause( 782): onReceive [android.intent.action.ACTIVITY_STATE/com.gastrounit.testtt/create]
D/SSRMv2:TSP:AirViewOnOff( 782): DeviceInfo:: 00000000000
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
I/SurfaceFlinger( 260): id=14566 Removed Mauncher (48/78)
I/SurfaceFlinger( 260): id=14566 Removed Mauncher (-2/78)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/SSRMv2:TSP:AirViewOnOff( 782): SettingsAirViewInfo:: 000000000
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libpng16.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libpng16.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libpng16.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libSDL2.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libSDL2.so 0x42b07628
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_image.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_image.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libSDL2_image.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_ttf.so 0x42b07628
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_ttf.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libSDL2_ttf.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_gfx.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libSDL2_gfx.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libSDL2_gfx.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libpython2.7.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libpython2.7.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libpython2.7.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libpymodules.so 0x42b07628
W/linker (28589): libpymodules.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libpymodules.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libpymodules.so 0x42b07628, skipping init
D/dalvikvm(28589): Trying to load lib /data/app-lib/com.gastrounit.testtt-2/libmain.so 0x42b07628
D/dalvikvm(28589): Added shared lib /data/app-lib/com.gastrounit.testtt-2/libmain.so 0x42b07628
D/dalvikvm(28589): No JNI_OnLoad found in /data/app-lib/com.gastrounit.testtt-2/libmain.so 0x42b07628, skipping init
I/PersonaManager(28589): getPersonaService() name persona_policy
V/SDL (28589): onCreate():null
I/PersonaManager(28589): getPersonaService() name persona_policy
V/SDL (28589): onResume()
D/StatusBarManagerService( 782): tr p:28589,o:f
D/StatusBarManagerService( 782): semi p:28589,o:f
I/SurfaceFlinger( 260): id=14570 createSurf (1x1),1 flag=4, QythonSDLAc
D/PhoneStatusBar( 1078): setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/PhoneStatusBar( 1078): setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
I/SpenGestureManager( 782): setFocusWindow21030
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/PointerIcon( 782): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 782): setMouseCustomIcon IconType is same.101
D/PointerIcon( 782): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 782): setHoveringSpenCustomIcon IconType is same.1
I/Adreno-EGL(28589): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: ()
I/Adreno-EGL(28589): OpenGL ES Shader Compiler Version: E031.24.00.08
I/Adreno-EGL(28589): Build Date: 02/20/14 Thu
I/Adreno-EGL(28589): Local Branch: AU200_patches_ms_memleak_libsc_profiler
I/Adreno-EGL(28589): Remote Branch:
I/Adreno-EGL(28589): Local Patches:
I/Adreno-EGL(28589): Reconstruct Branch:
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/OpenGLRenderer(28589): Enabling debug mode 0
I/SurfaceFlinger( 260): id=14571 createSurf (1080x1920),4 flag=404, TurfaceView
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
V/SDL (28589): surfaceCreated()
V/SDL (28589): surfaceChanged()
V/SDL (28589): pixel format RGB_565
V/SDL (28589): Window size:1080x1920
I/SensorManagerA(28589): getReportingMode :: sensor.mType = 1
E/Sensors ( 782): Acc old sensor_state 0, new sensor_state : 1 en : 1
D/SensorManager(28589): registerListener :: 0, MPU6500 Acceleration Sensor, 20000, 0,
I/SDL (28589): SDL_Android_Init()
I/SDL (28589): SDL_Android_Init() finished!
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
I/SDL/APP (28589): Added joystick Android Accelerometer with device_id -2147483648
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
V/SDL (28589): onWindowFocusChanged(): true
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
W/ContextImpl( 782): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1491 com.android.server.InputMethodManagerService$4.run:2827 java.lang.Thre
ad.run:841 <bottom of call stack> <bottom of call stack>
D/CustomFrequencyManagerService( 782): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1958400 uid : 1000 pid : 782 tag : ACTIVITY_RESUME_BOOSTER@6
W/ActivityManager( 782): mDVFSHelper.release()
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/CustomFrequencyManagerService( 782): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1958400 uid : 1000 pid : 782 pkgName : ACTIVITY_RESUME_BOOSTER@9
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
I/ServiceKeeper( 782): In getappinfo pid = 782 pkgName = android appinfo = null
I/ServiceKeeper( 782): In getseinfo pid = 782 uid = 1000 seinfo= system
V/python (28589): Starting preparePython.
V/python (28589): Finished preparePython.
I/python (28589): Initialize Python for Android
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
D/PhoneStatusBar( 1078): Status bar WINDOW_STATE_HIDDEN
I/python (28589): ['/data/data/com.gastrounit.testtt/files/lib/python2.7/site-packages', '/data/data/com.gastrounit.testtt/files/lib/site-python']
I/python (28589): 3...
I/python (28589): 2...
I/python (28589): 1...
I/python (28589): Android path ['/storage/emulated/0/Android/data/com.gastrounit.testtt/files', '/data/data/com.gastrounit.testtt/files/lib/python27.zip', '/data/data/com.gastrounit.testtt/files/lib/
python2.7', '/data/data/com.gastrounit.testtt/files/lib/python2.7/lib-dynload', '/data/data/com.gastrounit.testtt/files/lib/python2.7/site-packages']
I/python (28589): Android bootstrap done. __name__ is __main__
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
I/SurfaceFlinger( 260): id=14569 Removed uesttt (54/79)
I/SurfaceFlinger( 260): id=14569 Removed uesttt (-2/79)
D/KeyguardUpdateMonitor( 1078): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1078): handleKeyguardVisibilityChanged(1)
I/python (28589): Run user program, change dir and execute main.py
I/python (28589): main.py:3: UserWarning: Pygame has already been imported, import_as_pygame may not work.
I/python (28589): pygame_sdl2.import_as_pygame()
I/python (28589): Traceback (most recent call last):
I/python (28589): File "main.py", line 103, in <module>
I/python (28589): main()
I/python (28589): File "main.py", line 39, in main
I/python (28589): icon = pygame.image.load("pygame-icon.png")
I/python (28589): File "pygame_sdl2/image.pyx", line 69, in pygame_sdl2.image.load (gen/pygame_sdl2.image.c:1372)
I/python (28589): File "pygame_sdl2/rwobject.pyx", line 194, in pygame_sdl2.rwobject.to_rwops (gen/pygame_sdl2.rwobject.c:2590)
I/python (28589): IOError: Could not open 'pygame-icon.png': java.io.FileNotFoundException: pygame-icon.png
I/python (28589): Python for android ended.
I/AndroidRuntime(28589): VM exiting with result code 0, cleanup skipped.
I/ActivityManager( 782): Process com.gastrounit.testtt (pid 28589) (adj 0) has died.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Can't install pygame_SDL2
So, the file is missing on disk.
I'm curious, what project did you use. And how did you choose to lay it out. Could you post the apk here so I can pick it apart?
I'm curious, what project did you use. And how did you choose to lay it out. Could you post the apk here so I can pick it apart?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Can't install pygame_SDL2
I got the example from here, I think:
https://codeload.github.com/renpytom/ra ... zip/master
downloaded on 9/18
When I run the pygame-example python on my PC, it works fine. The icon file is there, and it draws it on the screen when you run the example, and click all over.
I do see a copy of the icon file on my android device when I install the apk.
But doesn't appear to see it when it runs. I was trying to track down what it thinks CWD is set to, right before it tries to load stuff.
Attached the APK I generated.
Command I used to create it:
python -O android.py --launch build F:\rapt\rapt-pygame-example-master release
not sure what you mean by how I chose to lay it out - I think I left things as they were, except for playing around in main.py to try some debug steps, like trying to write to text file and see if it pops up anywhere.
https://codeload.github.com/renpytom/ra ... zip/master
downloaded on 9/18
When I run the pygame-example python on my PC, it works fine. The icon file is there, and it draws it on the screen when you run the example, and click all over.
I do see a copy of the icon file on my android device when I install the apk.
But doesn't appear to see it when it runs. I was trying to track down what it thinks CWD is set to, right before it tries to load stuff.
Attached the APK I generated.
Command I used to create it:
python -O android.py --launch build F:\rapt\rapt-pygame-example-master release
not sure what you mean by how I chose to lay it out - I think I left things as they were, except for playing around in main.py to try some debug steps, like trying to write to text file and see if it pops up anywhere.
- Attachments
-
[The extension apk has been deactivated and can no longer be displayed.]
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Can't install pygame_SDL2
What application layout did you choose? It looks like you might have picked "A single directory, that will be placed on device external storage.". I'm not sure why that's not working, but "A single directory, that will be placed on device internal storage." will probably work better - and I'll check out the problem later, once we're sure this is the temporary fix.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Can't install pygame_SDL2
Looks like that was it.
I reran the configuration for internal, and now the demo is fully working on my device.
Next, to get started on my own app...
I eliminated numpy and now I think I've gotten past the exceptions to the meat of things.. I need to learn about all the android events, etc.
Thanks for the tips to help me get started, this should be fun!
I reran the configuration for internal, and now the demo is fully working on my device.
Next, to get started on my own app...
I eliminated numpy and now I think I've gotten past the exceptions to the meat of things.. I need to learn about all the android events, etc.
Thanks for the tips to help me get started, this should be fun!
Who is online
Users browsing this forum: No registered users