Importing PIL error message
I was trying to take screenshots but keep getting "You have to install PIL to use takeSnapshot()"
After some further looking, it seems that "from PIL import Image" should just be "import Image" I made the change on line 528 of ..\com\dtmilano\android\adb\adbclient.py
After making that change, the code work perfectly and was able to take the screenshot
Bump
Please specify OS, platform, python version, pip list, etc.
Take into account that culebra should work unchanged on any platform.
On OSX:
$ python
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Image
>>> from PIL import Image
>>>
On Tue, Jan 13, 2015 at 11:04 PM, Ebirux [email protected] wrote:
Bump
— Reply to this email directly or view it on GitHub https://github.com/dtmilano/AndroidViewClient/issues/124#issuecomment-69866252 .
Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients
Windows 7 and python 2.7 I read into the error and according to the python docs on it. It should be like I said in the above. The way you currently have works for some OS but is an older way.
I would probably add a special case for Windows as nobody reported any error or problem on OSX or Linux.
On Wed, Jan 14, 2015 at 12:40 AM, Ebirux [email protected] wrote:
Windows 7 and python 2.7 I read into the error and according to the python docs on it. It should be like I said in the above. The way you currently have works for some OS but is an older way.
— Reply to this email directly or view it on GitHub https://github.com/dtmilano/AndroidViewClient/issues/124#issuecomment-69871734 .
Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients