Android Build: "TypeError: a bytes-like object is required, not 'str'"

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
phibbean
Newbie
Posts: 4
Joined: Sat Jan 08, 2022 6:54 pm
Contact:

Android Build: "TypeError: a bytes-like object is required, not 'str'"

#1 Post by phibbean »

Just updated to Renpy 8. I've always had trouble getting the Android build to work on previous versions, but any clue what might be causing this error? Java appears to be installed and working properly. This comes up when trying to install the SDK.

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 204, in call
TypeError: a bytes-like object is required, not 'str'

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

Full traceback:
  File "launcher/game/android.rpyc", line 505, in script
  File "C:\renpy-8.0.0-sdk\renpy\ast.py", line 1111, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\renpy-8.0.0-sdk\renpy\python.py", line 1049, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 507, in <module>
  File "C:\renpy-8.0.0-sdk\rapt\buildlib\rapt\install_sdk.py", line 360, in install_sdk
    get_packages(interface)
  File "C:\renpy-8.0.0-sdk\rapt\buildlib\rapt\install_sdk.py", line 179, in get_packages
    if not run_slow(interface, plat.sdkmanager, "--update", yes=True):
  File "C:\renpy-8.0.0-sdk\rapt\buildlib\rapt\install_sdk.py", line 37, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 204, in call
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 163, in print_exc
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 105, in print_exception
TypeError: a bytes-like object is required, not 'str'

Windows-10-10.0.19041 AMD64
Ren'Py 8.0.0.22062402
Ren'Py Launcher 8.0.0.22062402

Post Reply

Who is online

Users browsing this forum: No registered users