Skip to content

ModuleNotFoundError: No module named 'pyperclip' #46

Description

@heyodai

@rahulmysore23 got the error ModuleNotFoundError: No module named 'pyperclip' when trying to run magic-commit via cli.

However, in setup.py we have this line: install_requires=["openai", "jinja2", "dagwood", "pyperclip"],

Why isn't that installing requirements as expected?

Full bash output:

 magic-commit
Traceback (most recent call last):
  File "/home/rmysore/.local/bin/magic-commit", line 33, in <module>
    sys.exit(load_entry_point('magic-commit', 'console_scripts', 'magic-commit')())
  File "/home/rmysore/.local/bin/magic-commit", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/opt/conda/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/rmysore/projects/magic-commit/magic_commit/__main__.py", line 5, in <module>
    import pyperclip
ModuleNotFoundError: No module named 'pyperclip'

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