wpa-2 / telegram.py

A simple interactive telegram plugin for pwnagotchi
GNU General Public License v3.0
41 stars 5 forks source link

[Error] ImageGrab on Linux #10

Closed simonecris closed 9 months ago

simonecris commented 9 months ago

Expected Behavior

Running the plugin.

Actual Behavior

The plugin doesn't get loaded. After a --debug inspection, it turns out that the ImageGrab module of PIL now is OSX and Windows only:

from PIL import ImageGrab

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/PIL/ImageGrab.py", line 29, in <module>
    raise ImportError("ImageGrab is macOS and Windows only")

A fast and reliable workaround that worked for me is using pyscreenshot.

Specifications

wpa-2 commented 9 months ago

Just tested this on the latest image form jay and it works no issues, what OS version are you using?

wpa-2 commented 9 months ago

Screenshot 2024-02-03 203815

wpa-2 commented 9 months ago

Expected Behavior

Running the plugin.

Actual Behavior

The plugin doesn't get loaded. After a --debug inspection, it turns out that the ImageGrab module of PIL now is OSX and Windows only:

from PIL import ImageGrab

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/PIL/ImageGrab.py", line 29, in <module>
    raise ImportError("ImageGrab is macOS and Windows only")

A fast and reliable workaround that worked for me is using pyscreenshot.

Specifications

  • PIL Version: 6.2.0

Feel free to make a PR if you have it working.

simonecris commented 9 months ago

Just tested this on the latest image form jay and it works no issues, what OS version are you using?

I had problems with latest jay's (2.6.4) so I'm currently on your latest release, 1.5.5FIX.

wpa-2 commented 9 months ago

Fixed with #11