ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import name '__version__'

helenrensiyu opened this issue · comments

I just installed pyscreenshot but while I tried to run it - there seems to be some problem with importing 'version' from Pillow. Anyone has experienced this before? Any advice/suggestion will be appreciated! Thank you :)

Python 3.5.2 (default, Oct 8 2019, 13:06:37)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

import pyscreenshot
Traceback (most recent call last):
File "", line 1, in
File "/home/helen/.local/lib/python3.5/site-packages/pyscreenshot/init.py", line 4, in
from pyscreenshot.childproc import childprocess_backend_version, childprocess_grab
File "/home/helen/.local/lib/python3.5/site-packages/pyscreenshot/childproc.py", line 5, in
from pyscreenshot.loader import FailedBackendError
File "/home/helen/.local/lib/python3.5/site-packages/pyscreenshot/loader.py", line 4, in
from pyscreenshot import plugins
File "/home/helen/.local/lib/python3.5/site-packages/pyscreenshot/plugins/init.py", line 3, in
from pyscreenshot.plugins import (
File "/home/helen/.local/lib/python3.5/site-packages/pyscreenshot/plugins/pil.py", line 1, in
from PIL import version
ImportError: cannot import name 'version'

commented

How did you install it?
There is no such code line in pil.py:

from PIL import version

https://github.com/ponty/pyscreenshot/blob/1.0/pyscreenshot/plugins/pil.py