LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-01-2013, 04:38 PM   #1
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Rep: Reputation: Disabled
Python script ranwhen.py not working on Slackware 14.0 KDE 32 bit


Hi All,

Was wishing to try out ranwhen.py on Slackware 14.0 32 bit KDE, have been installing it and Python 3 too (SlackBuild) but the terminal gives back the following output:
Quote:
Traceback (most recent call last):
File "./ranwhen.py", line 267, in <module>
style_text(" days", fgcolor = time_text_color) + ")")
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 59: ordinal not in range(256)
Please, someone knows how to solve the issue? Thank you.

https://github.com/p-e-w/ranwhen
 
Old 12-02-2013, 09:08 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
here it runs fine with
Code:
LANG=en_US.utf8 python3 ranwhen.py
 
1 members found this post helpful.
Old 12-02-2013, 09:48 AM   #3
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
@Ponce: thank you very much for your kind help, I appreciate.
The command you suggested to me works but with small graphic issue as you can check following the links:
http://imageshack.us/a/img201/9829/elvu.png
http://imageshack.us/a/img809/387/v6oo.png
Best Regards

Edit
Same result with:
$ LANG=it_IT.utf8 python3 ranwhen.py

Last edited by Bourbon; 12-03-2013 at 03:48 PM.
 
Old 12-18-2013, 05:11 AM   #4
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
The graphical issue is solved too selecting "UTF8" to the terminal profile
 
  


Reply



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
[SOLVED] Newt not working in Slackware 14 64 bit, works on 32 bit TobiSGD Slackware 8 10-05-2012 09:43 AM
How to close open ports using a python script or a shell script in python ?? apanimesh061 Programming 3 11-20-2011 12:31 AM
[SOLVED] No 3D in KDE with Catalyst 10.6 (Slackware 13.1 32-bit) spudgunner Slackware 5 08-03-2010 10:15 AM
[SOLVED] Slackware 13 64 bit KDE 4.3.2 sound issue smoooth103 Slackware 5 11-08-2009 10:48 AM
A quick review of Slackware 13 (32 bit) and KDE 4.3.1 on an old laptop... Lufbery Slackware 10 10-14-2009 09:59 AM

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

All times are GMT -5. The time now is 08:16 AM.

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