One way to install myougiden in Slackware 14 (14.2)

Installing myougiden (a command-line interface to Edict, the Japanese-English dictionary that has an online interface at wwwjdic) in Slackware is possible. This is one way (tested in Slackware 14.0 and 14.1):

  1. Get python3.4 from Slackbuilds and install that
  2. cd to your git folder (or make one)
  3. git clone
  4. su
  5. pip3.4 install romkan
  6. pip3.4 install termcolor
  7. cd [your git folder]/myougiden
  8. python3.4 install
  9. updatedb-myougiden -f
  10. exit and start using myougiden

(Your version of pip may be different; do ls -l /usr/bin/pip* to check.)

Lots of options, see myougiden -h. BTW I put this in ~/.bashrc:

alias m='/usr/bin/myougiden'

Typing m instead of myougiden is somewhat more convenient (so far I haven’t found a nice way to keep it open/make it interactive).

Lots of things to like, for example:

Update (2016年 10月 24日 月曜日 09:56:14 CEST)

It is possible to update the dictionary files with updatedb-myougiden -f, which is cool. It is also possible to update myougiden itself, with sudo pip install --upgrade myougiden. I did that and got a broken version (SyntaxError: Non-ASCII character '\xc5' in file /usr/bin/myougiden on line 28, but no encoding declared;) I edited a few lines of the file myougiden, but gut stuck not knowing any python). So how to downgrade? My solution:

pip uninstall myougiden
git clone git://
cd myougiden
git log
[choose an earlier commit, I chose da1ffa2956ee0c8efc64567bd248b6ff352be600]
git checkout da1ffa2956ee0c8efc64567bd248b6ff352be600
sudo python3 install
sudo updatedb-myougiden -f

Update: Sun Aug 20 12:04:35 CEST 2017

I installed the latest version of myougiden at this date without problems on my laptop, under Slackware 14.2 (following the instructions at the top, only with pip3.6).

Update: Fri Sep 3 09:16:22 CEST 2021

I installed the latest version of myougiden at this date in Slackware Current (14.2+). I had to adjust the myougiden script, because I got the error:

Traceback (most recent call last):
  File "/usr/bin/myougiden", line 137, in <module>
    args.background = color.guess_background() or 'dark'
  File "/usr/lib64/python3.9/site-packages/myougiden/", line 125, in guess_background
    bg = int(v.split(';')[-1])
ValueError: invalid literal for int() with base 10: 'default'

Since I still haven’t learned Python, my fix was necessarily crude. Given that I run myougiden in a terminal with a dark background I simply changed line 137 to:

args.background = 'dark'