Skip to content

click should be a required dependency, not optional? #64

Description

@andreztz

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.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions