gabfl / vault

Python password manager
MIT License
184 stars 50 forks source link

Implement Pyperclip fallback #67

Closed gabfl closed 2 years ago

gabfl commented 2 years ago
Traceback (most recent call last):
  File "/usr/local/bin/vault", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/vault/vault.py", line 160, in main
    initialize(vault_location_override=args.vault_location,
  File "/usr/local/lib/python3.8/dist-packages/vault/vault.py", line 132, in initialize
    unlock()
  File "/usr/local/lib/python3.8/dist-packages/vault/views/menu.py", line 58, in unlock
    menu()
  File "/usr/local/lib/python3.8/dist-packages/vault/views/menu.py", line 118, in menu
    next_command = secrets.search_input()
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 278, in search_input
    return search_results(results)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 310, in search_results
    return item_view(result[0])
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 335, in item_view
    return item_menu(item)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 372, in item_menu
    return show_secret(item)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 515, in show_secret
    return item_view(item)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 335, in item_view
    return item_menu(item)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/secrets.py", line 366, in item_menu
    clipboard.copy(item.password)
  File "/usr/local/lib/python3.8/dist-packages/vault/views/clipboard.py", line 23, in copy
    pyperclip.copy(to_copy)
  File "/usr/local/lib/python3.8/dist-packages/pyperclip/__init__.py", line 659, in lazy_load_stub_copy
    return copy(text)
  File "/usr/local/lib/python3.8/dist-packages/pyperclip/__init__.py", line 336, in __call__
    raise PyperclipException(EXCEPT_MSG)
pyperclip.PyperclipException: 
    Pyperclip could not find a copy/paste mechanism for your system.
    For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error