twitchTransFreeNext charmap error

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Zorixas
Newbie
Newbie
Posts: 2
Joined: Thu Sep 26, 2019 12:13 pm

twitchTransFreeNext charmap error

Post by Zorixas »

Greetings everyone,

I've been trying to use a program called twitchTransFreeNext, but it doesn't completely work well. It works fine for English characters, but once I use Japanese symbols, it gives an error.

twitchTransFreeNext (Version: 2.0.9)
Connect to the channel : xxxxxx
Translator Username : xxxxxx
USER:xxxxxx
おやすみなさい
ERROR:tornado.application:Exception in callback functools.partial(<function wrap
.<locals>.null_wrapper at 0x01C78390>, <pydle.features.ircv3.tags.TaggedMessage
object at 0x01C77390>)
Traceback (most recent call last):
File "site-packages\tornado\ioloop.py", line 605, in _run_callback
File "site-packages\tornado\stack_context.py", line 277, in null_wrapper
File "site-packages\python_twitch_irc\irc.py", line 281, in on_raw_privmsg
File "site-packages\python_twitch_irc\irc.py", line 163, in _on_handle_twitch
File "site-packages\python_twitch_irc\irc.py", line 233, in on_raw_twitch_privmsg
File "twitchTransFN.py", line 187, in on_message
print_log(log_file, in_text)
File "twitchTransFN.py", line 89, in print_log
fp.write(t + '\n')
File "c:\python\python36-32\lib\encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-6: character maps to <undefined>

Is there anything that can be done about this? Thank you in advance.
Zorixas
Newbie
Newbie
Posts: 2
Joined: Thu Sep 26, 2019 12:13 pm

Re: twitchTransFreeNext charmap error

Post by Zorixas »

My apologies for this post, but it turned out that I was using an unstable version of the program. It had functioned just fine using a stable version. Thank you all for your time.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: twitchTransFreeNext charmap error

Post by jkfloris »

As far as I understand, this program is a Python script.
According to the Readme you could run the program with:

Code: Select all

Non-Windows User
pip install -r requirements.txt
python twitchTransFN.py
Locked