1
0
hugo/old/2019-06-04-mcomix.md

23 lines
905 B
Markdown
Raw Permalink Normal View History

2024-04-23 13:21:26 +00:00
+++
date = "2019-06-04"
tags = ["arch"]
title = "mcomixが動かないので対処"
slug = "mcomix"
+++
```sh
$ mcomix
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/run.py", line 206, in run
assert PIL.Image.VERSION >= '1.1.5'
AttributeError: 'module' object has no attribute 'VERSION'
$ sudo sed -i "s:assert PIL.Image.VERSION:assert PIL.Image.__version__:g" /usr/lib/python2.7/site-packages/mcomix/run.py
```
`python2-pillow`を最新にしていると、`PIL.Image.VERSION`が廃止さてるのでエラーが出る模様。`python2-pillow`パッケージをダウングレードするか、コードを書き換えるかする必要があります。
https://forum.manjaro.org/t/mcomix-broke-after-latest-update-on-testing-branch/82004/10