Skip to content

ERRNO2 (File Not Found) when reading password from database (but 'list' works) #6

@wraeth

Description

@wraeth

Listing passwords in the database seems to work fine, and getting the password retrieves some details until it attempts to use subprocess.py - it reads some details out of the database then fails:

kp -d .ssh/keepassx.kdb -k .ssh/id_rsa get 3a219f52b8df2f443a965b9519d1b947
Password: 

title:     My password
username:  wraeth
url:       https://mypasswordsite.com
notes:     
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/kp", line 7, in <module>
    sys.exit(main())
  File "/usr/lib64/python2.7/site-packages/keepassx/main.py", line 187, in main
    args.run(args)
  File "/usr/lib64/python2.7/site-packages/keepassx/main.py", line 96, in do_get
    clipboard.copy(entry.password)
  File "/usr/lib64/python2.7/site-packages/keepassx/clipboard.py", line 6, in copy
    get_clipboard().copy(text)
  File "/usr/lib64/python2.7/site-packages/keepassx/clipboard.py", line 22, in copy
    process = subprocess.Popen(self.COPY_PROCESS, stdin=subprocess.PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

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