Skip to content

ImportError: cannot import name 'has_attribute' from 'watchdog.tricks'  #8

Description

@mansura-habiba

The following command is throwing error

leanpub

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/leanpub", line 5, in <module>
    from leanpub.__main__ import main
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/leanpub/__main__.py", line 4, in <module>
    from leanpub.watcher import MAKE_BOOK, MAKE_SAMPLE, watch
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/leanpub/watcher.py", line 4, in <module>
    from leanpub.shellcommandtrick import ShellCommandTrick
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/leanpub/shellcommandtrick.py", line 9, in <module>
    from watchdog.tricks import Trick, has_attribute
ImportError: cannot import name 'has_attribute' from 'watchdog.tricks' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/watchdog/tricks/__init__.py)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions