When importing the phind module from pytgpt, a ModuleNotFoundError is raised:
>>> from pytgpt import phind
Traceback (most recent call last):
...
import click
ModuleNotFoundError: No module named 'click'
This happens because the click package is declared as an optional dependency in setup.py using extras_require. However, the pytgpt.utils module directly imports and uses click, and utils is imported by all provider modules, such as phind, grok, and openai.
This means that even when the library is used programmatically (not via CLI), the absence of click causes the import to fail, since click is essential for the library to function correctly.
When importing the
phindmodule frompytgpt, aModuleNotFoundErroris raised:This happens because the
clickpackage is declared as an optional dependency in setup.py using extras_require. However, thepytgpt.utilsmodule directly imports and usesclick, and utils is imported by all provider modules, such as phind, grok, and openai.This means that even when the library is used programmatically (not via CLI), the absence of
clickcauses the import to fail, since click is essential for the library to function correctly.