LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2019, 10:27 PM   #1
poetgrant
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 90

Rep: Reputation: 22
Toot for Mastodon issues


This is possibly just a Python issue. If so, please tell me to stop bothering you guys. However, I did not have this issue with Debian, so I was thinking it might be a config issue or something.

I installed toot with pip and when I tried to log in through the console, I got this:

Code:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2713' in position 5: ordinal not in range(256)
Does anyone know what this means? I am not really sure. Obviously, it is an encoding issue, but I don't know if it is my fault or perhaps some sort of locale setting??? I am lost.

Again, if this is an issue that belongs in a different thread, please tell me.
 
Old 11-18-2019, 09:43 AM   #2
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Rep: Reputation: 16
Hello poetgrant, I will just give it a try, have you checked the file /etc/profile.d/lang.sh?

If I remember correctly the default entry there is "export LANG=en_US". You can check if you have the UTF8 US locale with "locale -av | grep US" and code "export LANG=en_US.UTF8" if it exists in the /etc/profile.d/lang.sh. Then logoff/logon and see what you get.

As i understand from the message, latin-1 does not support the unicode character \u2713 (check mark).

I am not sure though if this has to be defined also (or solely) somewhere specific on python configuration files or just coding it to lang.sh is enough. I have coded the el_GR.utf8 there (lang.sh) and all menus turned to greek. Hope it will not bring problems to your system

Regards, Apostolos.

Last edited by apmount; 11-20-2019 at 04:20 AM.
 
Old 11-18-2019, 11:42 AM   #3
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Rep: Reputation: 16
Hi again, my mistake. The default is "export LANG=en_US.UTF8" on 14.2 current I tried to recreate the problem without success. I installed with pip3 the toot v0.24.0 and when I enter toot i get the following:

root@apost-slack:~# toot
toot - a Mastodon CLI client
v0.24.0

Authentication:
toot login Log into a mastodon instance using your browser (recommended)
toot login_cli Log in from the console, does NOT support two factor authentication
toot activate Switch between logged in accounts.
toot logout Log out, delete stored access keys
toot auth Show logged in accounts and instances

TUI:
toot tui Launches the toot terminal user interface
toot curses An experimental timeline app (DEPRECATED, use 'toot tui' instead)

Read:
toot whoami Display logged in user details
toot whois Display account details
toot notifications Notifications for logged in user
toot instance Display instance details
toot search Search for users or hashtags
toot thread Show toot thread items
toot timeline Show recent items in a timeline (home by default)

Post:
toot post Post a status text to your timeline
toot upload Upload an image or video file

Status:
toot delete Delete a status
toot favourite Favourite a status
toot unfavourite Unfavourite a status
toot reblog Reblog a status
toot unreblog Unreblog a status
toot reblogged_by Show accounts that reblogged the status
toot pin Pin a status
toot unpin Unpin a status

Accounts:
toot follow Follow an account
toot unfollow Unfollow an account
toot mute Mute an account
toot unmute Unmute an account
toot block Block an account
toot unblock Unblock an account


root@apost-slack:~# toot login
Choose an instance [mastodon.social]:

So probably it is not the locale, unless there is a change there.


UPDATE: No matter what I do I can not recreate the problem
I have even started an account on mastodon and logged on from toot console with success.

Last edited by apmount; 11-18-2019 at 12:06 PM.
 
Old 11-18-2019, 01:21 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I'm sorry to have to make an off-topic reply, but back in the day, there was a wrestler who went by the name Tugboat. He dressed like a tugboat captain. His war cry was to mime pulling a tugboat horn and to make a sound with his mouth that was supposed to sound like a tugboat horn. And "Toot" just makes me think of him.

Last edited by dugan; 11-18-2019 at 01:27 PM.
 
  


Reply

Tags
error message, python, unicode



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mastodon: The Open Source Alternative To Twitter LXer Syndicated Linux News 0 09-11-2017 06:21 PM
LXer: Is Mastodon the new social media star, or imploding black hole? LXer Syndicated Linux News 2 04-18-2017 08:55 PM
LXer: Mastodon—The free software, decentralized Twitter competitor LXer Syndicated Linux News 0 04-10-2017 11:28 PM
LXer: A beginners guide to microblogging on Mastodon LXer Syndicated Linux News 0 04-07-2017 06:03 AM
mandriva le 2005 won'b toot anymore Enoon Linux - Newbie 1 09-18-2005 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration