yurijmikhalevich / rclip

AI-Powered Command-Line Photo Search Tool
MIT License
693 stars 52 forks source link

Import error on fresh homebrew install #98

Closed sweetkane closed 2 months ago

sweetkane commented 3 months ago

Homebrew 4.2.12

$ brew install yurijmikhalevich/tap/rclip
$ rclip "cat"
---
Traceback (most recent call last):
  File "/opt/homebrew/bin/rclip", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/Cellar/rclip/1.7.25/libexec/lib/python3.11/site-packages/rclip/main.py", line 205, in main
    arg_parser = helpers.init_arg_parser()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/rclip/1.7.25/libexec/lib/python3.11/site-packages/rclip/utils/helpers.py", line 144, in init_arg_parser
    if is_mps_available():
       ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/rclip/1.7.25/libexec/lib/python3.11/site-packages/rclip/utils/helpers.py", line 153, in is_mps_available
    import torch.backends.mps
ModuleNotFoundError: No module named 'torch'
sandronm commented 2 months ago

Same here :/

(Homebrew 4.2.17, MacOS Sonoma 14.4.1 on M1 Max)

yurijmikhalevich commented 2 months ago

@sweetkane, thank you for the report. Fixing.

yurijmikhalevich commented 2 months ago

@sweetkane, @sandronm, @xvvvyz, @came, @Alkapims, the issue should be fixed after you upgrade rclip installed with brew to the latest version: brew update && brew upgrade

Let me know if you still have it.

sandronm commented 2 months ago

Confirmed, it works. Thank you

Le mar. 9 avr. 2024 à 13:04, Yurij Mikhalevich @.***> a écrit :

@sweetkane https://github.com/sweetkane, @sandronm https://github.com/sandronm, @xvvvyz https://github.com/xvvvyz, @came https://github.com/came, @Alkapims https://github.com/Alkapims, the issue should be fixed after you upgrade rclip installed with brew to the latest version: brew update && brew upgrade

Let me know if you still have it.

— Reply to this email directly, view it on GitHub https://github.com/yurijmikhalevich/rclip/issues/98#issuecomment-2044688635, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEG537MIC7MHYP2ERLT7TUTY4PDMFAVCNFSM6AAAAABEURMX2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGY4DQNRTGU . You are receiving this because you were mentioned.Message ID: @.***>