#76 ImageGrab does not build

open
nobody
None
5
2005-09-07
2005-09-07
Anonymous
No

following snippet runs correctly from command line.

import os
import sys
import ImageGrab
im = ImageGrab.grab()
im.save("d:\\fred.gif")

when I try to build using py2exe

*** copy extensions ***
copying C:\Python24\lib\site-packages\py2exe\run_w.exe -
> C:\grabit1\dist\grabit1.exe
The following modules appear to be missing
['_grabscreen']

I'm new here and am not smart enough to
resolve this.

?

Discussion

  • Logged In: NO

    Yes, I also came across this, and it's truly a PIA. I've
    re-coded the grab function in python as a work-around (very
    tedious).