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.
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
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
.
Needless to say, read the README
carefully.
In my case, I didn't set prefix
, so I installed it below.
sudo python2 setup.py install
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'
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