[PYTHON] Downgrade Mcomix on Arch Linux

Downgrade Mcomix on Arch Linux

Recently Mcomix has been updated to 1.3.0-dev on Arch Linux. Instead of being a little more fashionable than the conventional gtk2, it has become dramatically more difficult to use.

What is inconvenient

--The previously opened file opens even if you specify the file from the command line --Delete disappeared from shortcut

You can't use this kind of garbage. However, if YAC Reader or zathura can replace it, YACReader was slow to extract files, zathura couldn't reflect the settings well, and I didn't know how to display two pages.

So I decided to manually install the old mcomix 1.2.1.

However, there were some points that seemed to fit, so I thought it might help someone, so I'll leave it here.

Source preparation

Mcomix can be downloaded from SourceForge.

(Mcomix)[https://sourceforge.net/projects/mcomix/]

Then, the file mcomix-1.2.1.tar.bz2 will be downloaded, so decompress it with tar.

tar zf mcomixx-1.2.1.tar.bz2

Dependency preparation

mcomix-1.2.1 uses an outdated language called python2.

As far as I noticed, I need pygtk. (Maybe you also need gtk2)

sudo powerpill -S python2 python2-pillow gtk2
yay -S pygtk

Also, don't forget to use python2-pillow or pip2 install pillow because you are using PIL.

Peruse the README

Needless to say, read the README carefully.

Installation

In my case, I didn't set prefix, so I installed it below.

sudo python2 setup.py install

If it does not start

In my case, it has been the case for a long time, but I get the following error.

‘Traceback (most recent call last):
  File "/usr/bin/mcomix", line 11, in <module>
    load_entry_point('mcomix==1.2.1', 'console_scripts', 'mcomix')()
  File "/usr/lib/python2.7/site-packages/mcomix-1.2.1-py2.7.egg/mcomix/run.py", line 206, in run
    assert PIL.Image.VERSION >= '1.1.5'
AttributeError: 'module' object has no attribute 'VERSION'

As you can see by reading, it seems that PIL.Image.VERSION does not exist.

Normally, if you want to see the version with python, do as follows, so VERSION ???

from PIL import Image
Image.__version__

As written in the error "/usr/lib/python2.7/site-packages/mcomix-1.2.1-py2.7.egg/mcomix/run.py", line 206 Go to see.

sudo vim /usr/lib/python2.7/site-packages/mcomix-1.2.1-py2.7.egg/mcomix/run.py

You can rewrite it to check the version properly, but it's troublesome, so comment it out!

    try:
        import PIL.Image
		# assert PIL.Image.VERSION >= '1.1.5'

If the setting screen does not open

When I changed the settings in mcomix-1.3.0, the settings could not be opened because the settings file did not correspond to 1.2.1.

Most of this can be done by initializing the configuration file. In the case of mcomix, if you delete the setting file, the default setting file will be copied and pasted automatically. So unless resetting is too troublesome, it's a good idea to gently delete the config file once. (If you are interested, make a backup with cp or mv)

Most modern Linux is below.

$XDG_CONFIG_HOME/mcomix

I think $ XDG_CONFIG_HOME is set to the alternative $ HOME / .config.

$HOME/.config/mcomix

I will delete all of this.

rm -rf $XDG_CONFIG_HOME/mcomix

And if you restart mcomix, the initial settings will be copied and you will be able to set them.

Recommended Posts

Downgrade Mcomix on Arch Linux
jblas on Arch Linux
Setting up OpenSSH on Arch Linux
Install Arch Linux on DeskMini A300
Rip Music CDs on Arch Linux
Build an NFS server on Arch Linux
Basic usage of Btrfs on Arch Linux
Build a Samba server on Arch Linux
Until you install Arch Linux on VMware
Arch Linux Recommendation
Cross-compile windows version from nim on arch | linux
Deliver OBS footage to Zoom on Arch Linux
Build an Arch Linux environment on Raspberry Pi
Linux (WSL) on Windows
NAT router on Linux
Develop .NET on Linux
Wake on lan on Linux
Monitor traffic on Linux
Update vscode on linux
Try NeosVR on Linux
Check capacity on Linux
Arch Linux installation notes
LiveUSB creation on Linux
Linux operation on Win10
How to use C216 Audio Controller on Arch Linux
Install Docker on Arch Linux and run it remotely
NTP configuration memo on Linux
Install Linux on your Chromebox
Monitor disk usage on Linux
Use Github Desktop on Linux
Install the JDK on Linux
Elixir = Comfortable on Linux Mint
Recording and playback on Linux
Check TTL on Linux router
Read core voltage on Linux
Put jenv on Amazon Linux
Easy df command on Linux
Linux on Windows -1-: debian introduction
Install tomcat 5.5 on Amazon Linux.
Introducing Elixir on Linux Mint
Game distribution to YouTube Live on Arch Linux (Nintendo Switch)
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Paste the link on linux
Install strongSwan 5.9.1 on Amazon Linux 2
Linux environment construction (on WSL environment)
Run FreeBSD on Linux + qemu
Use Linux on Windows 10 (WSL2)
Use host.docker.internal on linux (docker-compose required)
Install Python Pillow on Amazon Linux
Easy copy to clipboard on Linux
Full-human self-made Arch Linux memorandum # 1 installation
Install oracle java8 on amazon linux2
Try installing OpenAM on Amazon Linux
WSL2 ~ Linux on Windows ~ (Part 1: Introduction)
Install CUDA on Linux Mint Mate 20
Completion of docker command on Linux
Run a Linux server on GCP
How to install VMware-Tools on Linux
View disk usage on personal Linux
Install pyenv on EC2 (Amazon Linux)