"'ascii' codec can't decode byte" playing a video

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
Bruni Multimedia
Regular
Posts: 114
Joined: Mon May 15, 2017 12:23 pm
Projects: Yomi Alliance
Organization: Bruni Multimedia
itch: brunimultimedia
Contact:

"'ascii' codec can't decode byte" playing a video

#1 Post by Bruni Multimedia »

An user is getting this error when he arrives at a point where a video is normally played.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00console.rpy", line 765, in script
    python in _console:
  File "renpy/common/00console.rpy", line 766, in <module>
    console.interact()
  File "renpy/common/00console.rpy", line 299, in interact
    self.show_stdio()
  File "renpy/common/00console.rpy", line 357, in show_stdio
    old_entry.result += "\n" + l
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 6: ordinal not in range(128)

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

Full traceback:
  File "renpy/common/00console.rpy", line 765, in script
    python in _console:
  File "/home/oem/.steam/steam/steamapps/common/General Practitioner/renpy/ast.py", line 881, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/oem/.steam/steam/steamapps/common/General Practitioner/renpy/python.py", line 1913, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00console.rpy", line 766, in <module>
    console.interact()
  File "renpy/common/00console.rpy", line 299, in interact
    self.show_stdio()
  File "renpy/common/00console.rpy", line 357, in show_stdio
    old_entry.result += "\n" + l
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 6: ordinal not in range(128)

Linux-4.15.0-43-generic-x86_64-with-debian-buster-sid
Ren'Py 7.1.3.1092
General Practitioner 0.0.20_015
Thu Jan 17 16:18:02 2019
As far as I know he is the only one which gets the error (it has never been reported earlier) and he's running it on Linux, if that changes something.

Any idea of what this could be? I never had any similar error before.

User avatar
Karl_C
Veteran
Posts: 232
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: "'ascii' codec can't decode byte" playing a video

#2 Post by Karl_C »

What is the name of the video (are there any ascii characters >128 it it) and how do you call it?

User avatar
Bruni Multimedia
Regular
Posts: 114
Joined: Mon May 15, 2017 12:23 pm
Projects: Yomi Alliance
Organization: Bruni Multimedia
itch: brunimultimedia
Contact:

Re: "'ascii' codec can't decode byte" playing a video

#3 Post by Bruni Multimedia »

The name is rita_home_sex_1, I call it with

Code: Select all

show rita_home_sex_1

    call sex_phrase from _call_sex_phrase
    call rita_sex_talk from _call_rita_sex_talk
    call rita_sex_talk from _call_rita_sex_talk_1
    call sex_phrase from _call_sex_phrase_1
    call rita_sex_talk from _call_rita_sex_talk_2
    call sex_phrase from _call_sex_phrase_2

    hide rita_home_sex_1


User avatar
Bruni Multimedia
Regular
Posts: 114
Joined: Mon May 15, 2017 12:23 pm
Projects: Yomi Alliance
Organization: Bruni Multimedia
itch: brunimultimedia
Contact:

Re: "'ascii' codec can't decode byte" playing a video

#5 Post by Bruni Multimedia »

I asked the player submitting the report, all characters in his directory are english, so that link can't help me. Any more ideas? This is a very strange bug...

Post Reply

Who is online

Users browsing this forum: No registered users