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

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
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

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

#1 Post 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
stay hungry,stay foolish.

User avatar
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: from plyer import camera causes “can't concat str to bytes” error

#2 Post by PyTom »

I believe this is fixed in a newer version of Ren'Py.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users