Fails to install SDK and create keys (8.0.3 Linux)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
lsf22
Regular
Posts: 139
Joined: Wed Feb 23, 2022 9:43 pm
Contact:

Fails to install SDK and create keys (8.0.3 Linux)

#1 Post by lsf22 »

Renpy Version: 8.0.3.22090809

Shortly after clicking on "Install SDK & Create keys"

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 507, in <module>
  File "game/mobilebuild.rpy", line 214, in call
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['java', '-classpath', '/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/android.rpyc", line 505, in script
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/python.py", line 1061, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 507, in <module>
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 356, in install_sdk
    check_java(interface)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 55, in check_java
    if not run_slow(interface, plat.java, "-classpath", plat.path("buildlib"), "CheckJDK8", use_path=True):
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 37, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 214, in call
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/exports.py", line 3181, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 4258, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/screen.py", line 743, in event
    rv = self.child.event(ev, x, y, st)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 2418, in event
    return run(self.function, *self.args, **self.kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 329, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['java', '-classpath', '/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1.

Linux-5.4.0-125-generic-x86_64-with-glibc2.31 x86_64
Ren'Py 8.0.3.22090809
Ren'Py Launcher 8.0.3.22090809
Sat Sep 24 17:55:12 2022

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Fails to install SDK and create keys (8.0.3 Linux)

#2 Post by Zetsubou »

Is java 8 installed and is it the default JRE?
To check, open a terminal and run

Code: Select all

java -version
I had the same problem (I think?) after updating from Linux Mint 20 to 21.
It had both openjdk-8-jre and openjdk-11-jre installed.
My solution was to uninstall the latter, since I don't need java 11.
But you could also just change the default java version to use, or use an environment variable, instead of uninstalling anything.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
lsf22
Regular
Posts: 139
Joined: Wed Feb 23, 2022 9:43 pm
Contact:

Re: Fails to install SDK and create keys (8.0.3 Linux)

#3 Post by lsf22 »

Zetsubou wrote: Sun Sep 25, 2022 6:35 am Is java 8 installed and is it the default JRE?
To check, open a terminal and run

Code: Select all

java -version
I had the same problem (I think?) after updating from Linux Mint 20 to 21.
It had both openjdk-8-jre and openjdk-11-jre installed.
My solution was to uninstall the latter, since I don't need java 11.
But you could also just change the default java version to use, or use an environment variable, instead of uninstalling anything.
I see that I have the following.

openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

I could have sworn I selected openjdk, unless one of my Linux mint updates did something to it. I will see what happens after changing it.

update: I selected the follwing:
openjdk version "1.8.0_345"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (Temurin)(build 25.345-b01, mixed mode)

which resulted in the error below

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 507, in <module>
  File "game/mobilebuild.rpy", line 214, in call
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/Sdk/cmdline-tools/latest/bin/sdkmanager', '--update']' returned non-zero exit status 1.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/android.rpyc", line 505, in script
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/python.py", line 1061, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 507, in <module>
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 360, in install_sdk
    get_packages(interface)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 179, in get_packages
    if not run_slow(interface, plat.sdkmanager, "--update", yes=True):
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 37, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 214, in call
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/exports.py", line 3181, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 4258, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/screen.py", line 743, in event
    rv = self.child.event(ev, x, y, st)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 2418, in event
    return run(self.function, *self.args, **self.kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 329, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/Sdk/cmdline-tools/latest/bin/sdkmanager', '--update']' returned non-zero exit status 1.

Linux-5.4.0-125-generic-x86_64-with-glibc2.31 x86_64
Ren'Py 8.0.3.22090809
Ren'Py Launcher 8.0.3.22090809
Sun Sep 25 08:28:49 2022
I selected another which also resulted in an error:
openjdk version "1.8.0_342"
OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 507, in <module>
  File "game/mobilebuild.rpy", line 214, in call
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/Sdk/cmdline-tools/latest/bin/sdkmanager', '--update']' returned non-zero exit status 1.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/android.rpyc", line 505, in script
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/python.py", line 1061, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 507, in <module>
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 360, in install_sdk
    get_packages(interface)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 179, in get_packages
    if not run_slow(interface, plat.sdkmanager, "--update", yes=True):
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/buildlib/rapt/install_sdk.py", line 37, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 214, in call
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/exports.py", line 3181, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/core.py", line 4258, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/screen.py", line 743, in event
    rv = self.child.event(ev, x, y, st)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 2418, in event
    return run(self.function, *self.args, **self.kwargs)
  File "/home/linuxmc/Game Dev/renpy-8.0.1-sdk/renpy/display/behavior.py", line 329, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 238, in check_process
CalledProcessError: Command '['/home/linuxmc/Game Dev/renpy-8.0.1-sdk/rapt/Sdk/cmdline-tools/latest/bin/sdkmanager', '--update']' returned non-zero exit status 1.

Linux-5.4.0-126-generic-x86_64-with-glibc2.31 x86_64
Ren'Py 8.0.3.22090809
Ren'Py Launcher 8.0.3.22090809
Sun Sep 25 08:34:19 2022

User avatar
lsf22
Regular
Posts: 139
Joined: Wed Feb 23, 2022 9:43 pm
Contact:

Re: Fails to install SDK and create keys (8.0.3 Linux)

#4 Post by lsf22 »

Hold on, apparently the Renpy SDK folder needs to be in the Linux Mint home folder for it work right. After moving locations and restarting it, it took me to a download sequence.

Would this be considered a bug if the folder is outside of the users home folder and doesn't work correctly. I had my Renpy sdk folder in a folder called Game Dev, which is only one level away from the linux Mint user's home folder.

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Fails to install SDK and create keys (8.0.3 Linux)

#5 Post by Zetsubou »

lsf22 wrote: Sun Sep 25, 2022 11:42 am Would this be considered a bug if the folder is outside of the users home folder and doesn't work correctly. I had my Renpy sdk folder in a folder called Game Dev, which is only one level away from the linux Mint user's home folder.
I don't think that's the cause here. I have all of the different renpy versions I use stored in ~/.local/bin/renpy and haven't had that happen.
My guess would be that your local.properties or bundle.properties files point to an sdk folder which has since moved.
eg. If you installed rapt and set it up, then moved either the rapt folder or the renpy folder somewhere else.

The files rapt/project/local.properties and rapt/project/bundle.properties have a line of sdk.dir=xxx
Where xxx is an absolute path to the sdk directory. So if you move the sdk folder after setting up rapt, you need to modify that value accordingly.
...Or delete the rapt folder and install it again (after backing up your keystore files).
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
lsf22
Regular
Posts: 139
Joined: Wed Feb 23, 2022 9:43 pm
Contact:

Re: Fails to install SDK and create keys (8.0.3 Linux)

#6 Post by lsf22 »

Thanks for the info. I just need to see what I can do about APK size limits as now I'm running into the app on my phone giving me an invalid error.

Post Reply

Who is online

Users browsing this forum: Ocelot, Semrush [Bot]