Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing PIL error message #124

Open
Ebirux opened this issue Dec 30, 2014 · 4 comments
Open

Importing PIL error message #124

Ebirux opened this issue Dec 30, 2014 · 4 comments

Comments

@Ebirux
Copy link

Ebirux commented Dec 30, 2014

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

@Ebirux
Copy link
Author

Ebirux commented Jan 14, 2015

Bump

@dtmilano
Copy link
Owner

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
#124 (comment)
.

Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

@Ebirux
Copy link
Author

Ebirux commented Jan 14, 2015

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.

@dtmilano
Copy link
Owner

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
#124 (comment)
.

Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants