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

Import is not recognized as a pass extension #1

Closed
JordanPeltier opened this issue Jan 11, 2017 · 9 comments
Closed

Import is not recognized as a pass extension #1

JordanPeltier opened this issue Jan 11, 2017 · 9 comments

Comments

@JordanPeltier
Copy link

Hi Alexandre,
After downloading and installing pass-import on my debian jessie machine, I got the following error when I wanted to import my KeePassX db.
pass import passwords_jordan.kdbx
Error: import is not in the password store.

Any ideas about the problem ? Cheers ;)

@roddhjav
Copy link
Owner

roddhjav commented Jan 11, 2017

Hi Jordan ;)

In order to use extension with pass, you need:

  • pass 1.7.0 or greater. Today this version has not been released yet. Therefore you need to install it by hand from zx2c4.com:
git clone https://git.zx2c4.com/password-store
cd password-store
sudo make install
  • You need to enable the extensions in pass: PASSWORD_STORE_ENABLE_EXTENSIONS=true pass. You can create an alias in .bashrc: alias pass='PASSWORD_STORE_ENABLE_EXTENSIONS=true pass'

@roddhjav
Copy link
Owner

I added this doc in the README. See 08a6134

@JordanPeltier
Copy link
Author

Thank you I'll try it at the end of week.

@roddhjav roddhjav closed this as completed Mar 5, 2017
@anu43
Copy link

anu43 commented Dec 6, 2020

hello,

I am getting the same error even though I installed a higher version than needed with brew, and enabled the command for additional packages. Thanks in advance!

brew info pass                   
pass: stable 1.7.3 (bottled), HEAD
Password manager
https://www.passwordstore.org/
/usr/local/Cellar/pass/1.7.3 (34 files, 148.0KB) *
  Poured from bottle on 2020-12-06 at 18:26:07
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pass.rb

@roddhjav
Copy link
Owner

roddhjav commented Dec 17, 2020

Hey, can you try with the latest commit from the master branch.

@airtonix
Copy link

airtonix commented Feb 17, 2021

~/Projects/Mine/vaultfiles master*
❯ pass --version
============================================
= pass: the standard unix password manager =
=                                          =
=                  v1.7.3                  =
=                                          =
=             Jason A. Donenfeld           =
=               Jason@zx2c4.com            =
=                                          =
=      http://www.passwordstore.org/       =
============================================
~/Projects/Mine/vaultfiles master*
❯ pip install pass-import --user           

Collecting pass-import
  Using cached pass_import-3.1-py3-none-any.whl (102 kB)
Requirement already satisfied: pyaml in /home/zenobius/.local/lib/python3.9/site-packages (from pass-import) (20.4.0)
Requirement already satisfied: PyYAML in /usr/lib64/python3.9/site-packages (from pyaml->pass-import) (5.4.1)
Installing collected packages: pass-import
Successfully installed pass-import-3.1

except:

~/Projects/Mine/vaultfiles master* 3m 13s
❯ pass import enpass ./enpass.json
Error: import is not in the password store.

this might be useful:

~/Projects/Mine/vaultfiles master*
❯ pip uninstall pass-import       

Found existing installation: pass-import 3.1
Uninstalling pass-import-3.1:
  Would remove:
    /home/zenobius/.local/bin/pimport
    /home/zenobius/.local/lib/python3.9/site-packages/pass_import-3.1.dist-info/*
    /home/zenobius/.local/lib/python3.9/site-packages/pass_import/*
    /home/zenobius/.local/lib/python3.9/site-packages/usr/lib/password-store/extensions/import.bash
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/bash-completion/completions/pass-import
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/bash-completion/completions/pimport
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/man/man1/pass-import.1
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/man/man1/pimport.1
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/zsh/site-functions/_pass-import
    /home/zenobius/.local/lib/python3.9/site-packages/usr/share/zsh/site-functions/_pimport
Proceed (y/n)? n

@roddhjav
Copy link
Owner

For this local install, you need to set:

export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR="$HOME/.local/lib/python3.9/site-packages/usr/lib/password-store/extensions/"

@poplarShift
Copy link

Hi, thanks for the great work! I just came here with the exact same issue - may be worth mentioning the PASSWORD_STORE_EXTENSIONS_DIR thing in the README.md too.

@roddhjav
Copy link
Owner

Good point. Done

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

5 participants