Page 1 of 1

from plyer import camera causes “can't concat str to bytes” error

Posted: Sun Mar 31, 2024 10:41 pm
by Li yuanlin
I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
TypeError: can't concat str to bytes

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

Full traceback:
File "E:\renpy-8.0.0-sdk\renpy\bootstrap.py", line 275, in bootstrap
renpy.main.main()
File "E:\renpy-8.0.0-sdk\renpy\main.py", line 620, in main
renpy.dump.dump(False)
File "E:\renpy-8.0.0-sdk\renpy\dump.py", line 201, in dump
if inspect.isfunction(o):
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/inspect.py", line 170, in isfunction
File "python-packages/plyer/utils.py", line 114, in __getattribute__
File "python-packages/plyer/utils.py", line 100, in _ensure_obj
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 163, in print_exc
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 103, in print_exception
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 517, in __init__
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 366, in extract
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/traceback.py", line 288, in line
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/linecache.py", line 30, in getline
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/linecache.py", line 46, in getlines
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/linecache.py", line 112, in updatecache
File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/linecache.py", line 112, in <listcomp>
TypeError: can't concat str to bytes

Re: from plyer import camera causes “can't concat str to bytes” error

Posted: Mon Apr 01, 2024 1:05 am
by PyTom
I believe this is fixed in a newer version of Ren'Py.