You, sir, are a genius!!
I was missing the xml folder and the pprint.py. If the pprint is optional and written by you, then the culprit must have been the xml folder which I think I didn't have in the pyAIML distribution I was using...
Search found 24 matches
- Mon Nov 16, 2015 8:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
- Sun Nov 15, 2015 2:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
To be more exact, if I make a simple hello.py script with only print "Hello world" and import it into renpy, I don't get any error and I see "Hello world" in the terminal when I run the game. When I add import aiml at the beginning of that script - instant utf8 error! Same script...
- Sun Nov 15, 2015 2:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
Same thing. However, one thing I noticed and hopefully might give a clue is that when I remove the "import aiml" line in AIMLbot.py and run the game, the error changes to I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 10, in s...
- Sun Nov 15, 2015 11:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
Same story. This is from the terminal: mint@mint ~ $ sudo su mint mint # renpy Full traceback: File "/usr/share/games/renpy/renpy/execution.py", line 288, in run node.execute() File "/usr/share/games/renpy/renpy/ast.py", line 718, in execute renpy.python.py_exec_bytecode(self.cod...
- Sun Nov 15, 2015 11:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
From the website.Karl_C wrote:Are you using a renpy version from Linux Mint installed by the aptitude package manager?
Or are you using the lastest version from renpy's website?
It didn't occur to me I could find Ren'py in the package manager. Good point, I'll try that too!
- Sun Nov 15, 2015 1:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
mint@mint ~ $ python -c "import sys; print(sys.stdout.encoding)" UTF-8 I've tried it today on a different linux machine and got the same error and I'm planning to test it on yet another windows computer tomorrow. This is really baffling. I'm sorry that I cannot help you, please try to sea...
- Fri Nov 13, 2015 8:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
mint@mint ~ $ locale charmap UTF-8 mint@mint ~ $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_A...
- Fri Nov 13, 2015 8:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
Hello Karl_C. I've tried your file and getting the same error. In fact, I'm getting the same error with any python script I've attempted to import so far - Ive tried various scripts that work on their own.
- Mon Nov 09, 2015 11:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
It's the AIMLBot.py example offered by Karl_C here http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=33398 It works for him, I don't know what I'm doing wrong :? import aiml import os.path import sys class AimlBot: brainFileName = "standard.brn" kernel = aiml.Kernel() botName = &quo...
- Mon Nov 09, 2015 11:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
But I saved and re-saved and re-re-saved in utf8 using Editra, jedit, gedit....I don't know what else to do!
- Mon Nov 09, 2015 7:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
- Replies: 19
- Views: 5800
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4
Long story short, in the project I am trying my script.rpy is supposed to open an external .py file in the game directory. That .py file is encoded in utf8 and doesn't seem to have any irregular characters. I've tried it in linux and windows7, and with different Ren'py sdk releases, and I am getting...
- Mon Nov 09, 2015 7:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Relative adresses in renpy
- Replies: 11
- Views: 3845
Re: Relative adresses in renpy
It doesn't open, I'm getting an encoding error. It is supposed to be UTF-8, right?
I don't want to hijack this thread further, I will post a separate thread for help.
Code: Select all
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4 in position 47219: invalid continuation byte
- Sun Nov 08, 2015 7:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Relative adresses in renpy
- Replies: 11
- Views: 3845
Re: Relative adresses in renpy
:shock: I can't believe my luck, I seriously thought I necroed the thread. Thank you so much! :D I have pyAIML and ALICE set running on my linux machine without a hitch, but I couldn't for the life of me make it run with ren'py. I'm not a programmer either (understatement), just want my own linux ch...
- Sat Nov 07, 2015 1:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Relative adresses in renpy
- Replies: 11
- Views: 3845
Re: Relative adresses in renpy
Sorry for late reply. I quick test shows that it seems to work from within RenPy, at least on my Linux machine (Eileens response in the screenshot below was generated by pyAIML and a freely available AIML set): http://s7.postimg.org/fzpav6sav/image.jpg http://s18.postimg.org/4pm787n05/image.jpg Kar...
- Fri Oct 30, 2015 7:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: Real date & time, weather and... beyond
- Replies: 6
- Views: 1859
Re: Real date & time, weather and... beyond
It worked!! :D Not with the datetime thingie, but the suggestion of printing using python code was golden, thanks Philat! $ from time import ctime $ t = ctime() $ renpy.say(None, t) I'm still open to suggestions about adding the weather (https://gist.github.com/jleclanche/2689784) and AIML in ren'py...