Watchdog: arg introuvable

Créé le 31 janv. 2020  ·  3Commentaires  ·  Source: gorakhargosh/watchdog

Dans la dernière version de watchdog (0.10.0), nous devons actuellement installer explicitement argh pour que nos processus démarrent. Sans argh explicitement installé, nous voyons l'exception suivante :

Traceback (most recent call last):
  File "/env/bin/watchmedo", line 6, in <module>
    from watchdog.watchmedo import main
  File "/env/lib/python3.7/site-packages/watchdog/watchmedo.py", line 39, in <module>
    from argh import arg, aliases, ArghParser, expects_obj
ModuleNotFoundError: No module named 'argh'
not a bug watchmedo

Tous les 3 commentaires

Watchmedo est maintenant un extra. Pour l'installer et ses dépendances, vous devez utiliser :

python -m pip install watchdog[watchmedo]

Et puis argh sera automatiquement installé.

Ça sonne bien, merci !

argh n'est pas installé automatiquement pour la version actuelle !

https://stackoverflow.com/questions/41268863/difference-between-extras-require-and-install-requires-in-setup-py

mais unittest en a-t-il besoin.

Cette page vous a été utile?
0 / 5 - 0 notes