Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mansura-habiba opened this issue Nov 10, 2024 · 0 comments

Comments

@mansura-habiba
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant