Skip to content

Importing PIL error message #124

Description

@Ebirux

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

Activity

  1. Ebirux commented on Jan 14, 2015

    @Ebirux
    Author

    Bump

  2. dtmilano commented on Jan 14, 2015

    @dtmilano
    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 notifications@github.com 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

  3. Ebirux commented on Jan 14, 2015

    @Ebirux
    Author

    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.

  4. dtmilano commented on Jan 14, 2015

    @dtmilano
    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 notifications@github.com 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions