subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 685 forks source link

[BUG] `Pillow` missing as a requirement #1394

Closed goekce closed 1 year ago

goekce commented 1 year ago

Describe the bug Pillow is missing in the requirements.

To Reproduce pip install instagrapi on a machine without Pillow and run the first example.

Traceback

...
    from instagrapi import Client
  File "/home/u/apps/insta/venv/lib/python3.11/site-packages/instagrapi/__init__.py", line 12, in <module>
    from instagrapi.mixins.clip import DownloadClipMixin, UploadClipMixin
  File "/home/u/apps/insta/venv/lib/python3.11/site-packages/instagrapi/mixins/clip.py", line 18, in <module>
    raise Exception("You don't have PIL installed. Please install PIL or Pillow>=8.1.1")
Exception: You don't have PIL installed. Please install PIL or Pillow>=8.1.1

Expected behavior No error

Desktop (please complete the following information):


Feel free to close this issue if Pillow is an optional requirement.

adw0rd commented 1 year ago

Not all clients of this library need Pillow (most of the functions work without it), and some cannot build it on their environment